eu.esdihumboldt.hale.common.schema.model.impl
Class AbstractChildDefinition<C>
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
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
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 |
AbstractChildDefinition
public AbstractChildDefinition(QName name,
DefinitionGroup parentGroup)
- Creates a new child and adds it to the parent group
- Parameters:
name
- the child qualified nameparentGroup
- the parent group
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()
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d