public class FilterEncoding extends AbstractGeneralLanguage
http://portal.opengeospatial.org/files/?artifact_id=8340
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ESCAPE |
static String |
DEFAULT_NAMESPACE |
static String |
DEFAULT_PREFIX |
static String |
DEFAULT_SINGLECHAR |
static String |
DEFAULT_WILDCARD |
static String |
PROPERTY_IS_EQUALS_TO |
static String |
PROPERTY_IS_GREATER |
static String |
PROPERTY_IS_GREATER_THAN |
static String |
PROPERTY_IS_LESS |
static String |
PROPERTY_IS_LESS_THAN |
static String |
PROPERTY_IS_LIKE |
static String |
TYPE_LITERAL |
static String |
TYPE_TWO_PROPERTIES |
ALL_WORDS, and, AND, ANY_WORDS, currentClause, currentQuery, EXACT_WORDS, or, OR
Constructor and Description |
---|
FilterEncoding()
Create a new Filter Encoding Parser with the
deafault values
|
FilterEncoding(String prefix,
String wildCard,
String singleChar,
String escape)
Create a new Filter Encoding Parser
|
Modifier and Type | Method and Description |
---|---|
void |
addBoundingBox(Coordinates coordinates,
String propertyName,
boolean not)
It Adds a Bounding Box query
|
void |
addClauses(String propertyName,
Iterator propertyValues,
String concordancia,
String relationship,
String type,
String operator)
It Adds a new clause of the query
|
void |
addClauses(String propertyName,
String propertyValue,
String concordancia)
It Adds a new clause of the query
|
void |
addClauses(String propertyName,
String propertyValue,
String concordancia,
String relationship,
String type,
String operator)
It Adds a new clause of the query
|
protected void |
addCurrentClauseQuery(String operator)
It adds the "and" label to join different operations
|
String |
getEscapeCharLabel() |
String |
getSingleCharLabel() |
String |
getWildCard() |
String |
getWildCardLabel() |
void |
setEscapeCharLabel(String escapeCharLabel) |
void |
setSingleCharLabel(String singleCharLabel) |
void |
setWildCardLabel(String wildCardLabel) |
String |
toString()
It returns the encoded query
|
getOperator, parseValues, parseValues
public static final String PROPERTY_IS_LIKE
public static final String PROPERTY_IS_LESS
public static final String PROPERTY_IS_GREATER
public static final String PROPERTY_IS_GREATER_THAN
public static final String PROPERTY_IS_LESS_THAN
public static final String PROPERTY_IS_EQUALS_TO
public static final String TYPE_LITERAL
public static final String TYPE_TWO_PROPERTIES
public static final String DEFAULT_PREFIX
public static final String DEFAULT_WILDCARD
public static final String DEFAULT_SINGLECHAR
public static final String DEFAULT_ESCAPE
public static final String DEFAULT_NAMESPACE
public FilterEncoding(String prefix, String wildCard, String singleChar, String escape)
prefix
- Prefix of the labels (if its necessary).
Typically "ogc".wildCard
- It Depends of the serversingleChar
- It Depends of the serverescape
- It Depends of the serverpublic FilterEncoding()
public void addClauses(String propertyName, String propertyValue, String concordancia, String relationship, String type, String operator)
propertyName
- The property namepropertyValue
- The property valueconcordancia
- "E" (Exact phrase), "A" (All words)
or "Y" (anY word).relationship
- PropertyIsLike, PropertyIsLess, PropertyIsGreater,... See the File encoding
Documentation.type
- Values: "P" (to comparate two propertyes) or "L" (to comparate one property
and one literal value)operator
- "And" or "Or". Operator between fieldspublic void addClauses(String propertyName, String propertyValue, String concordancia)
propertyName
- The property namepropertyValue
- The property valueconcordancia
- "E" (Exact phrase), "A" (All words)
or "Y" (anY word).public void addClauses(String propertyName, Iterator propertyValues, String concordancia, String relationship, String type, String operator)
propertyName
- The property namepropertyValues
- The property value separated by blank spacesconcordancia
- "E" (Exact phrase), "A" (All words)
or "Y" (anY word).relationship
- PropertyIsLike, PropertyIsLess, PropertyIsGreater,... See the File encoding
Documentation.type
- Values: "P" (to comparate two propertyes) or "L" (to comparate one property
and one literal value)operator
- "And" or "Or". Operator between fieldsprotected void addCurrentClauseQuery(String operator)
operator
- public String toString()
toString
in interface ILanguages
toString
in class Object
public void addBoundingBox(Coordinates coordinates, String propertyName, boolean not)
coordinates
- Coordinates to findpropertyName
- Property that contains the geom fieldnot
- If we have to envolve the query with the "NOT" tag.public String getWildCard()
public String getWildCardLabel()
public void setWildCardLabel(String wildCardLabel)
wildCardLabel
- the wildCardLabel to setpublic String getEscapeCharLabel()
public void setEscapeCharLabel(String escapeCharLabel)
escapeCharLabel
- the escapeCharLabel to setpublic String getSingleCharLabel()
public void setSingleCharLabel(String singleCharLabel)
singleCharLabel
- the singleCharLabel to set