Package org.hibernate.validator.cfg
Class ConstraintDef<C extends ConstraintDef<C,A>,A extends Annotation>
- java.lang.Object
-
- org.hibernate.validator.cfg.AnnotationDef<C,A>
-
- org.hibernate.validator.cfg.ConstraintDef<C,A>
-
- Type Parameters:
C- The type of a concrete sub type. Following to the "self referencing generic type" pattern each sub type has to be parametrized with itself.A- The constraint annotation type represented by a concrete sub type.
- Direct Known Subclasses:
AssertFalseDef,AssertTrueDef,CNPJDef,CodePointLengthDef,CPFDef,CreditCardNumberDef,CurrencyDef,DecimalMaxDef,DecimalMinDef,DigitsDef,DurationMaxDef,DurationMinDef,EANDef,EmailDef,FutureDef,FutureOrPresentDef,GenericConstraintDef,INNDef,ISBNDef,LengthDef,LuhnCheckDef,MaxDef,MinDef,Mod10CheckDef,Mod11CheckDef,NegativeDef,NegativeOrZeroDef,NIPDef,NormalizedDef,NotBlankDef,NotEmptyDef,NotNullDef,NullDef,ParameterScriptAssertDef,PastDef,PastOrPresentDef,PatternDef,PESELDef,PositiveDef,PositiveOrZeroDef,RangeDef,REGONDef,ScriptAssertDef,SizeDef,TituloEleitoralDef,UniqueElementsDef,URLDef,UUIDDef
public abstract class ConstraintDef<C extends ConstraintDef<C,A>,A extends Annotation> extends AnnotationDef<C,A>
Base class for all constraint definition types. Each sub type represents a single constraint annotation type and allows to add this constraint to a bean class in a programmatic type-safe way with help of theConstraintMappingAPI.- Author:
- Hardy Ferentschik, Gunnar Morling
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstraintDef(Class<A> constraintType)protectedConstraintDef(ConstraintDef<?,A> original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cgroups(Class<?>... groups)Cmessage(String message)Cpayload(Class<? extends Payload>... payload)-
Methods inherited from class org.hibernate.validator.cfg.AnnotationDef
addAnnotationAsParameter, addParameter, toString
-
-
-
-
Constructor Detail
-
ConstraintDef
protected ConstraintDef(ConstraintDef<?,A> original)
-
-