public abstract class AbstractQueryImpl extends Object implements Query
| Constructor and Description |
|---|
AbstractQueryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubQuery(Query subQuery) |
AbstractQueryImpl |
copy() |
AbstractQueryImpl |
getChildAt(int index) |
Query[] |
getChildren()
Returns queries that are children of this query.
|
int |
getChildrenCount() |
abstract int |
getChildrenSlotsCount()
Returns the limit number of children this query can have.
|
Query[] |
getDescendantsAndSelf()
Utility method that returns all descendant queries plus this query.
|
AbstractQueryImpl[] |
getLeaves() |
abstract String |
getName()
Returns query's full name.
|
Query |
getParent()
Returns the parent query or
null if this query is root. |
abstract int |
getPropertiesCount()
Returns the number of properties this query has.
|
abstract String |
getPropertyName(int index)
Returns the name of the property at the specified
index. |
abstract Object |
getPropertyValue(int index)
Returns the value of the property at the specified
index. |
Query[] |
getQueries(Class<? extends Filter> filterClass)
Utility method that returns all queries in this query hierarchy that are
filterClass instance. |
org.gephi.graph.api.Graph |
getResult() |
AbstractQueryImpl |
getRoot() |
void |
removeSubQuery(Query subQuery) |
abstract void |
setName(String name)
Sets the query name to a custom value
|
void |
setParent(Query parent) |
void |
setResult(org.gephi.graph.api.Graph result) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuilder, getFilterpublic abstract int getChildrenSlotsCount()
QuerygetChildrenSlotsCount in interface Querypublic abstract int getPropertiesCount()
QuerygetPropertiesCount in interface Querypublic abstract String getPropertyName(int index)
Queryindex.getPropertyName in interface Queryindex - the index of the propertypublic abstract Object getPropertyValue(int index)
Queryindex.getPropertyValue in interface Queryindex - the index of the propertypublic abstract String getName()
Querypublic abstract void setName(String name)
Querypublic Query[] getChildren()
QuerygetChildren in interface Querypublic int getChildrenCount()
public AbstractQueryImpl getChildAt(int index)
public void addSubQuery(Query subQuery)
public void removeSubQuery(Query subQuery)
public Query getParent()
Querynull if this query is root.public void setParent(Query parent)
public void setResult(org.gephi.graph.api.Graph result)
public org.gephi.graph.api.Graph getResult()
public AbstractQueryImpl getRoot()
public AbstractQueryImpl[] getLeaves()
public AbstractQueryImpl copy()
public Query[] getQueries(Class<? extends Filter> filterClass)
QueryfilterClass instance.getQueries in interface QueryfilterClass - the filter class that is to be queriedfilterClass
instancepublic Query[] getDescendantsAndSelf()
QuerygetDescendantsAndSelf in interface QueryCopyright © 2007–2017. All rights reserved.