public interface NodeSelector<Node> extends LDPathConstruct<Node>
|Modifier and Type||Method and Description|
Return a name for this selector to be used as the name for the whole path if not explicitly specified.
Apply the selector to the context node passed as argument and return the collection of selected nodes in appropriate order.
Collection<Node> select(RDFBackend<Node> backend, Node context, List<Node> path, Map<Node,List<Node>> resultPaths)
context- the node where to start the selection
path- the path leading to and including the context node in the current evaluation of LDPath; may be null, in which case path tracking is disabled
resultPaths- a map where each of the result nodes maps to a path leading to the result node in the LDPath evaluation; if null, path tracking is disabled and the path argument is ignored
String getName(NodeBackend<Node> backend)
UnsupportedOperationException- in case returning a name is not reasonable
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.