public class RecursivePathSelector<Node> extends Object implements NodeSelector<Node>
Constructor and Description |
---|
RecursivePathSelector(NodeSelector<Node> delegate,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName(NodeBackend<Node> nodeRDFBackend)
Return a name for this selector to be used as the name for the whole path if not explicitly
specified.
|
String |
getPathExpression(NodeBackend<Node> rdfBackend)
Return the name of the NodeSelector for registration in the selector registry
|
static <N> RecursivePathSelector<N> |
getPathSelectorMaxBound(NodeSelector<N> delegate,
int maxBound)
(delegate){,n} |
static <N> RecursivePathSelector<N> |
getPathSelectorMinBound(NodeSelector<N> delegate,
int minBound)
(delegate){m,} |
static <N> RecursivePathSelector<N> |
getPathSelectorMinMaxBound(NodeSelector<N> delegate,
int minBound,
int maxBound)
(delegate){m,n} |
static <N> RecursivePathSelector<N> |
getPathSelectorPlused(NodeSelector<N> delegate)
(delegate)+ |
static <N> RecursivePathSelector<N> |
getPathSelectorStared(NodeSelector<N> delegate)
(delegate)* |
int |
hashCode() |
Collection<Node> |
select(RDFBackend<Node> rdfBackend,
Node context,
List<Node> path,
Map<Node,List<Node>> resultPaths)
Apply the selector to the context node passed as argument and return the collection
of selected nodes in appropriate order.
|
public RecursivePathSelector(NodeSelector<Node> delegate, int min, int max)
public Collection<Node> select(RDFBackend<Node> rdfBackend, Node context, List<Node> path, Map<Node,List<Node>> resultPaths)
select
in interface NodeSelector<Node>
context
- the node where to start the selectionpath
- the path leading to but not including the context node in the current evaluation of LDPath; may be null,
in which case path tracking is disabledresultPaths
- 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 ignoredpublic String getPathExpression(NodeBackend<Node> rdfBackend)
getPathExpression
in interface LDPathConstruct<Node>
rdfBackend
- public String getName(NodeBackend<Node> nodeRDFBackend)
getName
in interface NodeSelector<Node>
public static <N> RecursivePathSelector<N> getPathSelectorStared(NodeSelector<N> delegate)
(delegate)*
delegate
- the delegatepublic static <N> RecursivePathSelector<N> getPathSelectorPlused(NodeSelector<N> delegate)
(delegate)+
delegate
- the delegatepublic static <N> RecursivePathSelector<N> getPathSelectorMinBound(NodeSelector<N> delegate, int minBound)
(delegate){m,}
delegate
- the delegateminBound
- m
public static <N> RecursivePathSelector<N> getPathSelectorMaxBound(NodeSelector<N> delegate, int maxBound)
(delegate){,n}
delegate
- the delegatemaxBound
- n
public static <N> RecursivePathSelector<N> getPathSelectorMinMaxBound(NodeSelector<N> delegate, int minBound, int maxBound)
(delegate){m,n}
delegate
- the delegateminBound
- m
maxBound
- n
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.