Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.model
Class XmlElement

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<TypeConstraint>
      extended by eu.esdihumboldt.hale.io.xsd.model.XmlElement
All Implemented Interfaces:
Locatable, Definition<TypeConstraint>, Comparable<Definition<?>>

public class XmlElement
extends AbstractDefinition<TypeConstraint>

Represents a XML schema element

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
XmlElement(QName elementName, TypeDefinition type, QName substitutionGroup)
          Create a new schema element
 
Method Summary
 String getIdentifier()
          Get the definitions identifier
 QName getSubstitutionGroup()
          Get the element substitution group
 TypeDefinition getType()
          Get the type definition associated with the element
 
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
 

Constructor Detail

XmlElement

public XmlElement(QName elementName,
                  TypeDefinition type,
                  QName substitutionGroup)
Create a new schema element

Parameters:
elementName - the element name
type - the associated type definition
substitutionGroup - the substitution group, may be null
Method Detail

getType

public TypeDefinition getType()
Get the type definition associated with the element

Returns:
the element type

getSubstitutionGroup

public QName getSubstitutionGroup()
Get the element substitution group

Returns:
the substitution group or null

getIdentifier

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

Specified by:
getIdentifier in interface Definition<TypeConstraint>
Overrides:
getIdentifier in class AbstractDefinition<TypeConstraint>
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