|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.xml.lowlevel.model.ElementStartImpl
public final class ElementStartImpl
Implementation of 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 Summary | |
---|---|
ElementStartImpl(QName name,
QName dataTypeName,
Attribute[] attributes,
int depth)
Constructs a new ElementStartImpl . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public QName getName()
getName
in interface ElementStart
public QName getDataTypeName()
getDataTypeName
in interface ElementStart
public Attribute[] getAttributes()
getAttributes
in interface ElementStart
public int getDepth()
The depth of the root element is 0.
getDepth
in interface ElementStart
public XmlItemType getType()
getType
in interface XmlItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |