public abstract class AbstractFilter extends Object implements Filter
BBOX_ENCLOSES, CONCORDANCIA_ALL_WORDS, CONCORDANCIA_ANY_WORD, CONCORDANCIA_EXACT, GEOMETRIC_OPERATOR_BBOX, GEOMETRIC_OPERATOR_BEYOND, GEOMETRIC_OPERATOR_CONTAINS, GEOMETRIC_OPERATOR_CROSSES, GEOMETRIC_OPERATOR_DISJOINT, GEOMETRIC_OPERATOR_DWITHIN, GEOMETRIC_OPERATOR_EQUALS, GEOMETRIC_OPERATOR_INTERSECT, GEOMETRIC_OPERATOR_OVERLAPS, GEOMETRIC_OPERATOR_TOUCHES, GEOMETRIC_OPERATOR_WITHIN, LOGICAL_OPERATOR_AND, LOGICAL_OPERATOR_NOT, LOGICAL_OPERATOR_OR, RELATIONAL_OPERATOR_IS_BETWEEN, RELATIONAL_OPERATOR_IS_EQUALS_TO, RELATIONAL_OPERATOR_IS_GREATER_THAN, RELATIONAL_OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO, RELATIONAL_OPERATOR_IS_LESS_THAN, RELATIONAL_OPERATOR_IS_LESS_THAN_OR_EQUAL_TO, RELATIONAL_OPERATOR_IS_LIKE, RELATIONAL_OPERATOR_IS_NOT_EQUALS_TO, RELATIONAL_OPERATOR_IS_NULL, SEPARATOR_CLOSED, SEPARATOR_OPENED, STRING_VALUE
Constructor and Description |
---|
AbstractFilter(ISQLExpressionFormat formatter) |
Modifier and Type | Method and Description |
---|---|
void |
addAndClause(String propertyName,
String propertyValue)
It adds a new property and value using the AND
operation
|
void |
addClause(String value) |
void |
addFeatureById(Object id)
Adds a feature id
|
void |
addSpatialFilter(Geometry geometry,
String attributeName,
String nameSpacePrefix,
String nameSpaceLocation,
String srs,
int operation) |
void |
addSpatialFilter(String version,
Envelope envelope,
String attributeName,
String nameSpacePrefix,
String nameSpaceLocation,
String srs,
int operation) |
void |
addSpatialFilter(WFSSpatialFilterOperation spatialOperation) |
void |
clearSpatialFilters() |
abstract String |
getGeometricOperator(int operator)
returns the String that represents the geometric
operator in this query language
|
protected ArrayList |
getIds() |
abstract String |
getLogicalOperator(int operator)
returns the String that represents the logic
operator in this query language
|
int |
getLogicalOperator(String operator) |
String |
getOperator(int operator)
Return true if the token is a operator
|
abstract String |
getRelationalOperator(int operator)
returns the String that represents the relational
operator in this query language
|
int |
getRelationalOperator(String operator) |
abstract String |
getSeparator(int separator)
returns the String that represents the separator
operator in this query language
|
WFSSpatialFilterOperation |
getSpatialFilterAt(int index) |
int |
getSpatialFiltersCount() |
Iterator |
parseValues(String line,
int option)
Divide a line in a set of words
|
void |
setQueryByAttribute(String query) |
abstract String |
toString(BinaryTree tree,
String version)
It returns the Query like a String
|
String |
toString(String version) |
public AbstractFilter(ISQLExpressionFormat formatter)
public abstract String toString(BinaryTree tree, String version)
public abstract String getLogicalOperator(int operator)
operator
- Logic operatorpublic abstract String getRelationalOperator(int operator)
operator
- Logic operatorpublic abstract String getGeometricOperator(int operator)
operator
- Logic operatorpublic abstract String getSeparator(int separator)
separator
- LSeparator "(" or ")"public void addFeatureById(Object id)
id
- The feature idprotected ArrayList getIds()
public void setQueryByAttribute(String query)
public void addAndClause(String propertyName, String propertyValue)
propertyName
- propertyValue
- public int getSpatialFiltersCount()
public WFSSpatialFilterOperation getSpatialFilterAt(int index)
public void clearSpatialFilters()
public void addSpatialFilter(WFSSpatialFilterOperation spatialOperation)
public void addSpatialFilter(Geometry geometry, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation)
public void addSpatialFilter(String version, Envelope envelope, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation)
public void addClause(String value)
public String getOperator(int operator)
operator
- public int getRelationalOperator(String operator)
public int getLogicalOperator(String operator)