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.
|
Item |
atomItem(InputInfo ii)
Evaluates the expression and returns the atomized items.
|
byte[] |
attribute(byte[] name)
Returns the value of the specified attribute or
null . |
byte[] |
attribute(QNm name)
Returns the value of the specified attribute or
null . |
byte[] |
attribute(String 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()
Creates a copy of this node.
|
DBNode |
dbCopy(MainOptions opts)
Returns a database node representation of the node.
|
abstract ANode |
deepCopy(MainOptions opts)
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)
Checks the document order of two nodes.
|
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item.
|
boolean |
eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii)
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)
Checks if two nodes are identical.
|
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(StaticContext sc)
Returns a copy of the namespace hierarchy.
|
ANode |
optimize()
Minimizes the memory consumption of the node.
|
abstract ANode |
parent()
Returns the parent node.
|
protected 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 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)
Recursively finds the uri for the specified prefix.
|
atomItem, atomSize, atomValue, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, item, itemAt, iter, iterable, itr, materialize, plan, score, score, seqType, size, test, typeId, writeTo, xdmInfo
accept, atomValue, cache, checkUp, compile, copy, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
public final boolean bool(InputInfo ii)
Item
public final byte[] string(InputInfo ii)
Item
public abstract byte[] string()
public final boolean eq(Item it, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
Item
eq
in class Item
it
- item to be comparedcoll
- collationsc
- static contextii
- input infoQueryException
- query exceptionpublic final int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
it
- item to be comparedcoll
- query contextii
- input infoQueryException
- query exceptionpublic final Item atomItem(InputInfo ii)
Item
public abstract ANode copy()
public abstract ANode deepCopy(MainOptions opts)
opts
- main optionspublic DBNode dbCopy(MainOptions opts)
opts
- main optionspublic 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(StaticContext sc)
sc
- static contextpublic final byte[] uri(byte[] pref)
pref
- prefixpublic byte[] baseURI()
public abstract boolean is(ANode node)
node
- node to be comparedpublic abstract int diff(ANode node)
node
- node to be compared0
if the nodes are identical, or 1
/-1
if the node appears after/before the argumentpublic ANode finish()
public abstract ANode parent()
protected abstract ANode parent(ANode p)
p
- parent nodepublic abstract boolean hasChildren()
public byte[] attribute(String name)
null
.name
- attribute to be foundpublic byte[] attribute(byte[] name)
null
.name
- attribute to be foundpublic 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()
Value
public final NodeType nodeType()
Copyright © 2005–2015 BaseX Team. All rights reserved.