Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.impl.internal
Class ConstraintOverrideGroupProperty

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
      extended by 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 GroupPropertyDefinitions that overrides given constraints.

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
propertyGroup
 
Constructor Summary
ConstraintOverrideGroupProperty(GroupPropertyDefinition property, GroupPropertyConstraint... constraints)
          Create a decorator for the given group property where the given constraints override the constraints of the group.
 
Method Summary
<T extends GroupPropertyConstraint>
T
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 decorate
constraints - the overriding constraints
Method Detail

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)

Humboldt Alignment Editor 2.5.0

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