本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}