Humboldt Alignment Editor 2.5.0

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

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

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
propertyGroup
 
Constructor Summary
ReparentGroupProperty(GroupPropertyDefinition propertyGroup, TypeDefinition newParent)
          Create a decorator for the given property that has a changed parent type
 
Method Summary
 String getIdentifier()
          Get the group identifier
 TypeDefinition getParentType()
          Get the parent type of the child.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

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

Humboldt Alignment Editor 2.5.0

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