Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model
Interface ChildDefinition<C>

Type Parameters:
C - the supported constraint type
All Superinterfaces:
Comparable<Definition<?>>, Definition<C>, Locatable
All Known Subinterfaces:
GroupPropertyDefinition, PropertyDefinition
All Known Implementing Classes:
AbstractChildDefinition, AbstractGroupPropertyDecorator, AbstractPropertyDecorator, ConstraintOverrideGroupProperty, ConstraintOverrideProperty, DefaultGroupPropertyDefinition, DefaultPropertyDefinition, LazyGroupPropertyDefinition, LazyPropertyDefinition, RedeclareGroupProperty, RedeclareProperty, ReparentGroupProperty, ReparentProperty, SubstitutionGroupProperty, SubstitutionProperty, XmlAttributeGroupReferenceProperty, XmlAttributeReferenceProperty, XmlElementReferenceProperty, XmlGroupReferenceProperty

public interface ChildDefinition<C>
extends Definition<C>

Definition of a property or property group

Author:
Simon Templer

Method Summary
 GroupPropertyDefinition asGroup()
          Return as a group definition is possible.
 PropertyDefinition asProperty()
          Return as a property definition is possible.
 DefinitionGroup getDeclaringGroup()
          Get the definition of the group declaring the property.
 TypeDefinition getParentType()
          Get the parent type of the child.
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.Definition
getConstraint, getDescription, getDisplayName, getIdentifier, getName
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.supplier.Locatable
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getParentType

TypeDefinition getParentType()
Get the parent type of the child. This can either be the declaring type or a sub-type.

Returns:
the parent type of the property

getDeclaringGroup

DefinitionGroup getDeclaringGroup()
Get the definition of the group declaring the property.

Returns:
the group declaring the property

asProperty

PropertyDefinition asProperty()
Return as a property definition is possible. This is convenience for avoiding casts and instanceof expressions when handling children.

Returns:
a property definition if this child definition is one, otherwise null

asGroup

GroupPropertyDefinition asGroup()
Return as a group definition is possible. This is convenience for avoiding casts and instanceof expressions when handling children.

Returns:
a group definition if this child definition is one, otherwise null

Humboldt Alignment Editor 2.5.0

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