Class AbstractFilter
java.lang.Object
org.gvsig.remoteclient.wfs.filters.AbstractFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
FilterEncoding
All classes that implement a "Query Language" must to inherit of
this class
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Field Summary
Fields inherited from interface org.gvsig.remoteclient.wfs.filters.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAndClause(String propertyName, String propertyValue) It adds a new property and value using the AND operationvoidvoidaddFeatureById(Object id) Adds a feature idvoidaddSpatialFilter(String version, org.gvsig.fmap.geom.primitive.Envelope envelope, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation) voidaddSpatialFilter(org.gvsig.fmap.geom.Geometry geometry, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation) voidaddSpatialFilter(WFSSpatialFilterOperation spatialOperation) voidabstract StringgetGeometricOperator(int operator) returns the String that represents the geometric operator in this query languageprotected ArrayListgetIds()abstract StringgetLogicalOperator(int operator) returns the String that represents the logic operator in this query languageintgetLogicalOperator(String operator) getOperator(int operator) Return true if the token is a operatorabstract StringgetRelationalOperator(int operator) returns the String that represents the relational operator in this query languageintgetRelationalOperator(String operator) abstract StringgetSeparator(int separator) returns the String that represents the separator operator in this query languagegetSpatialFilterAt(int index) intparseValues(String line, int option) Divide a line in a set of wordsvoidsetQueryByAttribute(String query) abstract StringtoString(BinaryTree tree, String version) It returns the Query like a String
-
Constructor Details
-
AbstractFilter
-
-
Method Details
-
toString
It returns the Query like a String -
getLogicalOperator
returns the String that represents the logic operator in this query language- Parameters:
operator- Logic operator- Returns:
-
getRelationalOperator
returns the String that represents the relational operator in this query language- Parameters:
operator- Logic operator- Returns:
-
getGeometricOperator
returns the String that represents the geometric operator in this query language- Parameters:
operator- Logic operator- Returns:
-
getSeparator
returns the String that represents the separator operator in this query language- Parameters:
separator- LSeparator "(" or ")"- Returns:
-
addFeatureById
Adds a feature id- Parameters:
id- The feature id
-
getIds
- Returns:
- the ids
-
setQueryByAttribute
-
addAndClause
It adds a new property and value using the AND operation- Parameters:
propertyName-propertyValue-
-
getSpatialFiltersCount
public int getSpatialFiltersCount() -
getSpatialFilterAt
-
clearSpatialFilters
public void clearSpatialFilters() -
addSpatialFilter
-
addSpatialFilter
-
addSpatialFilter
-
addClause
-
toString
-
getOperator
Return true if the token is a operator- Parameters:
operator-- Returns:
-
getRelationalOperator
-
getLogicalOperator
-
parseValues
Divide a line in a set of words- Parameters:
line- Line to divideoption- If the option is EXACT it returns the same line- Returns:
- Iteraror A set of words
-