public class HandlerQueryParser extends Object implements ParseConstants
XMLQuery
and its @link XMLQuery#getWhereElementSet()}
into an Expression
tree.SQL_AND, SQL_EQUAL, SQL_GREATER_THAN, SQL_GREATER_THAN_OR_EQUAL_TO, SQL_LESS_THAN, SQL_LESS_THAN_OR_EQUAL_TO, SQL_LIKE, SQL_OR, XMLQUERY_AND, XMLQUERY_EQUAL, XMLQUERY_GREATER_THAN, XMLQUERY_GREATER_THAN_OR_EQUAL_TO, XMLQUERY_LESS_THAN, XMLQUERY_LESS_THAN_OR_EQUAL_TO, XMLQUERY_LIKE, XMLQUERY_LITERAL, XMLQUERY_LOGOP, XMLQUERY_OR, XMLQUERY_RELOP
Constructor and Description |
---|
HandlerQueryParser() |
Modifier and Type | Method and Description |
---|---|
static Stack<QueryElement> |
createQueryStack(List<QueryElement> l) |
static Expression |
parse(Stack<QueryElement> queryStack)
Calls
parse(Stack, Mapping) with a null mapping. |
static Expression |
parse(Stack<QueryElement> queryStack,
Mapping map)
Parses the
XMLQuery.getWhereElementSet() using the provided
map. |
public static Expression parse(Stack<QueryElement> queryStack)
parse(Stack, Mapping)
with a null mapping.queryStack
- The XMLQuery.getWhereElementSet()
.Expression
tree.public static Expression parse(Stack<QueryElement> queryStack, Mapping map)
XMLQuery.getWhereElementSet()
using the provided
map.queryStack
- The XMLQuery.getWhereElementSet()
map
- The provided ontological mapping.Expression
tree.public static Stack<QueryElement> createQueryStack(List<QueryElement> l)
Copyright © 1999-2015 Apache OODT. All Rights Reserved.