|
Qizx/Open v0.4p2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.xfra.qizxopen.xquery.dm.NodeBase
Abstract base for actual Node implementations.
| Field Summary |
| Fields inherited from interface net.xfra.qizxopen.xquery.Item |
INCOMPARABLE |
| Fields inherited from interface net.xfra.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 | |
boolean |
asBoolean()
Gets the item as a boolean value (optimisable). |
java.math.BigDecimal |
asDecimal()
Gets the item as a decimal value. |
double |
asDouble()
Gets the item as a double value (optimisable). |
float |
asFloat()
Gets the item as a float value (optimisable). |
long |
asInteger()
Gets the item as a integer value (optimisable). |
Item |
asItem()
|
Node |
asNode()
Gets the item as a Node value (optimisable). |
java.lang.String |
asString()
Gets the item as a String value (optimisable). |
int |
compareTo(Item 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. |
ItemType |
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.xfra.qizxopen.xquery.dm.Node |
getAncestors, getAncestorsOrSelf, getAttribute, getAttributes, getAttributes, getChildren, getChildren, getDescendants, getDescendantsOrSelf, getDocument, getFollowing, getFollowingSiblings, getNamespaces, getParent, getParent, getPreceding, getPrecedingSiblings |
| Methods inherited from interface net.xfra.qizxopen.xquery.Item |
deepEqual |
| Methods inherited from interface net.xfra.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, namespaces, orderCompare, parent, parent, preceding, precedingSiblings |
| Constructor Detail |
public NodeBase()
| Method Detail |
public ItemType getType()
Item
getType in interface Itempublic boolean isNode()
Item
isNode in interface Item
public boolean asBoolean()
throws TypeException
Item
asBoolean in interface ItemTypeException
public long asInteger()
throws TypeException
Item
asInteger in interface ItemTypeException
public java.math.BigDecimal asDecimal()
throws TypeException
Item
asDecimal in interface ItemTypeException
public float asFloat()
throws TypeException
Item
asFloat in interface ItemTypeException
public double asDouble()
throws TypeException
Item
asDouble in interface ItemTypeException
public java.lang.String asString()
throws TypeException
Item
asString in interface ItemTypeException
public Node asNode()
throws TypeException
Item
asNode in interface ItemTypeException
public Item asItem()
throws TypeException
TypeException
public int compareTo(Item that,
java.text.Collator collator,
int implicitTimeZone)
throws TypeException
compareTo in interface ItemTypeExceptionpublic boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Copyright Xavier FRANC 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||