eu.esdihumboldt.hale.common.schema.model.impl.internal
Class ConstraintOverrideGroupProperty
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
eu.esdihumboldt.hale.common.schema.model.impl.internal.ConstraintOverrideGroupProperty
- All Implemented Interfaces:
- Locatable, ChildDefinition<GroupPropertyConstraint>, Definition<GroupPropertyConstraint>, DefinitionGroup, GroupPropertyDefinition, Comparable<Definition<?>>
@Immutable
public class ConstraintOverrideGroupProperty
- extends AbstractGroupPropertyDecorator
Decorator for GroupPropertyDefinition
s that overrides given
constraints.
- Author:
- Simon Templer
Method Summary |
|
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. |
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator |
addChild, allowFlatten, asGroup, asProperty, compareTo, getChild, getDeclaredChildren, getDeclaringGroup, getDescription, getDisplayName, getIdentifier, getLocation, getName, getParentType, toString |
ConstraintOverrideGroupProperty
public ConstraintOverrideGroupProperty(GroupPropertyDefinition property,
GroupPropertyConstraint... constraints)
- Create a decorator for the given group property where the given
constraints override the constraints of the group.
- Parameters:
property
- the property to decorateconstraints
- the overriding constraints
getConstraint
public <T extends GroupPropertyConstraint> T getConstraint(Class<T> constraintType)
- Description copied from interface:
Definition
- 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.
- Specified by:
getConstraint
in interface Definition<GroupPropertyConstraint>
- Overrides:
getConstraint
in class AbstractGroupPropertyDecorator
- Type Parameters:
T
- the constraint type- Parameters:
constraintType
- the constraint type, see Constraint
- Returns:
- the constraint with the given type
- See Also:
AbstractPropertyDecorator.getConstraint(Class)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d