eu.esdihumboldt.hale.common.schema.model.impl.internal
Class ReparentGroupProperty
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
eu.esdihumboldt.hale.common.schema.model.impl.internal.ReparentGroupProperty
- All Implemented Interfaces:
- Locatable, ChildDefinition<GroupPropertyConstraint>, Definition<GroupPropertyConstraint>, DefinitionGroup, GroupPropertyDefinition, Comparable<Definition<?>>
@Immutable
public class ReparentGroupProperty
- extends AbstractGroupPropertyDecorator
Decorator for GroupPropertyDefinition
s that has a changed parent type
- Author:
- Simon Templer
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator |
addChild, allowFlatten, asGroup, asProperty, compareTo, getChild, getConstraint, getDeclaredChildren, getDeclaringGroup, getDescription, getDisplayName, getLocation, getName, toString |
ReparentGroupProperty
public ReparentGroupProperty(GroupPropertyDefinition propertyGroup,
TypeDefinition newParent)
- Create a decorator for the given property that has a changed parent type
- Parameters:
propertyGroup
- the property group to decoratenewParent
- the new parent type, may not be null
getIdentifier
public String getIdentifier()
- Description copied from interface:
DefinitionGroup
- Get the group identifier
- Specified by:
getIdentifier
in interface Definition<GroupPropertyConstraint>
- Specified by:
getIdentifier
in interface DefinitionGroup
- Overrides:
getIdentifier
in class AbstractGroupPropertyDecorator
- Returns:
- the unique name of the group
- See Also:
AbstractPropertyDecorator.getIdentifier()
getParentType
public TypeDefinition getParentType()
- Description copied from interface:
ChildDefinition
- Get the parent type of the child. This can either be the declaring type
or a sub-type.
- Specified by:
getParentType
in interface ChildDefinition<GroupPropertyConstraint>
- Overrides:
getParentType
in class AbstractGroupPropertyDecorator
- Returns:
- the parent type of the property
- See Also:
AbstractPropertyDecorator.getParentType()
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d