Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.impl
Class AbstractChildDefinition<C>

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
      extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition<C>
Type Parameters:
C - the supported constraint type
All Implemented Interfaces:
Locatable, ChildDefinition<C>, Definition<C>, Comparable<Definition<?>>
Direct Known Subclasses:
DefaultGroupPropertyDefinition, DefaultPropertyDefinition

public abstract class AbstractChildDefinition<C>
extends AbstractDefinition<C>
implements ChildDefinition<C>

Abstract child definition implementation

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
AbstractChildDefinition(QName name, DefinitionGroup parentGroup)
          Creates a new child and adds it to the parent group
 
Method Summary
 DefinitionGroup getDeclaringGroup()
          Get the definition of the group declaring the property.
 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.AbstractDefinition
compareTo, equals, getConstraint, getDescription, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.ChildDefinition
asGroup, asProperty
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.Definition
getConstraint, getDescription, getDisplayName, getName
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.supplier.Locatable
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractChildDefinition

public AbstractChildDefinition(QName name,
                               DefinitionGroup parentGroup)
Creates a new child and adds it to the parent group

Parameters:
name - the child qualified name
parentGroup - the parent group
Method Detail

getDeclaringGroup

public DefinitionGroup getDeclaringGroup()
Description copied from interface: ChildDefinition
Get the definition of the group declaring the property.

Specified by:
getDeclaringGroup in interface ChildDefinition<C>
Returns:
the group declaring the property
See Also:
ChildDefinition.getDeclaringGroup()

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<C>
Returns:
the parent type of the property
See Also:
ChildDefinition.getParentType()

getIdentifier

public String getIdentifier()
Description copied from interface: Definition
Get the definitions identifier

Specified by:
getIdentifier in interface Definition<C>
Overrides:
getIdentifier in class AbstractDefinition<C>
Returns:
the unique name of the definition
See Also:
Definition.getIdentifier()

Humboldt Alignment Editor 2.5.0

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