IterableNodeView<N>
, View<N>
, Iterable<NodeView<N>>
public final class NodeView<N extends Node> extends Object implements IterableNodeView<N>
Constructor | Description |
---|---|
NodeView(N node) |
|
NodeView(N node,
boolean isNew) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(View<N> other) |
Compare views by XQuery comparison rules.
|
boolean |
equals(Object o) |
|
N |
getNode() |
|
int |
hashCode() |
|
boolean |
isNew() |
|
Iterator<NodeView<N>> |
iterator() |
|
void |
mark() |
|
boolean |
toBoolean() |
Converts this view to a boolean value.
|
double |
toNumber() |
Converts this view to a numeric value.
|
String |
toString() |
Converts this view to a string value.
|
<T> T |
visit(ViewVisitor<N,T> visitor) |
Visits current XML element.
|
forEach, spliterator
public NodeView(N node)
public NodeView(N node, boolean isNew)
public int compareTo(View<N> other)
View
public boolean toBoolean()
View
public double toNumber()
View
public String toString()
View
public <T> T visit(ViewVisitor<N,T> visitor) throws XmlBuilderException
View
visit
in interface View<N extends Node>
T
- type of return valuevisitor
- XML element visitorXmlBuilderException
- if error occur during XML model modificationpublic N getNode()
public boolean isNew()
public void mark()