|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.exist.fluent.Resource
org.exist.fluent.Item
org.exist.fluent.Node
public class Node
A node in the database. Nodes are most often contained in XML documents, but can also be transient in-memory nodes created by a query.
| Method Summary | |
|---|---|
ElementBuilder<Node> |
append()
Return a builder that will append elements to this node's children. |
Comparable<Object> |
comparableValue()
Return the comparable value of this item, if available. |
int |
compareDocumentOrderTo(Node node)
Compare the order of two nodes in a document. |
void |
delete()
Delete this node from its parent. |
XMLDocument |
document()
Return the document to which this node belongs. |
boolean |
equals(Object o)
Return whether this node represents the same node in the database as the given object. |
boolean |
extant()
Return whether this item really exists. |
int |
hashCode()
Warning: computing a node's hash code is surprisingly expensive, and the value is not cached. |
NamespaceMap |
inScopeNamespaces()
Return the namespace bindings in force in the scope of this node. |
String |
name()
Return the name of this node, in the "prefix:localName" form. |
Node |
node()
Return this node. |
QName |
qname()
Return the qualified name of this node, including its namespace URI, local name and prefix. |
ElementBuilder<?> |
replace()
Return a builder that will replace this node. |
AttributeBuilder |
update()
Return a builder for updating the attribute values of this element. |
| Methods inherited from class org.exist.fluent.Item |
|---|
booleanValue, dateTimeValue, doubleValue, durationValue, instantValue, intValue, longValue, toAtomicItem, toItemList, toString, type, value, valueWithDefault |
| Methods inherited from class org.exist.fluent.Resource |
|---|
database, namespaceBindings, query |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean extant()
Item
extant in class Itemtrue if the item exists, false otherwisepublic Node node()
node in class Itempublic Comparable<Object> comparableValue()
Item
comparableValue in class Itempublic boolean equals(Object o)
equals in class Itempublic int hashCode()
hashCode in class Itempublic NamespaceMap inScopeNamespaces()
public int compareDocumentOrderTo(Node node)
node - the node to compare this one to
DatabaseException - if this node and the given one are not in the same documentpublic XMLDocument document()
UnsupportedOperationException - if this node does not belong to a documentpublic ElementBuilder<Node> append()
null.
public void delete()
public String name()
public QName qname()
public ElementBuilder<?> replace()
null.
UnsupportedOperationException - if the node does not have a parentpublic AttributeBuilder update()
UnsupportedOperationException - if this node is not an element
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||