T
- the constraint annotation to describe.public static class ConstraintDescriptorImpl.Builder<T extends Annotation> extends Object
ConstraintDescriptorImpl
.Constructor and Description |
---|
Builder() |
public ConstraintDescriptorImpl.Builder<T> addComposingConstraint(javax.validation.metadata.ConstraintDescriptor<?> composingConstraint)
public ConstraintDescriptorImpl<T> build()
public ConstraintDescriptorImpl.Builder<T> setAnnotation(T annotation)
public ConstraintDescriptorImpl.Builder<T> setAttributes(Map<String,Object> attributes)
public ConstraintDescriptorImpl.Builder<T> setConstraintValidatorClasses(Class<? extends javax.validation.ConstraintValidator<T,?>>[] constraintValidatorClasses)
public ConstraintDescriptorImpl.Builder<T> setConstraintValidatorClasses(List<Class<? extends javax.validation.ConstraintValidator<T,?>>> constraintValidatorClasses)
public ConstraintDescriptorImpl.Builder<T> setDefinedOn(ConstraintOrigin definedOn)
public ConstraintDescriptorImpl.Builder<T> setElementType(ElementType elementType)
public ConstraintDescriptorImpl.Builder<T> setGroups(Class<?>[] classes)
public ConstraintDescriptorImpl.Builder<T> setGroups(Set<Class<?>> groups)
public ConstraintDescriptorImpl.Builder<T> setPayload(Class<? extends javax.validation.Payload>[] classes)
public ConstraintDescriptorImpl.Builder<T> setPayload(Set<Class<? extends javax.validation.Payload>> payload)
public ConstraintDescriptorImpl.Builder<T> setReportAsSingleViolation(boolean reportAsSingleViolation)
Copyright © 2018. All rights reserved.