Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractPropertyDecorator
      extended by 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 PropertyDefinitions that has a changed parent type

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractPropertyDecorator
property
 
Constructor Summary
ReparentProperty(PropertyDefinition property, TypeDefinition newParent)
          Create a decorator for the given property that has a changed parent type
 
Method Summary
 String getIdentifier()
          Get the definitions identifier
 TypeDefinition getParentType()
          Get the parent type of the child.
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractPropertyDecorator
asGroup, asProperty, compareTo, getConstraint, getDeclaringGroup, getDescription, getDisplayName, getLocation, getName, getPropertyType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 decorate
newParent - the new parent type, may not be null
Method Detail

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()

Humboldt Alignment Editor 2.5.0

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