|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a like filter, which checks to see if an attribute matches a REGEXP.
Field Summary |
Fields inherited from interface org.geotools.filter.Filter |
ALL, NONE |
Fields inherited from interface org.geotools.filter.FilterType |
BETWEEN, COMPARE_EQUALS, COMPARE_GREATER_THAN, COMPARE_GREATER_THAN_EQUAL, COMPARE_LESS_THAN, COMPARE_LESS_THAN_EQUAL, COMPARE_NOT_EQUALS, FID, GEOMETRY_BBOX, GEOMETRY_BEYOND, GEOMETRY_CONTAINS, GEOMETRY_CROSSES, GEOMETRY_DISJOINT, GEOMETRY_DWITHIN, GEOMETRY_EQUALS, GEOMETRY_INTERSECTS, GEOMETRY_OVERLAPS, GEOMETRY_TOUCHES, GEOMETRY_WITHIN, LIKE, LOGIC_AND, LOGIC_NOT, LOGIC_OR, NULL |
Method Summary | |
boolean |
contains(Feature feature)
Determines whether or not a given feature matches this pattern. |
java.lang.String |
getEscape()
Accessor for property escape. |
java.lang.String |
getPattern()
Accessor method to retrieve the pattern. |
Expression |
getValue()
Gets the Value (left hand side) of this filter. |
java.lang.String |
getWildcardMulti()
Getter for property wildcardMulti. |
java.lang.String |
getWildcardSingle()
Accessor for property wildcardSingle. |
void |
setPattern(Expression p,
java.lang.String wildcardMulti,
java.lang.String wildcardSingle,
java.lang.String escape)
Sets the match pattern for this FilterLike. |
void |
setPattern(java.lang.String pattern,
java.lang.String wildcardMulti,
java.lang.String wildcardSingle,
java.lang.String escape)
Sets the match pattern for this FilterLike. |
void |
setValue(Expression attribute)
Sets the expression to be evalutated as being like the pattern. |
Methods inherited from interface org.geotools.filter.Filter |
accept, and, getFilterType, not, or |
Method Detail |
public void setPattern(java.lang.String pattern, java.lang.String wildcardMulti, java.lang.String wildcardSingle, java.lang.String escape)
pattern
- The string which contains the match pattern for this
filter.wildcardMulti
- The string that represents a mulitple character
(1->n) wildcard.wildcardSingle
- The string that represents a single character (1)
wildcard.escape
- The string that represents an escape character.public java.lang.String getWildcardMulti()
public java.lang.String getEscape()
public void setPattern(Expression p, java.lang.String wildcardMulti, java.lang.String wildcardSingle, java.lang.String escape)
p
- The expression which evaluates to the match pattern for this
filter.wildcardMulti
- The string that represents a mulitple character
(1->n) wildcard.wildcardSingle
- the string that represents a single character (1)
wildcard.escape
- The string that represents an escape character.public java.lang.String getPattern()
public void setValue(Expression attribute) throws IllegalFilterException
attribute
- The value of the attribute for comparison.
IllegalFilterException
- Filter is illegal, adding something other
than a string attribute.public Expression getValue()
public java.lang.String getWildcardSingle()
public boolean contains(Feature feature)
contains
in interface Filter
feature
- Specified feature to examine.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |