Examples of LikeFilterImpl


Examples of org.geotools.filter.LikeFilterImpl

   *
   * @return true if specified object is equal to this filter; false otherwise.
   */
  public boolean equals(Object obj) {
    if (obj instanceof LikeFilterImpl) {
      LikeFilterImpl lFilter = (LikeFilterImpl) obj;

      // REVISIT: check for nulls.
      return ((lFilter.getFilterType() == this.filterType) && lFilter.getValue().equals(this.attribute) && lFilter
          .getPattern().equals(this.pattern));
    }
    return false;
  }
View Full Code Here

Examples of org.geotools.filter.LikeFilterImpl

    } else if (filter instanceof NotImpl) {
      NotImpl impl = (NotImpl) filter;
      Filter f = impl.getFilter();
      decodeFilter(f);
    } else if (filter instanceof LikeFilterImpl) {
      LikeFilterImpl impl = (LikeFilterImpl) filter;
      String encode = impl.getLiteral();
      impl.setLiteral(decodeString(encode));
    } else if (filter instanceof IsEqualsToImpl) {
      IsEqualsToImpl impl = (IsEqualsToImpl) filter;
      decodeExpression(impl.getExpression1());
      decodeExpression(impl.getExpression2());
    } else if (filter instanceof IsNotEqualToImpl) {
      IsNotEqualToImpl impl = (IsNotEqualToImpl) filter;
      decodeExpression(impl.getExpression1());
      decodeExpression(impl.getExpression2());
    }
  }
View Full Code Here

Examples of org.geotools.filter.LikeFilterImpl

        Filter resultFilter = CompilerUtil.parseFilter(this.language, "ATTR1 LIKE 'abc%'");

        Assert.assertNotNull("Filter expected", resultFilter);

        Assert.assertTrue(resultFilter instanceof LikeFilterImpl);
        LikeFilterImpl likeFilter = (LikeFilterImpl) resultFilter;

        Assert.assertTrue( likeFilter.isMatchingCase() );
    }
View Full Code Here

Examples of org.geotools.filter.LikeFilterImpl

        Filter resultFilter = CompilerUtil.parseFilter(this.language, "ATTR1 ILIKE 'abc%'");

        Assert.assertNotNull("Filter expected", resultFilter);

        Assert.assertTrue(resultFilter instanceof LikeFilterImpl);
        LikeFilterImpl likeFilter = (LikeFilterImpl) resultFilter;

        Assert.assertFalse( likeFilter.isMatchingCase() );
    }
View Full Code Here

Examples of org.geotools.filter.LikeFilterImpl

        // not iLike
        Filter resultFilter = CompilerUtil.parseFilter(this.language, "not ATTR1 ILIKE 'abc%'");

        Not notFilter = (Not)resultFilter;
       
        LikeFilterImpl likeFilter = (LikeFilterImpl)notFilter.getFilter();

        Assert.assertFalse( likeFilter.isMatchingCase() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.