|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Constraint
Marks constraint types.
Types using this annotation must have a default constructor or a constructor
that takes a Definition
as an argument that will create the
constraint with its default settings as this will be used when a constraint
of that type is requested for a definition where it does not exist. If both a
default and a Definition
constructor are available the constructor
that takes a definition is preferred if possible.
Definition.getConstraint(Class)
,
ConstraintUtil.getDefaultConstraint(Class, Definition)
Optional Element Summary | |
---|---|
boolean |
mutable
States if the default constraint is mutable. |
public abstract boolean mutable
ConstraintUtil.getDefaultConstraint(Class, Definition)
will only
be able to cache it in this case.
true
by
default
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |