public final class ElementStartImpl extends Object implements ElementStart
ElementStart.
For performance reason no defensive copy of the attributes is made. A new instance of
ElementStartImpl takes control of the given array of attributes. Furthermore
getAttributes() directly returns this list - no copy or view is created. Thus a client must not change
the array of attributes after creating a new ElementStartImpl and must not change the result of
getAttributes().
Respecting this an instance of this class is thread-safe.
| Constructor and Description |
|---|
ElementStartImpl(QName name,
QName dataTypeName,
Attribute[] attributes,
int depth)
Constructs a new
ElementStartImpl. |
| Modifier and Type | Method and Description |
|---|---|
Attribute[] |
getAttributes()
Returns the attributes of the xml element.
|
QName |
getDataTypeName()
Returns the name of the datatype of the xml element.
|
int |
getDepth()
Returns the depth of this element.
|
QName |
getName()
Returns the name of the xml element.
|
XmlItemType |
getType()
Returns the type of this xml item.
|
public ElementStartImpl(QName name, QName dataTypeName, Attribute[] attributes, int depth)
ElementStartImpl.
Note: the new ElementStartImpl takes control of the given attributes list; it
makes no defensive copy of it.
name - the name of the elementdataTypeName - the data type nameattributes - the list of attributes.depth - the depth of the element in the element tree.public QName getName()
getName in interface ElementStartpublic QName getDataTypeName()
getDataTypeName in interface ElementStartpublic Attribute[] getAttributes()
getAttributes in interface ElementStartpublic int getDepth()
The depth of the root element is 0.
getDepth in interface ElementStartpublic XmlItemType getType()
Copyright © 2014. All rights reserved.