Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.writer.internal.geometry
Interface PathElement


public interface PathElement

Path element in a definition path

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

Method Summary
 QName getName()
          Get the path element name.
 TypeDefinition getType()
          Get the path element type definition.
 boolean isDowncast()
          Determines if this path element represents a type downcast.
 boolean isProperty()
          Determines if this path element represents a property, otherwise it represents a sub-type or a group.
 boolean isTransient()
          Determines if the the path element is transient and thus doesn't represent an element.
 boolean isUnique()
          Determines if this path element represents an element that can't be repeated.
 void prepareWrite(XMLStreamWriter writer)
          Write additional attributes/elements after the path element has been started.
 

Method Detail

getName

QName getName()
Get the path element name. This is either a property, group or sub-type name.

Returns:
the element name

getType

TypeDefinition getType()
Get the path element type definition.

Returns:
the path element type definition, , may be null if the element is transient

isProperty

boolean isProperty()
Determines if this path element represents a property, otherwise it represents a sub-type or a group.

Returns:
if this path element represents a property

isTransient

boolean isTransient()
Determines if the the path element is transient and thus doesn't represent an element.

Returns:
if the element is transient

isDowncast

boolean isDowncast()
Determines if this path element represents a type downcast. This means xsi:type has to be used when writing this element.

Returns:
if this path element represents a type downcast

isUnique

boolean isUnique()
Determines if this path element represents an element that can't be repeated.

Returns:
if this path element represents an element that can't be repeated

prepareWrite

void prepareWrite(XMLStreamWriter writer)
                  throws XMLStreamException
Write additional attributes/elements after the path element has been started.

Parameters:
writer - the XML stream writer
Throws:
XMLStreamException - if an error occurs writing XML to the stream

Humboldt Alignment Editor 2.5.0

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