Class FilterEncoding
java.lang.Object
org.gvsig.remoteclient.wfs.filters.AbstractFilter
org.gvsig.remoteclient.wfs.filters.filterencoding.FilterEncoding
- All Implemented Interfaces:
Filter
This class implements the Filter Encoding Language. It is used to
create querys in this language
Name: OpenGISĀ® Filter Encoding Implementation Specification
Version: 1.1.0
Project Document: OGC 04-095
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionFilterEncoding(ISQLExpressionFormat formatter) Create a new Filter Encoding ParserFilterEncoding(ISQLExpressionFormat formatter, String namesPacePrefix, String wildCard, String singleChar, String escape, Hashtable filterAttributes) Create a new Filter Encoding ParserFilterEncoding(WFSStatus status) Create a new Filter Encoding Parser -
Method Summary
Modifier and TypeMethodDescriptiongetGeometricOperator(int operator) returns the String that represents the geometric operator in this query languagegetLogicalOperator(int operator) returns the String that represents the logic operator in this query languagegetRelationalOperator(int operator) returns the String that represents the relational operator in this query languagegetSeparator(int separator) returns the String that represents the separator operator in this query languagevoidsetHasBlankSpaces(boolean hasBlankSpaces) voidsetNamepacePrefix(String namepacePrefix) voidsetQualified(boolean isQualified) Envolves a value with an XML tagtoString(BinaryTree tree, String version) It returns the Query like a StringMethods inherited from class org.gvsig.remoteclient.wfs.filters.AbstractFilter
addAndClause, addClause, addFeatureById, addSpatialFilter, addSpatialFilter, addSpatialFilter, clearSpatialFilters, getIds, getLogicalOperator, getOperator, getRelationalOperator, getSpatialFilterAt, getSpatialFiltersCount, parseValues, setQueryByAttribute, toString
-
Field Details
-
RELATIONSHIP_PROPERTY
public static final int RELATIONSHIP_PROPERTY- See Also:
-
RELATIONSHIP_VAUES
public static final int RELATIONSHIP_VAUES- See Also:
-
DEFAULT_NAMESPACE_PREFIX
- See Also:
-
DEFAULT_WILDCARD
- See Also:
-
DEFAULT_SINGLECHAR
- See Also:
-
DEFAULT_ESCAPE
- See Also:
-
DEFAULT_NAMESPACE
- See Also:
-
-
Constructor Details
-
FilterEncoding
public FilterEncoding(ISQLExpressionFormat formatter, String namesPacePrefix, String wildCard, String singleChar, String escape, Hashtable filterAttributes) Create a new Filter Encoding Parser- Parameters:
singleChar- This character must be replaced by one character (typically "?")escape- Escape characternameSpacePrefix- Filter namespace. (typically "ogc")wildCardChar- This character must be replaced by any set of characters (typically "*")filterAttribute- Sometimes, "Field" label needs an attribute.
-
FilterEncoding
Create a new Filter Encoding Parser- Parameters:
formatter-
-
FilterEncoding
Create a new Filter Encoding Parser
-
-
Method Details
-
toString
Description copied from class:AbstractFilterIt returns the Query like a String- Specified by:
toStringin classAbstractFilter
-
setTag
Envolves a value with an XML tag- Parameters:
tagName- XML tag nameattributes- XML tag attributesvalue- Tag value- Returns:
- String XML tag with its value
-
getLogicalOperator
Description copied from class:AbstractFilterreturns the String that represents the logic operator in this query language- Specified by:
getLogicalOperatorin classAbstractFilter- Parameters:
operator- Logic operator- Returns:
-
getRelationalOperator
Description copied from class:AbstractFilterreturns the String that represents the relational operator in this query language- Specified by:
getRelationalOperatorin classAbstractFilter- Parameters:
operator- Logic operator- Returns:
-
getGeometricOperator
Description copied from class:AbstractFilterreturns the String that represents the geometric operator in this query language- Specified by:
getGeometricOperatorin classAbstractFilter- Parameters:
operator- Logic operator- Returns:
-
getSeparator
Description copied from class:AbstractFilterreturns the String that represents the separator operator in this query language- Specified by:
getSeparatorin classAbstractFilter- Parameters:
separator- LSeparator "(" or ")"- Returns:
-
setQualified
public void setQualified(boolean isQualified) - Parameters:
isQualified- the isQualified to set
-
setNamepacePrefix
- Parameters:
namepacePrefix- the namepacePrefix to set
-
setHasBlankSpaces
public void setHasBlankSpaces(boolean hasBlankSpaces) - Parameters:
hasBlankSpaces- the hasBlankSpaces to set
-