LikeOperator.java

  1. package de.turnertech.ows.filter;

  2. import de.turnertech.ows.gml.IFeature;

  3. public class LikeOperator implements ComparisonOperator {
  4.    
  5.     private final Expression[] expression = new Expression[2];

  6.     private Character wildCard;

  7.     private Character singleChar;

  8.     private Character escapeChar;

  9.     /**
  10.      * @return the expression
  11.      */
  12.     public Expression[] getExpression() {
  13.         return expression;
  14.     }

  15.     /**
  16.      * @return the wildCard
  17.      */
  18.     public Character getWildCard() {
  19.         return wildCard;
  20.     }

  21.     /**
  22.      * @param wildCard the wildCard to set
  23.      */
  24.     public void setWildCard(Character wildCard) {
  25.         this.wildCard = wildCard;
  26.     }

  27.     /**
  28.      * @return the singleChar
  29.      */
  30.     public Character getSingleChar() {
  31.         return singleChar;
  32.     }

  33.     /**
  34.      * @param singleChar the singleChar to set
  35.      */
  36.     public void setSingleChar(Character singleChar) {
  37.         this.singleChar = singleChar;
  38.     }

  39.     /**
  40.      * @return the escapeChar
  41.      */
  42.     public Character getEscapeChar() {
  43.         return escapeChar;
  44.     }

  45.     /**
  46.      * @param escapeChar the escapeChar to set
  47.      */
  48.     public void setEscapeChar(Character escapeChar) {
  49.         this.escapeChar = escapeChar;
  50.     }

  51.     @Override
  52.     public boolean test(IFeature feature) {
  53.         // TODO Auto-generated method stub
  54.         throw new UnsupportedOperationException("Unimplemented method 'getAsBoolean'");
  55.     }

  56.    

  57. }