IterableNodeView<N>, View<N>, Iterable<NodeView<N>>public final class NodeSetView<N extends Node> extends Object implements IterableNodeView<N>
| Constructor | Description |
|---|---|
NodeSetView(Iterable<? extends N> nodes,
Predicate<? super N> predicate) |
Creates NodeSetView from given nodes and predicate.
|
NodeSetView(Iterable<NodeView<N>> nodeSet) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(View<N> other) |
Compare views by XQuery comparison rules.
|
static <T extends Node> |
empty() |
|
Iterator<NodeView<N>> |
iterator() |
|
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, spliteratorpublic NodeSetView(Iterable<? extends N> nodes, Predicate<? super N> predicate)
nodes - nodes to wap in a viewpredicate - predicate to apply to nodespublic static <T extends Node> NodeSetView<T> empty()
public int compareTo(View<N> other)
Viewpublic boolean toBoolean()
Viewpublic double toNumber()
Viewpublic String toString()
Viewpublic <T> T visit(ViewVisitor<N,T> visitor) throws XmlBuilderException
Viewvisit in interface View<N extends Node>T - type of return valuevisitor - XML element visitorXmlBuilderException - if error occur during XML model modification