public final class ElementDescriptor extends Object implements XmlNodeDescriptor
Instances of this class are immutable and thread safe.
Constructor and Description |
---|
ElementDescriptor(QName name,
QName dataTypeName)
Constructs a new
ElementDescriptor . |
public ElementDescriptor(QName name, QName dataTypeName)
ElementDescriptor
.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.public XmlNodeType getType()
getType
in interface NodeDescriptor<XmlNodeType>
public QName getName()
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.
public QName getDataTypeName()
Copyright © 2014. All rights reserved.