|
Qizx/open API | |||||||||
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.
Method Summary | |
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 indexing: gets the string value of a text node. |
int |
getDefinedNSCount(int nodeId)
Returns the number of NS defined on this node. |
int |
getDocumentId()
|
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 |
getFirstNSNode(int nodeId,
boolean inScope)
Returns the first namespace node of a node. |
long |
getIntegerValue(int nodeId)
Gets an integer value from an atome of type ATOM_INT. |
int |
getKind(int nodeId)
Returns one of the kinds DOCUMENT, ELEMENT, TEXT, PROCESSING_INSTRUCTION, COMMENT, ATTRIBUTE, NAMESPACE, ATOM_XX. |
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. |
java.lang.Object |
getValue(int nodeId)
Gets an atomic value from a leaf node. |
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. |
boolean |
isExported()
|
char[] |
pnGetCharValue(int nodeId,
int reserve)
Specially meant for indexing: 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. |
int |
pnGetNext(int nodeId)
Returns the next pseudo-node (attribute or NS). |
java.lang.String |
pnGetStringValue(int nodeId)
Gets the string value for pseudo-nodes Attributes and Namespaces. |
void |
setDocumentId(int docId)
|
RemoteByteInput |
transmitNode(Node node)
|
Method Detail |
public int getRootNode() throws java.rmi.RemoteException
java.rmi.RemoteException
public int getKind(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public QName getName(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public QName pnGetName(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getNameId(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int pnGetNameId(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getParent(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getNextSibling(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getNodeSpan(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getNodeNext(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getNodeAfter(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getFirstChild(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getAttrCount(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getAttribute(int nodeId, int nameId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int pnGetNext(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getStringValue(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String pnGetStringValue(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public char[] getCharValue(int nodeId, int reserve) throws java.rmi.RemoteException
java.rmi.RemoteException
public char[] pnGetCharValue(int nodeId, int reserve) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object getValue(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public long getIntegerValue(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getDefinedNSCount(int nodeId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getFirstNSNode(int nodeId, boolean inScope) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getElementNameCount() throws java.rmi.RemoteException
java.rmi.RemoteException
public QName getElementName(int nameId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int internElementName(QName name) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getOtherNameCount() throws java.rmi.RemoteException
java.rmi.RemoteException
public QName getOtherName(int nameId) throws java.rmi.RemoteException
java.rmi.RemoteException
public int internOtherName(QName name) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getBaseURI() throws java.rmi.RemoteException
java.rmi.RemoteException
public int estimateMemorySize() throws java.rmi.RemoteException
java.rmi.RemoteException
public int getDocumentId() throws java.rmi.RemoteException
java.rmi.RemoteException
public void setDocumentId(int docId) throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isExported() throws java.rmi.RemoteException
java.rmi.RemoteException
public RemoteByteInput transmitNode(Node node) throws DataModelException, java.io.IOException
DataModelException
java.io.IOException
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |