| Modifier and Type | Field and Description |
|---|---|
int |
id
Unique node id.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AxisIter |
ancestor()
Returns an ancestor axis iterator.
|
abstract AxisIter |
ancestorOrSelf()
Returns an ancestor-or-self axis iterator.
|
byte[] |
attribute(QNm name)
Returns the value of the specified attribute, or
null. |
abstract AxisMoreIter |
attributes()
Returns an attribute axis iterator.
|
byte[] |
baseURI()
Returns the base URI of the node.
|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
abstract AxisMoreIter |
children()
Returns a child axis iterator.
|
abstract ANode |
copy()
Returns a copy of the node.
|
abstract ANode |
deepCopy()
Returns a deep copy of the node.
|
abstract AxisIter |
descendant()
Returns a descendant axis iterator.
|
abstract AxisIter |
descendantOrSelf()
Returns a descendant-or-self axis iterator.
|
abstract int |
diff(ANode node)
Compares two nodes for their unique order.
|
int |
diff(InputInfo ii,
Item it)
Returns the difference between the current and the specified item.
|
boolean |
eq(InputInfo ii,
Item it)
Checks the items for equality.
|
ANode |
finish()
Returns a final node representation.
|
abstract AxisIter |
following()
Returns a following axis iterator.
|
abstract AxisIter |
followingSibling()
Returns a following-sibling axis iterator.
|
abstract boolean |
hasChildren()
Returns true if the node has children.
|
abstract boolean |
is(ANode node)
Compares the identity of two nodes.
|
int |
kind()
Returns a database kind for the specified node type.
|
static int |
kind(NodeType t)
Returns a database kind for the specified node type.
|
byte[] |
name()
Returns the name of the node, composed of an optional prefix
and the local name.
|
Atts |
namespaces()
Returns all namespaces defined for the nodes.
|
NodeType |
nodeType()
Returns this Node's node type.
|
Atts |
nsScope()
Returns a copy of the namespace hierarchy.
|
ANode |
optimize()
Minimizes the memory consumption of the node.
|
abstract ANode |
parent()
Returns the parent node.
|
abstract ANode |
parent(ANode p)
Sets the parent node.
|
abstract AxisIter |
parentIter()
Returns a parent axis iterator.
|
AxisIter |
preceding()
Returns a preceding axis iterator.
|
AxisIter |
precedingSibling()
Returns a preceding-sibling axis iterator.
|
QNm |
qname()
Returns the QName of the node.
|
abstract QNm |
qname(QNm nm)
Updates the specified with the information of the current node.
|
AxisMoreIter |
self()
Returns an self axis iterator.
|
abstract void |
serialize(Serializer ser)
Serializes the item.
|
abstract byte[] |
string()
Returns the string value.
|
byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
BXNode |
toJava()
Returns a Java representation of the value.
|
static NodeType |
type(int k)
Returns a node type for the specified database kind.
|
byte[] |
uri(byte[] pref,
QueryContext ctx)
Recursively finds the uri for the specified prefix.
|
comparable, dbl, dec, ebv, equiv, flt, hash, homogenous, input, isItem, item, itemAt, iter, iterable, itr, plan, score, score, size, test, type, writeTo, xdmInfocache, comp, count, data, description, info, isValue, iter, iterator, removable, remove, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isVacuous, markTailCalls, sameAspublic final boolean bool(InputInfo ii)
Itempublic final byte[] string(InputInfo ii)
Itempublic abstract byte[] string()
public final boolean eq(InputInfo ii, Item it) throws QueryException
Itemeq in class Itemii - input infoit - item to be comparedQueryException - query exceptionpublic final int diff(InputInfo ii, Item it) throws QueryException
Itemdiff in class Itemii - input infoit - item to be comparedQueryException - query exceptionpublic abstract ANode copy()
public abstract ANode deepCopy()
public byte[] name()
qname(), as no QNm
instance is created.public QNm qname()
public abstract QNm qname(QNm nm)
qname(), as an existing
QNm instance is reused.
This function must only be called for elements, attributes and pi's.nm - temporary qnamepublic ANode optimize()
public Atts namespaces()
public final Atts nsScope()
public final byte[] uri(byte[] pref,
QueryContext ctx)
pref - prefixctx - query contextpublic byte[] baseURI()
public abstract void serialize(Serializer ser) throws java.io.IOException
Itempublic abstract boolean is(ANode node)
node - node to be comparedpublic abstract int diff(ANode node)
node - node to be comparedpublic ANode finish()
public abstract ANode parent()
public abstract ANode parent(ANode p)
p - parent nodepublic abstract boolean hasChildren()
public byte[] attribute(QNm name)
null.name - attribute to be foundpublic abstract AxisIter ancestor()
public abstract AxisIter ancestorOrSelf()
public abstract AxisMoreIter attributes()
public abstract AxisMoreIter children()
public abstract AxisIter descendant()
public abstract AxisIter descendantOrSelf()
public abstract AxisIter following()
public abstract AxisIter followingSibling()
public abstract AxisIter parentIter()
public final AxisIter preceding()
public final AxisIter precedingSibling()
public final AxisMoreIter self()
public int kind()
public static int kind(NodeType t)
t - node typepublic static NodeType type(int k)
k - database kindpublic final BXNode toJava()
Valuepublic final NodeType nodeType()