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,BitcoinAddressDef,CNPJDef,CodePointLengthDef,CPFDef,CreditCardNumberDef,CurrencyDef,DecimalMaxDef,DecimalMinDef,DigitsDef,DurationMaxDef,DurationMinDef,EANDef,EmailDef,FutureDef,FutureOrPresentDef,GenericConstraintDef,INNDef,ISBNDef,KorRRNDef,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 the
ConstraintMapping API.- Author:
- Hardy Ferentschik, Gunnar Morling
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstraintDef(Class<A> constraintType) protectedConstraintDef(ConstraintDef<?, A> original) -
Method Summary
Methods inherited from class org.hibernate.validator.cfg.AnnotationDef
addAnnotationAsParameter, addParameter, toString
-
Constructor Details
-
ConstraintDef
-
ConstraintDef
-
-
Method Details
-
message
-
groups
-
payload
-