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.public abstract class ConstraintDef<C extends ConstraintDef<C,A>,A extends java.lang.annotation.Annotation> extends AnnotationDef<C,A>
ConstraintMapping
API.Modifier | Constructor and Description |
---|---|
protected |
ConstraintDef(java.lang.Class<A> constraintType) |
protected |
ConstraintDef(ConstraintDef<?,A> original) |
Modifier and Type | Method and Description |
---|---|
C |
groups(java.lang.Class<?>... groups) |
C |
message(java.lang.String message) |
C |
payload(java.lang.Class<? extends javax.validation.Payload>... payload) |
addAnnotationAsParameter, addParameter, toString
protected ConstraintDef(java.lang.Class<A> constraintType)
protected ConstraintDef(ConstraintDef<?,A> original)
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved