|
Qizx/Open v0.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Fully-Ordered Node Identification Document. A representation of XML Documents where nodes are accessed by integer handles whose values are guaranteed to be in document order (i.e. node N1 before node N2 <=> handle(N1) < handle(N2) )
Such a representation is suitable for documents that are built in one operation such as parsing and never modified.
The interface is very close to the XPath/XQuery/XSLT Data Model.
The handle value 0 is reserved and represents a null or absent node.
Nested Class Summary | |
static interface |
FONIDocument.NodeIterator
|
Field Summary | |
static int |
ATTRIBUTE
|
static int |
COMMENT
|
static int |
DOCUMENT
|
static int |
ELEMENT
|
static int |
NAMESPACE
|
static int |
PROCESSING_INSTRUCTION
|
static int |
TEXT
|
Method Summary | |
FONIDocument.NodeIterator |
attrIterator(int nodeId)
Returns an Attribute iterator for a node. |
FONIDocument.NodeIterator |
childrenIterator(int nodeId)
|
int |
estimateMemorySize()
Cache management. |
int |
getAttrCount(int nodeId)
Returns the number of attributes of an element (not guaranteed to be efficient). |
int |
getAttribute(int nodeId,
int nameId)
Gets an attribute node by name. |
java.lang.String |
getBaseURI()
Returns the URI of the document. |
char[] |
getCharValue(int nodeId,
int reserve)
Specially meant for indexation: gets the string value of a text node. |
int |
getDefinedNSCount(int nodeId)
Returns the number of NS defined on this node. |
int |
getDocId()
|
QName |
getElementName(int nameId)
Gets the QName of an element node by the internal id. |
int |
getElementNameCount()
Gets the total number of element names. |
int |
getFirstChild(int nodeId)
|
int |
getKind(int nodeId)
Returns one of the kinds DOCUMENT, ELEMENT, TEXT, PROCESSING_INSTRUCTION, COMMENT, ATTRIBUTE, NAMESPACE. |
QName |
getName(int nodeId)
Gets the name of a Node. |
int |
getNameId(int nodeId)
Gets the name-id of a real Node. |
int |
getNextSibling(int nodeId)
|
int |
getNodeAfter(int nodeId)
Gets the node that is next in document order but not contained. |
int |
getNodeNext(int nodeId)
Gets the node that is next in document order. |
int |
getNodeSpan(int nodeId)
|
QName |
getOtherName(int nameId)
Gets the QName of a non-element node by the internal id. |
int |
getOtherNameCount()
Gets the total number of non-element node names. |
int |
getParent(int nodeId)
|
int |
getRootNode()
Returns the handle of the document node. |
java.lang.String |
getStringValue(int nodeId)
Gets the string value for any node but Attributes and Namespaces. |
int |
internElementName(QName name)
Gets the internal id of an element name. |
int |
internOtherName(QName name)
Gets the internal id of a non-element node name. |
FONIDocument.NodeIterator |
namespaceIterator(int nodeId,
boolean inScope)
Returns the namespace nodes of a node. |
char[] |
pnGetCharValue(int nodeId,
int reserve)
Specially meant for indexation: gets the string value of a "pseudo-node" (attribute or NS). |
QName |
pnGetName(int nodeId)
Gets the name of a pseudo Node Attribute / Namespace. |
int |
pnGetNameId(int nodeId)
Gets the name-id of a pseudo-node Attribute / Namespace. |
java.lang.String |
pnGetStringValue(int nodeId)
Gets the string value for pseudo-nodes Attributes and Namespaces. |
void |
setDocId(int docId)
|
Field Detail |
public static final int DOCUMENT
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int TEXT
public static final int PROCESSING_INSTRUCTION
public static final int COMMENT
public static final int NAMESPACE
Method Detail |
public int getRootNode()
public int getKind(int nodeId)
public QName getName(int nodeId)
public QName pnGetName(int nodeId)
public int getNameId(int nodeId)
public int pnGetNameId(int nodeId)
public int getParent(int nodeId)
public int getNextSibling(int nodeId)
public int getNodeSpan(int nodeId)
public int getNodeNext(int nodeId)
public int getNodeAfter(int nodeId)
public int getFirstChild(int nodeId)
public FONIDocument.NodeIterator childrenIterator(int nodeId)
public FONIDocument.NodeIterator attrIterator(int nodeId)
public int getAttrCount(int nodeId)
public int getAttribute(int nodeId, int nameId)
public java.lang.String getStringValue(int nodeId)
public java.lang.String pnGetStringValue(int nodeId)
public char[] getCharValue(int nodeId, int reserve)
public char[] pnGetCharValue(int nodeId, int reserve)
public int getDefinedNSCount(int nodeId)
public FONIDocument.NodeIterator namespaceIterator(int nodeId, boolean inScope)
public int getElementNameCount()
public QName getElementName(int nameId)
public int internElementName(QName name)
public int getOtherNameCount()
public QName getOtherName(int nameId)
public int internOtherName(QName name)
public java.lang.String getBaseURI()
public int estimateMemorySize()
public int getDocId()
public void setDocId(int docId)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |