Qizx/open API

net.axyana.qizxopen.xquery.dm
Interface XQNode

All Superinterfaces:
Node, java.io.Serializable, XQItem
All Known Implementing Classes:
NodeBase, XQFONIDataModel.INode

public interface XQNode
extends XQItem, Node

A Data-Model Node that is also a XPath/XQuery Item.


Field Summary
 
Fields inherited from interface net.axyana.qizxopen.xquery.XQItem
INCOMPARABLE
 
Fields inherited from interface net.axyana.qizxopen.dm.Node
ATOM_ANY, ATOM_BOOL, ATOM_DATE, ATOM_DOUBLE, ATOM_INT, ATTRIBUTE, COMMENT, DOCUMENT, ELEMENT, NAMESPACE, PROCESSING_INSTRUCTION, TEXT
 
Method Summary
 XQValue getAncestors(NodeTest nodeTest)
          Returns an iterator on ancestors that match the node test.
 XQValue getAncestorsOrSelf(NodeTest nodeTest)
           
 XQNode getAttribute(QName name)
           
 XQValue getAttributes()
           
 XQValue getAttributes(NodeTest nodeTest)
           
 XQValue getChildren()
           
 XQValue getChildren(NodeTest nodeTest)
           
 XQValue getDescendants(NodeTest nodeTest)
           
 XQValue getDescendantsOrSelf(NodeTest nodeTest)
           
 XQNode getDocument()
           
 XQValue getFollowing(NodeTest nodeTest)
           
 XQValue getFollowingSiblings(NodeTest nodeTest)
           
 XQValue getNamespaces(boolean inScope)
           
 XQNode getParent()
           
 XQValue getParent(NodeTest nodeTest)
          Returns a sequence of length 1 if the parent matches the nodeTest, else 0.
 XQValue getPreceding(NodeTest nodeTest)
          Preceding nodes in document order.
 XQValue getPrecedingSiblings(NodeTest nodeTest)
          Preceding siblings in document order.
 
Methods inherited from interface net.axyana.qizxopen.xquery.XQItem
compareTo, deepEqual, getBoolean, getDecimal, getDouble, getFloat, getInteger, getNode, getString, getType, isNode
 
Methods inherited from interface net.axyana.qizxopen.dm.Node
addText, ancestors, ancestorsOrSelf, attribute, attributes, attributes, children, children, compareStringValues, contains, descendants, descendantsOrSelf, docPosition, document, following, followingSiblings, getBaseURI, getChars, getDefinedNSCount, getDocumentURI, getIntegerValue, getNature, getNodeKind, getNodeName, getNsPrefix, getNsUri, getStringValue, getValue, isAtom, isElement, isRemote, namespaces, orderCompare, parent, parent, preceding, precedingSiblings
 

Method Detail

getDocument

public XQNode getDocument()
                   throws XQEvalException
Throws:
XQEvalException

getParent

public XQNode getParent()
                 throws XQEvalException
Throws:
XQEvalException

getAttribute

public XQNode getAttribute(QName name)
                    throws XQEvalException
Throws:
XQEvalException

getChildren

public XQValue getChildren()
                    throws XQEvalException
Throws:
XQEvalException

getAttributes

public XQValue getAttributes()
                      throws XQEvalException
Throws:
XQEvalException

getNamespaces

public XQValue getNamespaces(boolean inScope)
                      throws XQEvalException
Throws:
XQEvalException

getAncestors

public XQValue getAncestors(NodeTest nodeTest)
                     throws XQEvalException
Returns an iterator on ancestors that match the node test.

Parameters:
nodeTest - concrete classes are BaseNodeTest(node-kind?, nsuri?, ncname?), UnionNodeTest, DocumentTest.
Throws:
XQEvalException

getAncestorsOrSelf

public XQValue getAncestorsOrSelf(NodeTest nodeTest)
                           throws XQEvalException
Throws:
XQEvalException

getParent

public XQValue getParent(NodeTest nodeTest)
                  throws XQEvalException
Returns a sequence of length 1 if the parent matches the nodeTest, else 0.

Throws:
XQEvalException

getChildren

public XQValue getChildren(NodeTest nodeTest)
                    throws XQEvalException
Throws:
XQEvalException

getDescendants

public XQValue getDescendants(NodeTest nodeTest)
                       throws XQEvalException
Throws:
XQEvalException

getDescendantsOrSelf

public XQValue getDescendantsOrSelf(NodeTest nodeTest)
                             throws XQEvalException
Throws:
XQEvalException

getAttributes

public XQValue getAttributes(NodeTest nodeTest)
                      throws XQEvalException
Throws:
XQEvalException

getFollowingSiblings

public XQValue getFollowingSiblings(NodeTest nodeTest)
                             throws XQEvalException
Throws:
XQEvalException

getPrecedingSiblings

public XQValue getPrecedingSiblings(NodeTest nodeTest)
                             throws XQEvalException
Preceding siblings in document order.

Throws:
XQEvalException

getFollowing

public XQValue getFollowing(NodeTest nodeTest)
                     throws XQEvalException
Throws:
XQEvalException

getPreceding

public XQValue getPreceding(NodeTest nodeTest)
                     throws XQEvalException
Preceding nodes in document order.

Throws:
XQEvalException

© 2005 Axyana Software