|
|||||||||
| Home >> All >> com >> aendvari >> common >> [ osm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.common.osm
Class QueryOsmPath

java.lang.Objectcom.aendvari.common.osm.QueryOsmPath
- public class QueryOsmPath
- extends java.lang.Object
Provides the ability to access nodes within an Object Space Model using an expression.
This class allows the selection of single and multiple nodes.
| Nested Class Summary | |
protected static class |
QueryOsmPath.Operator
Represents a single operation to perform during expression evaluation. |
protected static class |
QueryOsmPath.Parser
Parses a query expressions. |
| Field Summary | |
private java.util.List |
operations
Contains the compiled query expression. |
| Constructor Summary | |
QueryOsmPath(java.lang.String expression)
Constructs an QueryOsmPath instance. |
|
| Method Summary | |
protected void |
compile(java.lang.String expression)
Compiles the supplied query expression. |
protected void |
parseIndexOperator(QueryOsmPath.Parser parser,
java.lang.String segment)
Parses an index selection operator. |
OsmNode |
selectNode(OsmNode context)
Selects a single node using the compiled expression. |
protected OsmNode |
selectNode(OsmNode context,
int operationIndex)
Performs the query expression operations for a single node selection. |
static OsmNode |
selectNode(OsmNode context,
java.lang.String expression)
Uses the expression to select a single node. |
protected OsmNode |
selectNodeByIndex(QueryOsmPath.Operator operator,
OsmNode context,
int operationIndex)
Selects a child node based on its position. |
protected OsmNode |
selectNodeByName(QueryOsmPath.Operator operator,
OsmNode context,
int operationIndex)
Selects a child node based on its name. |
java.util.Collection |
selectNodes(OsmNode context)
Selects a multiple nodes using the compiled expression. |
protected void |
selectNodes(OsmNode context,
int operationIndex,
java.util.Collection nodes)
Performs the query expression operations for multiple node selection. |
static java.util.Collection |
selectNodes(OsmNode context,
java.lang.String expression)
Uses the expression to select multiple nodes. |
protected void |
selectNodesByIndex(QueryOsmPath.Operator operator,
OsmNode context,
int operationIndex,
java.util.Collection nodes)
Selects a child node based on its position. |
protected void |
selectNodesByName(QueryOsmPath.Operator operator,
OsmNode context,
int operationIndex,
java.util.Collection nodes)
Selects child nodes based on their name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
operations
private java.util.List operations
- Contains the compiled query expression.
| Constructor Detail |
QueryOsmPath
public QueryOsmPath(java.lang.String expression)
- Constructs an
QueryOsmPathinstance.
| Method Detail |
selectNode
public OsmNode selectNode(OsmNode context)
- Selects a single node using the compiled expression.
selectNodes
public java.util.Collection selectNodes(OsmNode context)
- Selects a multiple nodes using the compiled expression.
selectNode
public static OsmNode selectNode(OsmNode context, java.lang.String expression)
- Uses the expression to select a single node.
selectNodes
public static java.util.Collection selectNodes(OsmNode context, java.lang.String expression)
- Uses the expression to select multiple nodes.
selectNodeByName
protected OsmNode selectNodeByName(QueryOsmPath.Operator operator, OsmNode context, int operationIndex)
- Selects a child node based on its name.
selectNodeByIndex
protected OsmNode selectNodeByIndex(QueryOsmPath.Operator operator, OsmNode context, int operationIndex)
- Selects a child node based on its position.
selectNode
protected OsmNode selectNode(OsmNode context, int operationIndex)
- Performs the query expression operations for a single node selection.
selectNodesByName
protected void selectNodesByName(QueryOsmPath.Operator operator, OsmNode context, int operationIndex, java.util.Collection nodes)
- Selects child nodes based on their name.
selectNodesByIndex
protected void selectNodesByIndex(QueryOsmPath.Operator operator, OsmNode context, int operationIndex, java.util.Collection nodes)
- Selects a child node based on its position.
selectNodes
protected void selectNodes(OsmNode context, int operationIndex, java.util.Collection nodes)
- Performs the query expression operations for multiple node selection.
parseIndexOperator
protected void parseIndexOperator(QueryOsmPath.Parser parser, java.lang.String segment)
- Parses an index selection operator.
compile
protected void compile(java.lang.String expression)
- Compiles the supplied query expression.
|
|||||||||
| Home >> All >> com >> aendvari >> common >> [ osm overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.common.osm.QueryOsmPath