| Package | Description |
|---|---|
| org.gcube.data.trees.data | |
| org.gcube.data.trees.io | |
| org.gcube.data.trees.patterns | |
| org.gcube.data.trees.streams |
| Modifier and Type | Class and Description |
|---|---|
class |
InnerNode
An inner
Node, i.e. |
class |
Leaf
A leaf
Node. |
class |
Tree
An
InnerNode at the root of a tree. |
| Modifier and Type | Method and Description |
|---|---|
static <N extends Node> |
Nodes.attr(N n,
Nodes.Attribute attribute,
Nodes.Attribute... attributes)
Returns a
Node annotated with one or more attributes. |
<T extends Node> |
InnerNode.child(Class<T> type,
QName l)
Returns a child of this node with a given label and of a given node type, if exactly one exists.
|
<T extends Node> |
InnerNode.child(Class<T> type,
String l)
Returns a child of this node with a given label and of a given node type, if exactly one exists.
|
<T extends Node> |
InnerNode.child(Class<T> type,
String ns,
String l)
Returns a child of this node with a given label and of a given type, if exactly one exists.
|
<T extends Node> |
InnerNode.children(Class<T> type)
Returns all the children of a given node type.
|
<T extends Node> |
InnerNode.children(Class<T> type,
QName l)
Returns all the children with a given label and a given node type.
|
<T extends Node> |
InnerNode.children(Class<T> type,
String l)
Returns all the children with a given label and a given node type.
|
<T extends Node> |
InnerNode.children(Class<T> type,
String ns,
String l)
Returns all the children with a given label and given node type.
|
<T extends Node> |
InnerNode.descendant(Class<T> type,
String... descendantIDs)
Returns the descendant of a given node type which can be reached from this node by following a given path of identifiers.
|
<T extends Node> |
InnerNode.descendants(Class<T> type,
QName... labels)
Returns all the descendants of a given node type which can be reached from this node by following a given path of labels.
|
<T extends Node> |
InnerNode.descendants(Class<T> type,
String... labels)
Returns all the descendants of a given node type that can be reached from this node by following a given sequence of labels.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
InnerNode.child(QName l)
Returns a child of this node with a given label, if exactly one exists.
|
Node |
InnerNode.child(String l)
Returns a child of this node with a given label, if exactly one exists.
|
Node |
InnerNode.child(String ns,
String l)
Returns a child of this node with a given label, if exactly one exists.
|
protected Node |
Node.delta(Node future)
Returns a node that reflects the delta between this node and a given input node.
|
Node |
InnerNode.descendant(String... ids)
Returns the descendant that can be reached from this node by following a given path of node identifiers.
|
Node |
InnerNode.remove(String childID)
Removes a child.
|
Node |
Edge.target()
Returns the target node.
|
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
Node.ancestorsAndSelf()
Returns the ancestors of the node along with the node itself.
|
List<Node> |
InnerNode.children()
Returns all the children.
|
List<Node> |
InnerNode.children(QName l)
Returns all the children with a given label.
|
List<Node> |
InnerNode.children(String l)
Returns all the children with a given label.
|
List<Node> |
InnerNode.children(String ns,
String l)
Returns all the children with a given label.
|
List<? extends Node> |
InnerNode.descendants(QName... labels)
Returns all the descendants that can be reached from this node by following a given path of labels.
|
List<? extends Node> |
InnerNode.descendants(String... labels)
Returns all the descendants that can be reached from this node by following a given sequence of labels.
|
List<? extends Node> |
InnerNode.find(QName... labels)
Returns all the descendants of this node that can be reached from this node or any other descendant by following a given path of labels.
|
List<? extends Node> |
InnerNode.find(String... labels)
Returns all the descendants of this node that can be reached from this node or any other descendant by following a given path of labels.
|
List<Node> |
InnerNode.remove(String... childIDs)
Removes one or more children.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
InnerNode.clearState(Node n) |
InnerNode |
InnerNode.delta(Node f)
Returns a node that reflects the delta between this node and a given input node.
|
protected Leaf |
Leaf.delta(Node f)
Returns a node that reflects the delta between this node and a given input node.
|
protected Node |
Node.delta(Node future)
Returns a node that reflects the delta between this node and a given input node.
|
static Edge |
Nodes.e(QName name,
Node node)
|
static Edge |
Nodes.e(String name,
Node node)
|
protected static void |
InnerNode.markAsNew(Node n) |
void |
Edge.target(Node n)
Sets the target node.
|
void |
InnerNode.update(Node delta)
Applies the changes captured by the delta node in input (cf.
|
void |
Leaf.update(Node delta)
Applies the changes captured by the delta node in input (cf.
|
void |
Node.update(Node delta)
Applies the changes captured by the delta node in input..
|
| Constructor and Description |
|---|
Edge(QName l,
Node n)
Creates an instance with a label and a node.
|
Edge(String l,
Node n)
Creates an instance with a label and a node.
|
Edge(String ns,
String l,
Node n)
Creates an instance with a label and a node.
|
| Modifier and Type | Method and Description |
|---|---|
static Node |
Bindings.nodeFromElement(Element element)
Deprecated.
|
static Node |
XMLBindings.nodeFromElement(Element element)
Parses a
Node from its XML representation. |
static Node |
Bindings.nodeFromReader(Reader r)
Deprecated.
|
static Node |
Bindings.nodeFromStream(InputStream in)
Deprecated.
Binds an
InputStream to a Node. |
static Node |
XMLBindings.nodeFromStream(InputStream stream)
Parses a
Node from its XML representation. |
static Node |
XMLBindings.nodeFromStream(Reader stream)
Parses a
Node from its XML representation. |
static Node |
XMLBindings.nodeFromString(String xml)
Parses a
Node from its XML representation. |
| Modifier and Type | Method and Description |
|---|---|
static Element |
XMLBindings.nodeToElement(Node node)
Converts a
Node to its XML representation. |
static Element |
Bindings.nodeToElement(Node node,
QName... name)
Deprecated.
|
static Element |
XMLBindings.nodeToElement(Node node,
WriteOptions options)
Converts a
Node to its XML representation. |
static void |
XMLBindings.nodetoStream(Node node,
OutputStream stream)
Converts a
Node to its XML representation. |
static void |
XMLBindings.nodeToStream(Node node,
OutputStream stream,
WriteOptions options)
Converts a
Node to its XML representation. |
static void |
XMLBindings.nodeToStream(Node node,
Writer stream)
Converts a
Node to its XML representation. |
static void |
XMLBindings.nodeToStream(Node node,
Writer stream,
WriteOptions options)
Converts a
Node to its XML representation. |
static String |
XMLBindings.nodeToString(Node node)
Converts a
Node to its XML representation. |
static String |
XMLBindings.nodeToString(Node node,
WriteOptions options)
Converts a
Node to its XML representation. |
static void |
Bindings.nodeToWriter(Node node,
Writer stream,
QName... name)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TreePattern.matches(Node n)
Indicates whether a node matches a pattern.
|
boolean |
AnyPattern.matches(Node n)
Indicates whether a node matches a pattern.
|
boolean |
Pattern.matches(Node n)
Indicates whether a node matches a pattern.
|
boolean |
AbstractPattern.matches(Node node) |
boolean |
LeafPattern.matches(Node n)
Indicates whether a node matches a pattern.
|
void |
CutTreePattern.prune(Node n)
Removes all the edges of a nodes that matches the pattern, not only those that are not required for matching.
|
void |
TreePattern.prune(Node n)
Prunes a node of all the descendants that are not required to match the pattern.
|
void |
AnyPattern.prune(Node n)
Prunes a node of all the descendants that are not required to match the pattern.
|
void |
Pattern.prune(Node n)
Prunes a node of all the descendants that are not required to match the pattern.
|
void |
AbstractPattern.prune(Node node) |
void |
LeafPattern.prune(Node n)
Prunes a node of all the descendants that are not required to match the pattern.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
TreeStreams.NodeParser.yield(String payload) |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.data.streams.Stream<Node> |
TreeStreams.nodesIn(URI locator)
Converts a Result Set with
Nodes into a Stream. |
static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Node> |
TreeStreams.publishNodesIn(org.gcube.data.streams.Stream<Node> stream)
Publishes a
Stream of Nodes as a result set. |
| Modifier and Type | Method and Description |
|---|---|
String |
TreeStreams.NodeSerialiser.yield(Node doc) |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Node> |
TreeStreams.publishNodesIn(org.gcube.data.streams.Stream<Node> stream)
Publishes a
Stream of Nodes as a result set. |
Copyright © 2018. All Rights Reserved.