@Immutable public class ConstraintOverrideGroupProperty extends AbstractGroupPropertyDecorator
GroupPropertyDefinition
s that overrides given
constraints.asProperty
propertyGroup
Constructor and Description |
---|
ConstraintOverrideGroupProperty(GroupPropertyDefinition property,
GroupPropertyConstraint... constraints)
Create a decorator for the given group property where the given
constraints override the constraints of the group.
|
Modifier and Type | Method and Description |
---|---|
<T extends GroupPropertyConstraint> |
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. |
addChild, allowFlatten, asGroup, asProperty, compareTo, getChild, getDeclaredChildren, getDeclaringGroup, getDescription, getDisplayName, getIdentifier, getLocation, getName, getParentType, toString
public ConstraintOverrideGroupProperty(GroupPropertyDefinition property, GroupPropertyConstraint... constraints)
property
- the property to decorateconstraints
- the overriding constraintspublic <T extends GroupPropertyConstraint> T getConstraint(Class<T> constraintType)
Definition
getConstraint
in interface Definition<GroupPropertyConstraint>
getConstraint
in class AbstractGroupPropertyDecorator
T
- the constraint typeconstraintType
- the constraint type, see Constraint
AbstractPropertyDecorator.getConstraint(Class)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a