org.geotools.filter
Interface LikeFilter

All Superinterfaces:
Filter, FilterType, PropertyIsLike
All Known Implementing Classes:
LikeFilterImpl

Deprecated. use PropertyIsLike

public interface LikeFilter
extends Filter, PropertyIsLike

Defines a like filter, which checks to see if an attribute matches a REGEXP.

Author:
Rob Hranac, Vision for New York
Module:

Field Summary
 
Fields inherited from interface Filter
ALL, NONE
 
Fields inherited from interface 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
 
Fields inherited from interface Filter
EXCLUDE, INCLUDE
 
Fields inherited from interface PropertyIsLike
NAME
 
Fields inherited from interface Filter
EXCLUDE, INCLUDE
 
Method Summary
 boolean contains(SimpleFeature feature)
          Deprecated. use org.opengis.filter.Filter#evaluate(Feature)
 String getEscape()
          Deprecated. use PropertyIsLike.getEscape()
 String getPattern()
          Deprecated. use PropertyIsLike.getLiteral()
 Expression getValue()
          Deprecated. use PropertyIsLike.getExpression()
 String getWildcardMulti()
          Deprecated. use PropertyIsLike.getWildCard()
 String getWildcardSingle()
          Deprecated. use PropertyIsLike.getSingleChar()()
 void setPattern(Expression p, String wildcardMulti, String wildcardSingle, String escape)
          Deprecated. use one of PropertyIsLike#setExpression(Expression) PropertyIsLike#setWildCard(String) PropertyIsLike#setSingleChar(String) PropertyIsLike#setEscape(String)
 void setPattern(String pattern, String wildcardMulti, String wildcardSingle, String escape)
          Deprecated. use one of PropertyIsLike#setExpression(Expression) PropertyIsLike#setWildCard(String) PropertyIsLike#setSingleChar(String) PropertyIsLike#setEscape(String)
 void setValue(Expression attribute)
          Deprecated. use PropertyIsLike#setExpression(Expression)
 
Methods inherited from interface Filter
accept, and, evaluate, getFilterType, not, or
 
Methods inherited from interface Filter
accept, evaluate
 
Methods inherited from interface PropertyIsLike
getExpression, getLiteral, getSingleChar, getWildCard, isMatchingCase
 
Methods inherited from interface Filter
accept, evaluate
 

Method Detail

setPattern

void setPattern(String pattern,
                String wildcardMulti,
                String wildcardSingle,
                String escape)
Deprecated. use one of PropertyIsLike#setExpression(Expression) PropertyIsLike#setWildCard(String) PropertyIsLike#setSingleChar(String) PropertyIsLike#setEscape(String)

Sets the match pattern for this FilterLike.

Parameters:
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.

getWildcardMulti

String getWildcardMulti()
Deprecated. use PropertyIsLike.getWildCard()

Getter for property wildcardMulti.

Returns:
Value of property wildcardMulti.

getEscape

String getEscape()
Deprecated. use PropertyIsLike.getEscape()

Accessor for property escape.

Specified by:
getEscape in interface PropertyIsLike
Returns:
Value of property escape.

setPattern

void setPattern(Expression p,
                String wildcardMulti,
                String wildcardSingle,
                String escape)
Deprecated. use one of PropertyIsLike#setExpression(Expression) PropertyIsLike#setWildCard(String) PropertyIsLike#setSingleChar(String) PropertyIsLike#setEscape(String)

Sets the match pattern for this FilterLike.

Parameters:
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.

getPattern

String getPattern()
Deprecated. use PropertyIsLike.getLiteral()

Accessor method to retrieve the pattern.

Returns:
the pattern being matched.

setValue

void setValue(Expression attribute)
              throws IllegalFilterException
Deprecated. use PropertyIsLike#setExpression(Expression)

Sets the expression to be evalutated as being like the pattern.

Parameters:
attribute - The value of the attribute for comparison.
Throws:
IllegalFilterException - Filter is illegal, adding something other than a string attribute.

getValue

Expression getValue()
Deprecated. use PropertyIsLike.getExpression()

Gets the Value (left hand side) of this filter.

Returns:
The expression that is the value of the filter.

getWildcardSingle

String getWildcardSingle()
Deprecated. use PropertyIsLike.getSingleChar()()

Accessor for property wildcardSingle.

Returns:
Value of property wildcardSingle.

contains

boolean contains(SimpleFeature feature)
Deprecated. use org.opengis.filter.Filter#evaluate(Feature)

Determines whether or not a given feature matches this pattern.

Parameters:
feature - Specified feature to examine.
Returns:
Flag confirming whether or not this feature is inside the filter.
TODO:
REVISIT: could the pattern be null such that a null = null?


Copyright © 1996-2009 Geotools. All Rights Reserved.