|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.staxmate.in.SMElementInfo
org.codehaus.staxmate.in.DefaultElementInfo
public class DefaultElementInfo
The default implementation of SMElementInfo; fully implements
all accessors by storing information necessary.
| Constructor Summary | |
|---|---|
DefaultElementInfo(SMElementInfo parent,
SMElementInfo prevSibling,
java.lang.String prefix,
java.lang.String nsURI,
java.lang.String localName,
int nodeIndex,
int elemIndex,
int depth)
|
|
| Method Summary | |
|---|---|
int |
getDepth()
Optional operation that will return number of parent start elements this element has, if any. |
int |
getElementIndex()
Optional operation that will return the zero-based index of the element amongst all (start) elements iterated over by the iterator that created this element info object. |
java.lang.String |
getLocalName()
Optional operation that will return the local name of the element, or, if namespace support was not enabled for the parser, full name including possible namespace prefix. |
java.lang.String |
getNamespaceURI()
Optional operation that will return the URI of the namespace of the element; this will be empty String ("") for the default namespace (if none declared), or if namespace support was not enabled for the parser. |
int |
getNodeIndex()
Optional operation that will return the zero-based index of the element node amongst all nodes iterated over by the iterator that created this element info object. |
SMElementInfo |
getParent()
Optional operation that will return information about the parent element of this element, if one exists; null if not (case for the root element). |
java.lang.String |
getPrefix()
Optional operation that will return the prefix of the element, if it had one and namespace support was enabled for the parser. |
SMElementInfo |
getPreviousSibling()
Optional operation that will return information about the previous sibling in the sibling element chain. |
| Methods inherited from class org.codehaus.staxmate.in.SMElementInfo |
|---|
isFirstChild, isRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultElementInfo(SMElementInfo parent,
SMElementInfo prevSibling,
java.lang.String prefix,
java.lang.String nsURI,
java.lang.String localName,
int nodeIndex,
int elemIndex,
int depth)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException| Method Detail |
|---|
public SMElementInfo getParent()
SMElementInfo
getParent in class SMElementInfopublic SMElementInfo getPreviousSibling()
SMElementInfo
getPreviousSibling in class SMElementInfopublic int getNodeIndex()
SMElementInfo
getNodeIndex in class SMElementInfopublic int getElementIndex()
SMElementInfoNote that the element indices for consequtive elements stored may not be consequtive, if the iterator filtered out some elements.
getElementIndex in class SMElementInfopublic int getDepth()
SMElementInfo
getDepth in class SMElementInfopublic java.lang.String getNamespaceURI()
SMElementInfo
getNamespaceURI in class SMElementInfopublic java.lang.String getLocalName()
SMElementInfo
getLocalName in class SMElementInfopublic java.lang.String getPrefix()
SMElementInfo
getPrefix in class SMElementInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||