eu.esdihumboldt.hale.common.schema.model.impl.internal
Class ReparentProperty
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractPropertyDecorator
eu.esdihumboldt.hale.common.schema.model.impl.internal.ReparentProperty
- All Implemented Interfaces:
- Locatable, ChildDefinition<PropertyConstraint>, Definition<PropertyConstraint>, PropertyDefinition, Comparable<Definition<?>>
@Immutable
public class ReparentProperty
- extends AbstractPropertyDecorator
Decorator for PropertyDefinition
s that has a changed parent type
- Author:
- Simon Templer
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractPropertyDecorator |
asGroup, asProperty, compareTo, getConstraint, getDeclaringGroup, getDescription, getDisplayName, getLocation, getName, getPropertyType, toString |
ReparentProperty
public ReparentProperty(PropertyDefinition property,
TypeDefinition newParent)
- Create a decorator for the given property that has a changed parent type
- Parameters:
property
- the property to decoratenewParent
- the new parent type, may not be null
getIdentifier
public String getIdentifier()
- Description copied from interface:
Definition
- Get the definitions identifier
- Specified by:
getIdentifier
in interface Definition<PropertyConstraint>
- Overrides:
getIdentifier
in class AbstractPropertyDecorator
- Returns:
- the unique name of the definition
- 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<PropertyConstraint>
- Overrides:
getParentType
in class AbstractPropertyDecorator
- Returns:
- the parent type of the property
- See Also:
AbstractPropertyDecorator.getParentType()
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d