| java.lang.Object com.flexive.shared.search.query.QueryNode com.flexive.shared.search.query.QueryOperatorNode com.flexive.shared.search.query.QueryRootNode
QueryRootNode | public class QueryRootNode extends QueryOperatorNode (Code) | | The root node of a query, containing additional information
like its name or its type.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Inner Class :public static enum Type | |
Constructor Summary | |
public | QueryRootNode(int id, Type type, ResultLocation location) Create a new, empty query with the given parameters. | public | QueryRootNode(Type type) Create a new, empty query of the given type. | public | QueryRootNode(Type type, ResultLocation location) Create a new, empty query with the given parameters. | public | QueryRootNode(int id, Type type) Create a new, empty query of the given type with the given root node id. |
QueryRootNode | public QueryRootNode(int id, Type type, ResultLocation location)(Code) | | Create a new, empty query with the given parameters.
Parameters: id - the node ID Parameters: type - the query type Parameters: location - the query form location (usually matches the search result location) |
QueryRootNode | public QueryRootNode(Type type)(Code) | | Create a new, empty query of the given type.
Parameters: type - the query type |
QueryRootNode | public QueryRootNode(Type type, ResultLocation location)(Code) | | Create a new, empty query with the given parameters.
Parameters: type - the query type Parameters: location - the query form location (usually matches the search result location) |
QueryRootNode | public QueryRootNode(int id, Type type)(Code) | | Create a new, empty query of the given type with the given root node id.
Parameters: id - the node ID Parameters: type - the query type |
getNewId | public int getNewId()(Code) | | Return a fresh node ID not used in the tree.
a new node ID that can be used for attaching a new node to the tree |
getType | public Type getType()(Code) | | |
joinNodes | public QueryOperatorNode joinNodes(List<Integer> nodeIds, Operator operator)(Code) | | Join the given nodes in a new sub hierarchy with the given operator.
The new subquery is inserted in the tree level of the highest node.
Parameters: nodeIds - the nodes to be joined Parameters: operator - the operator used for joining (and/or) the new operator node |
|
|