Qizx/open API

net.axyana.qizxopen.xquery.dm
Class XQFONIDataModel.INode

java.lang.Object
  extended bynet.axyana.qizxopen.dm.FONIDataModel.BaseNode
      extended bynet.axyana.qizxopen.xquery.dm.XQFONIDataModel.INode
All Implemented Interfaces:
Node, java.io.Serializable, XQItem, XQNode
Enclosing class:
XQFONIDataModel

public static class XQFONIDataModel.INode
extends FONIDataModel.BaseNode
implements XQNode

See Also:
Serialized Form

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
 
Constructor Summary
XQFONIDataModel.INode()
           
XQFONIDataModel.INode(int id, FONIDataModel dm)
           
 
Method Summary
 int compareTo(XQItem that, java.text.Collator collator, int implicitTZone)
          Value comparison: equivalent to (untypedAtomic, string-value).
 boolean deepEqual(XQItem item, java.text.Collator collator)
          Deep equality of two items.
 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)
           
 boolean getBoolean()
          Gets the item as a boolean value.
 XQValue getChildren()
           
 XQValue getChildren(NodeTest nodeTest)
           
 java.math.BigDecimal getDecimal()
          Gets the item as a decimal value.
 XQValue getDescendants(NodeTest nodeTest)
           
 XQValue getDescendantsOrSelf(NodeTest nodeTest)
           
 XQNode getDocument()
           
 double getDouble()
          Gets the item as a double value.
 float getFloat()
          Gets the item as a float value.
 XQValue getFollowing(NodeTest nodeTest)
           
 XQValue getFollowingSiblings(NodeTest nodeTest)
           
 long getInteger()
          Gets the item as a integer value.
 XQItem getItem()
           
 XQValue getNamespaces(boolean inScope)
           
 XQNode getNode()
          Gets the item as a Node value.
 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.
 java.lang.String getString()
          Gets the item as a String value.
 XQItemType getType()
          Returns the type description.
 XQValue getTypedValue()
           
 boolean isNode()
          Tests whether the item is a Node.
 
Methods inherited from class net.axyana.qizxopen.dm.FONIDataModel.BaseNode
addAttribute, addChild, addText, ancestors, ancestorsOrSelf, attribute, attributes, attributes, children, children, compareStringValues, contains, deepEqual, descendants, descendantsOrSelf, docPosition, document, equals, following, followingSiblings, getBaseURI, getChars, getDefinedNSCount, getDocId, getDocumentURI, getDom, getIntegerValue, getNature, getNodeDepth, getNodeId, getNodeKind, getNodeName, getNodeSpan, getNsPrefix, getNsUri, getStringValue, getValue, hashCode, isAtom, isElement, isRemote, namespaces, orderCompare, parent, parent, preceding, precedingSiblings, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

XQFONIDataModel.INode

public XQFONIDataModel.INode()

XQFONIDataModel.INode

public XQFONIDataModel.INode(int id,
                             FONIDataModel dm)
Method Detail

getType

public XQItemType getType()
Description copied from interface: XQItem
Returns the type description.

Specified by:
getType in interface XQItem

getParent

public XQNode getParent()
                 throws XQEvalException
Specified by:
getParent in interface XQNode
Throws:
XQEvalException

getTypedValue

public XQValue getTypedValue()

getChildren

public XQValue getChildren()
                    throws XQEvalException
Specified by:
getChildren in interface XQNode
Throws:
XQEvalException

getAttributes

public XQValue getAttributes()
                      throws XQEvalException
Specified by:
getAttributes in interface XQNode
Throws:
XQEvalException

getNamespaces

public XQValue getNamespaces(boolean inScope)
                      throws XQEvalException
Specified by:
getNamespaces in interface XQNode
Throws:
XQEvalException

deepEqual

public boolean deepEqual(XQItem item,
                         java.text.Collator collator)
Description copied from interface: XQItem
Deep equality of two items.

Specified by:
deepEqual in interface XQItem

compareTo

public int compareTo(XQItem that,
                     java.text.Collator collator,
                     int implicitTZone)
              throws XQEvalException
Value comparison: equivalent to (untypedAtomic, string-value). TODO schema import

Specified by:
compareTo in interface XQItem
Returns:
0 if items are equal; -1 if this < that; 1 if this > that; INCOMPARABLE if no order is defined, or items are of different nature (no exception raised).
Throws:
XQEvalException

getDocument

public XQNode getDocument()
                   throws XQEvalException
Specified by:
getDocument in interface XQNode
Throws:
XQEvalException

getAttribute

public XQNode getAttribute(QName name)
                    throws XQEvalException
Specified by:
getAttribute in interface XQNode
Throws:
XQEvalException

getAncestors

public XQValue getAncestors(NodeTest nodeTest)
                     throws XQEvalException
Description copied from interface: XQNode
Returns an iterator on ancestors that match the node test.

Specified by:
getAncestors in interface XQNode
Parameters:
nodeTest - concrete classes are BaseNodeTest(node-kind?, nsuri?, ncname?), UnionNodeTest, DocumentTest.
Throws:
XQEvalException

getAncestorsOrSelf

public XQValue getAncestorsOrSelf(NodeTest nodeTest)
                           throws XQEvalException
Specified by:
getAncestorsOrSelf in interface XQNode
Throws:
XQEvalException

getParent

public XQValue getParent(NodeTest nodeTest)
                  throws XQEvalException
Description copied from interface: XQNode
Returns a sequence of length 1 if the parent matches the nodeTest, else 0.

Specified by:
getParent in interface XQNode
Throws:
XQEvalException

getChildren

public XQValue getChildren(NodeTest nodeTest)
                    throws XQEvalException
Specified by:
getChildren in interface XQNode
Throws:
XQEvalException

getDescendants

public XQValue getDescendants(NodeTest nodeTest)
                       throws XQEvalException
Specified by:
getDescendants in interface XQNode
Throws:
XQEvalException

getDescendantsOrSelf

public XQValue getDescendantsOrSelf(NodeTest nodeTest)
Specified by:
getDescendantsOrSelf in interface XQNode

getAttributes

public XQValue getAttributes(NodeTest nodeTest)
Specified by:
getAttributes in interface XQNode

getFollowingSiblings

public XQValue getFollowingSiblings(NodeTest nodeTest)
Specified by:
getFollowingSiblings in interface XQNode

getPrecedingSiblings

public XQValue getPrecedingSiblings(NodeTest nodeTest)
Description copied from interface: XQNode
Preceding siblings in document order.

Specified by:
getPrecedingSiblings in interface XQNode

getFollowing

public XQValue getFollowing(NodeTest nodeTest)
Specified by:
getFollowing in interface XQNode

getPreceding

public XQValue getPreceding(NodeTest nodeTest)
Description copied from interface: XQNode
Preceding nodes in document order.

Specified by:
getPreceding in interface XQNode

isNode

public boolean isNode()
Description copied from interface: XQItem
Tests whether the item is a Node.

Specified by:
isNode in interface XQItem

getNode

public XQNode getNode()
               throws XQEvalException
Description copied from interface: XQItem
Gets the item as a Node value.

Specified by:
getNode in interface XQItem
Throws:
XQEvalException

getItem

public XQItem getItem()
               throws XQEvalException
Throws:
XQEvalException

getString

public java.lang.String getString()
                           throws XQEvalException
Description copied from interface: XQItem
Gets the item as a String value.

Specified by:
getString in interface XQItem
Throws:
XQEvalException

getBoolean

public boolean getBoolean()
                   throws XQEvalException
Description copied from interface: XQItem
Gets the item as a boolean value.

Specified by:
getBoolean in interface XQItem
Throws:
XQEvalException

getInteger

public long getInteger()
                throws XQEvalException
Description copied from interface: XQItem
Gets the item as a integer value.

Specified by:
getInteger in interface XQItem
Throws:
XQEvalException

getDecimal

public java.math.BigDecimal getDecimal()
                                throws XQEvalException
Description copied from interface: XQItem
Gets the item as a decimal value.

Specified by:
getDecimal in interface XQItem
Throws:
XQEvalException

getFloat

public float getFloat()
               throws XQEvalException
Description copied from interface: XQItem
Gets the item as a float value.

Specified by:
getFloat in interface XQItem
Throws:
XQEvalException

getDouble

public double getDouble()
                 throws XQEvalException
Description copied from interface: XQItem
Gets the item as a double value.

Specified by:
getDouble in interface XQItem
Throws:
XQEvalException

© 2005 Axyana Software