public class BinaryNav
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
DOC_IDX |
static long |
NULL_IDX |
Constructor and Description |
---|
BinaryNav(BinaryIndex idx)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone the BinaryNav.
|
int |
currentLevel() |
boolean |
document()
Go to the document node
|
boolean |
firstChild()
Move the cursor to the first child element if any
|
java.lang.String |
getAttribute(java.lang.String tag)
Access the attribute with given name for the current element
|
java.lang.String |
getAttributeNS(java.lang.String namespace, java.lang.String localpart)
Access the attribute with given name and namespace for the current element
|
SAXAttrList |
getAttributes()
Access the attributes for the current element
|
BinaryIndex |
getBinaryIndex()
Get the binary index this base on
|
long |
getCurrentIndex()
Get the current element's index
|
long |
getLocator() |
java.lang.String |
getNamespace() |
java.lang.String |
getNodeValue()
Get the string value for the current element
|
javax.xml.namespace.QName |
getQName() |
InfosetReader |
getReader()
Get the inforset reader used in accesing binary data
|
java.lang.String |
getTagName() |
boolean |
lastChild()
Move the cursor to the last child element if any
|
boolean |
nextElementByQName(javax.xml.namespace.QName qname)
Move cursor to next element with given QName This will find the next element in document order with the given QName
|
boolean |
nextSibling()
Move the cursor to the following sibling element if any
|
boolean |
nextSiblingByQName(javax.xml.namespace.QName qname)
Move cursor to next sibling element with given QName
|
boolean |
parent()
Move to the parent element if there is one
|
boolean |
prevSibling()
Move the cursor to the previous sibling element if any
|
boolean |
root()
Go back to the root element
|
boolean |
seekToIndex(long idx)
Move the cursor to the given element index
|
public static final long DOC_IDX
public static final long NULL_IDX
public BinaryNav(BinaryIndex idx)
idx
- - the binary index to create frompublic java.lang.Object clone()
clone
in class java.lang.Object
public InfosetReader getReader()
public long getLocator()
public int currentLevel()
public javax.xml.namespace.QName getQName()
public java.lang.String getNamespace()
public java.lang.String getTagName()
public boolean document()
public boolean root()
public boolean parent()
public boolean nextSibling()
public boolean prevSibling()
public boolean firstChild()
public boolean lastChild()
public SAXAttrList getAttributes()
public java.lang.String getAttribute(java.lang.String tag)
public java.lang.String getAttributeNS(java.lang.String namespace, java.lang.String localpart)
public java.lang.String getNodeValue()
public boolean nextSiblingByQName(javax.xml.namespace.QName qname)
QName
- - the QName of element to searchpublic boolean nextElementByQName(javax.xml.namespace.QName qname)
QName
- - the QName of element to searchpublic boolean seekToIndex(long idx)
idx,
- the element index to go topublic long getCurrentIndex()
public BinaryIndex getBinaryIndex()