@Immutable public class ConstraintOverrideProperty extends AbstractPropertyDecorator
PropertyDefinition
s that overrides given constraints.asProperty
property
Constructor and Description |
---|
ConstraintOverrideProperty(PropertyDefinition property,
PropertyConstraint... constraints)
Create a decorator for the given property where the given constraints
override the constraints of the property.
|
Modifier and Type | Method and Description |
---|---|
<T extends PropertyConstraint> |
getConstraint(Class<T> constraintType)
Get the constraint with the given constraint type.
Should usually not be called while creating the model, exceptions can be getting mutable constraints where this is intended. |
asGroup, asProperty, compareTo, equals, getDeclaringGroup, getDescription, getDisplayName, getIdentifier, getLocation, getName, getParentType, getPropertyType, hashCode, toString
public ConstraintOverrideProperty(PropertyDefinition property, PropertyConstraint... constraints)
property
- the property to decorateconstraints
- the overriding constraintspublic <T extends PropertyConstraint> T getConstraint(Class<T> constraintType)
Definition
getConstraint
in interface Definition<PropertyConstraint>
getConstraint
in class AbstractPropertyDecorator
T
- the constraint typeconstraintType
- the constraint type, see Constraint
AbstractPropertyDecorator.getConstraint(Class)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a