Qizx/open API

net.axyana.qizxopen.xquery.dm
Class NodeBase

java.lang.Object
  extended bynet.axyana.qizxopen.xquery.dm.NodeBase
All Implemented Interfaces:
Node, java.io.Serializable, XQItem, XQNode

public abstract class NodeBase
extends java.lang.Object
implements XQNode

Abstract base for actual Node implementations.

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
NodeBase()
           
 
Method Summary
 int compareTo(XQItem that, java.text.Collator collator, int implicitTimeZone)
          Value comparison: equivalent to (untypedAtomic, string-value).
 boolean equals(java.lang.Object that)
          Based on identity, not on string-value.
 boolean getBoolean()
          Gets the item as a boolean value.
 java.math.BigDecimal getDecimal()
          Gets the item as a decimal value.
 double getDouble()
          Gets the item as a double value.
 float getFloat()
          Gets the item as a float value.
 long getInteger()
          Gets the item as a integer value.
 XQItem getItem()
           
 XQNode getNode()
          Gets the item as a Node value.
 java.lang.String getString()
          Gets the item as a String value.
 XQItemType getType()
          Returns the type description.
 int hashCode()
          Based on identity, not on string-value.
 boolean isNode()
          Tests whether the item is a Node.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.axyana.qizxopen.xquery.dm.XQNode
getAncestors, getAncestorsOrSelf, getAttribute, getAttributes, getAttributes, getChildren, getChildren, getDescendants, getDescendantsOrSelf, getDocument, getFollowing, getFollowingSiblings, getNamespaces, getParent, getParent, getPreceding, getPrecedingSiblings
 
Methods inherited from interface net.axyana.qizxopen.xquery.XQItem
deepEqual
 
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

NodeBase

public NodeBase()
Method Detail

getType

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

Specified by:
getType in interface XQItem

isNode

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

Specified by:
isNode in interface XQItem

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

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

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

compareTo

public int compareTo(XQItem that,
                     java.text.Collator collator,
                     int implicitTimeZone)
              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

equals

public boolean equals(java.lang.Object that)
Based on identity, not on string-value.


hashCode

public int hashCode()
Based on identity, not on string-value. Redefined here just for documentation purpose.


© 2005 Axyana Software