public class GraphQuery extends Query
Constructor and Description |
---|
GraphQuery(String from,
String to,
Query query) |
Modifier and Type | Method and Description |
---|---|
GraphQuery |
clone() |
List<Query> |
getChildQueries()
Returns all the children of the query in question.
|
String |
getFrom() |
Query |
getQuery() |
String |
getTo() |
boolean |
isEmptyQuery() |
boolean |
removeChildQuery(Query toRemove)
Remove 'toRemove', if 'toRemove' is currently a child of this Query object.
|
boolean |
replaceChildQuery(Query toReplace,
Query replacement)
Swap 'replacement' in as a replacement, if 'toReplace' is currently a child of this Query object.
|
clone, deepClone
public static final String TYPE
public String getTo()
public String getFrom()
public Query getQuery()
public List<Query> getChildQueries()
Query
List
is provided as a copy - changes made to it do not impact the originating Query object
in any way.getChildQueries
in class Query
public boolean replaceChildQuery(Query toReplace, Query replacement)
Query
replaceChildQuery
in class Query
public boolean removeChildQuery(Query toRemove)
Query
removeChildQuery
in class Query
public boolean isEmptyQuery()
isEmptyQuery
in class Query
public GraphQuery clone()