/** * Sets the expression to be evalutated as being like the pattern * * @param attribute The value of the attribute for comparison. * @throws IllegalFilterException Filter is illegal. * @deprecated Use {@link #setExpression(org.opengis.filter.expression.Expression)} */ public final void setValue(Expression attribute) throws IllegalFilterException { setExpression(attribute); }
public PropertyIsLike like( Expression expr, String pattern, String wildcard, String singleChar, String escape, boolean matchCase, MatchAction matchAction) { LikeFilterImpl filter = new LikeFilterImpl(matchAction); filter.setExpression(expr); filter.setPattern(pattern, wildcard, singleChar, escape); filter.setMatchingCase(matchCase); return filter; }
public PropertyIsLike like( Expression expr, String pattern, String wildcard, String singleChar, String escape, boolean matchCase) { LikeFilterImpl filter = new LikeFilterImpl(); filter.setExpression(expr); filter.setPattern(pattern, wildcard, singleChar, escape); filter.setMatchingCase(matchCase); return filter; }
public LikeFilterImpl( org.opengis.filter.expression.Expression expr, String pattern, String wildcardMulti, String wildcardSingle, String escape, MatchAction matchAction) { this(matchAction); setExpression(expr); setLiteral(pattern); setWildCard(wildcardMulti); setSingleChar(wildcardSingle); setEscape(escape); }
public LikeFilterImpl( org.opengis.filter.expression.Expression expr, String pattern, String wildcardMulti, String wildcardSingle, String escape) { this(); setExpression(expr); setLiteral(pattern); setWildCard(wildcardMulti); setSingleChar(wildcardSingle); setEscape(escape); }
((LikeFilterImpl) curFilter).setExpression(expression); curState = "pattern"; } else if (curState.equals("pattern")) {
/** * Sets the expression to be evalutated as being like the pattern * * @param attribute The value of the attribute for comparison. * * @throws IllegalFilterException Filter is illegal. */ public final void setValue(Expression attribute) throws IllegalFilterException { setExpression(attribute); }
/** * Sets the expression to be evalutated as being like the pattern * * @param attribute The value of the attribute for comparison. * * @throws IllegalFilterException Filter is illegal. */ public final void setValue(Expression attribute) throws IllegalFilterException { setExpression(attribute); }
public void testLikeFilter() throws IllegalFilterException { LikeFilterImpl lFilter1 = new LikeFilterImpl(); LikeFilterImpl lFilter2 = new LikeFilterImpl(); String pattern = "te_st!"; String wcMulti = "!"; String wcSingle = "_"; String escape = "#"; testExp2 = new LiteralExpressionImpl(Integer.valueOf(45)); testExp3 = new AttributeExpressionImpl(testSchema, "testInteger"); testExp4 = new AttributeExpressionImpl(testSchema, "testInteger"); lFilter1.setExpression(testExp3); lFilter2.setExpression(testExp4); lFilter1.setPattern(pattern, wcMulti, wcSingle, escape); lFilter2.setPattern(pattern, wcMulti, wcSingle, escape); assertTrue(lFilter1.equals(lFilter2)); lFilter2.setPattern("te__t!", wcMulti, wcSingle, escape); assertTrue(!lFilter1.equals(lFilter2)); lFilter2.setPattern(pattern, wcMulti, wcSingle, escape); lFilter2.setExpression(testExp2); assertTrue(!lFilter1.equals(lFilter2)); }
public PropertyIsLike like(Expression expr, String pattern, String wildcard, String singleChar, String escape) { LikeFilterImpl filter = new LikeFilterImpl(); filter.setExpression(expr); filter.setPattern(pattern,wildcard,singleChar,escape); return filter; }
public PropertyIsLike like(Expression expr, String pattern, String wildcard, String singleChar, String escape, boolean matchCase, MatchAction matchAction) { LikeFilterImpl filter = new LikeFilterImpl(matchAction); filter.setExpression(expr); filter.setPattern(pattern,wildcard,singleChar,escape); filter.setMatchingCase( matchCase ); return filter; }
public PropertyIsLike like(Expression expr, String pattern, String wildcard, String singleChar, String escape, boolean matchCase) { LikeFilterImpl filter = new LikeFilterImpl(); filter.setExpression(expr); filter.setPattern(pattern,wildcard,singleChar,escape); filter.setMatchingCase( matchCase ); return filter; }
public LikeFilterImpl(org.opengis.filter.expression.Expression expr, String pattern, String wildcardMulti, String wildcardSingle, String escape, MatchAction matchAction) { this(matchAction); setExpression(expr); setLiteral(pattern); setWildCard(wildcardMulti); setSingleChar(wildcardSingle); setEscape(escape); }
public LikeFilterImpl(org.opengis.filter.expression.Expression expr, String pattern, String wildcardMulti, String wildcardSingle, String escape) { this(); setExpression(expr); setLiteral(pattern); setWildCard(wildcardMulti); setSingleChar(wildcardSingle); setEscape(escape); }