Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model
Annotation Type Constraint


@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.

Author:
Simon Templer
See Also:
Definition.getConstraint(Class), ConstraintUtil.getDefaultConstraint(Class, Definition)

Optional Element Summary
 boolean mutable
          States if the default constraint is mutable.
 

mutable

public abstract boolean mutable
States if the default constraint is mutable. If possible the default constraint should not be mutable if it is based on the default constructor, as ConstraintUtil.getDefaultConstraint(Class, Definition) will only be able to cache it in this case.

Returns:
if the default constraint is mutable, true by default
Default:
true

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d