当前位置: 首页>>代码示例>>Java>>正文


Java PathImpl.createCopy方法代码示例

本文整理汇总了Java中org.hibernate.validator.internal.engine.path.PathImpl.createCopy方法的典型用法代码示例。如果您正苦于以下问题:Java PathImpl.createCopy方法的具体用法?Java PathImpl.createCopy怎么用?Java PathImpl.createCopy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hibernate.validator.internal.engine.path.PathImpl的用法示例。


在下文中一共展示了PathImpl.createCopy方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: append

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
/**
 * Append a node named name to the path..
 *
 * @return the new GwtValidationContext.
 */
public GwtValidationContext<T> append(final String name) {
  final GwtValidationContext<T> temp = new GwtValidationContext<>(this.rootBeanClass,
      this.rootBean, this.beanDescriptor, this.messageInterpolator, this.traversableResolver,
      this.validator, this.validatedObjects);
  temp.path = PathImpl.createCopy(this.path);
  temp.path.addPropertyNode(name);
  return temp;
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:14,代码来源:GwtValidationContext.java

示例2: appendIndex

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
/**
 * Append an indexed node to the path.
 *
 * @return the new GwtValidationContext.
 */
public GwtValidationContext<T> appendIndex(final String name, final int index) {
  final GwtValidationContext<T> temp = new GwtValidationContext<>(this.rootBeanClass,
      this.rootBean, this.beanDescriptor, this.messageInterpolator, this.traversableResolver,
      this.validator, this.validatedObjects);
  temp.path = PathImpl.createCopy(this.path);
  temp.path.addParameterNode(name, index);
  temp.path.makeLeafNodeIterable();
  temp.path.makeLeafNodeIterableAndSetIndex(index);
  return temp;
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:16,代码来源:GwtValidationContext.java

示例3: appendIterable

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
/**
 * Append an iterable node to the path.
 *
 * @return the new GwtValidationContext.
 */
public GwtValidationContext<T> appendIterable(final String name) {
  final GwtValidationContext<T> temp = new GwtValidationContext<>(this.rootBeanClass,
      this.rootBean, this.beanDescriptor, this.messageInterpolator, this.traversableResolver,
      this.validator, this.validatedObjects);
  temp.path = PathImpl.createCopy(this.path);
  temp.path.addPropertyNode(name);
  temp.path.makeLeafNodeIterable();
  return temp;
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:15,代码来源:GwtValidationContext.java

示例4: appendKey

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
/**
 * Append a keyed node to the path.
 *
 * @return the new GwtValidationContext.
 */
public GwtValidationContext<T> appendKey(final String name, final Object key) {
  final GwtValidationContext<T> temp = new GwtValidationContext<>(this.rootBeanClass,
      this.rootBean, this.beanDescriptor, this.messageInterpolator, this.traversableResolver,
      this.validator, this.validatedObjects);
  temp.path = PathImpl.createCopy(this.path);
  temp.path.addPropertyNode(name);
  NodeImpl.makeIterableAndSetMapKey(temp.path.getLeafNode(), key);
  return temp;
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:15,代码来源:GwtValidationContext.java

示例5: buildConstraintViolationWithTemplate

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
@Override
public ConstraintViolationBuilder buildConstraintViolationWithTemplate(
    final String messageTemplate) {
  return new ConstraintViolationBuilderImpl(new ConstraintValidatorContextImpl<A, T>(
      PathImpl.createCopy(this.basePath), this.descriptor), messageTemplate);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:7,代码来源:ConstraintValidatorContextImpl.java

示例6: createConstraintValidatorContext

import org.hibernate.validator.internal.engine.path.PathImpl; //导入方法依赖的package包/类
/**
 * create constraint validator context.
 *
 * @param descriptor constraint descriptor
 * @return constraint validator context implementation
 */
public <A extends Annotation, V> ConstraintValidatorContextImpl<A, V> //
    createConstraintValidatorContext(final ConstraintDescriptor<A> descriptor) {
  return new ConstraintValidatorContextImpl<>(PathImpl.createCopy(this.path), descriptor);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators,代码行数:11,代码来源:GwtValidationContext.java


注:本文中的org.hibernate.validator.internal.engine.path.PathImpl.createCopy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。