net.sf.jsefa.xml.mapping
Class ElementDescriptor

java.lang.Object
  extended by net.sf.jsefa.xml.mapping.ElementDescriptor
All Implemented Interfaces:
NodeDescriptor<XmlNodeType>, XmlNodeDescriptor

public final class ElementDescriptor
extends Object
implements XmlNodeDescriptor

Descriptor for an xml element.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig

Constructor Summary
ElementDescriptor(QName name, QName dataTypeName)
          Constructs a new ElementDescriptor.
 
Method Summary
 boolean equals(Object obj)
          
 QName getDataTypeName()
          Returns the name of the data type of the element.
 QName getName()
          Returns the name of the element.
 XmlNodeType getType()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementDescriptor

public ElementDescriptor(QName name,
                         QName dataTypeName)
Constructs a new ElementDescriptor.

Parameters:
name - the name of the element - may be null if the node is virtual, i. e. if the node groups other nodes without having an own representation, e. g. an implicit list.
dataTypeName - the name of its data type - may be null for simplified element descriptors. If null the name must not be null.
Method Detail

getType

public XmlNodeType getType()

Specified by:
getType in interface NodeDescriptor<XmlNodeType>
Returns:
the node type

getName

public QName getName()
Returns the name of the element.

May be null if the node is virtual, i. e. if the node groups other nodes without having an own representation, e. g. an implicit list.

Returns:
the element name

getDataTypeName

public QName getDataTypeName()
Returns the name of the data type of the element.

Returns:
the data type name

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.