Class TLcdOGCIsLikeOperator

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCIsLikeOperator
All Implemented Interfaces:
ILcdDataObject, ILcdGenericExpression, ILcdOGCCondition, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdOGCIsLikeOperator extends TLcdDataObject implements ILcdOGCCondition
A character string comparison operator with pattern matching.
A TLcdOGCIsLikeOperator instance is composed of a property name that will be compared, a literal that represents the pattern and char primitives that correspond to the wildCard, singleChar and escapeChar. The wildCard character matches zero or more characters. The singleChar character matches exactly one character. The escapeChar character is used to escape the meaning of the wildCard, singleChar and escapeChar itself.
By default the match is case-sensitive.

This class represents the OGC Filter <ogc:PropertyIsLike> element.

  • Constructor Details

    • TLcdOGCIsLikeOperator

      public TLcdOGCIsLikeOperator()
      Default constructor.
    • TLcdOGCIsLikeOperator

      public TLcdOGCIsLikeOperator(TLcdOGCPropertyName aPropertyName, TLcdOGCLiteral aPattern, char aWildCard, char aSingleChar, char aEscapeChar)
      Constructs an instance for a given property name, pattern and wildCard, singleChar and escapeChar characters.
      Parameters:
      aPropertyName - the property name
      aPattern - the pattern
      aWildCard - the wildCard character.
      aSingleChar - the singleChar character.
      aEscapeChar - the escapeChar character.
  • Method Details

    • getPropertyName

      public TLcdOGCPropertyName getPropertyName()
      Gets the property name that will be compared.
      Returns:
      the property name.
    • setPropertyName

      public void setPropertyName(TLcdOGCPropertyName aPropertyName)
      Sets the property name that will be compared.
      Parameters:
      aPropertyName - the property name that will be compared.
    • getPattern

      public TLcdOGCLiteral getPattern()
      Gets the pattern of the comparison.
      Returns:
      the pattern of the comparison.
    • setPattern

      public void setPattern(TLcdOGCLiteral aPattern)
      Sets the pattern of the comparison.
      Parameters:
      aPattern - the pattern of the comparison.
    • getWildCard

      public char getWildCard()
      Gets the wildCard character.
      Returns:
      the wildCard character.
    • setWildCard

      public void setWildCard(char aWildCard)
      Sets the character that matches zero or more characters.*
      Parameters:
      aWildCard - the wildCard character.
    • getSingleChar

      public char getSingleChar()
      Gets the singleChar character.
      Returns:
      the singleChar character.
    • setSingleChar

      public void setSingleChar(char aSingleChar)
      Sets the character that matches exactly one character.
      Parameters:
      aSingleChar - the singleChar character.
    • getEscapeChar

      public char getEscapeChar()
      Gets the escapeChar character.
      Returns:
      the escapeChar character.
    • setEscapeChar

      public void setEscapeChar(char aEscapeChar)
      Sets the character that is used to escape the meaning of the wildCard, singleChar and escapeChar itself.
      Parameters:
      aEscapeChar - the escapeChar character.
    • isMatchCase

      public boolean isMatchCase()
      Returns whether or not the match is case-sensitive. This property is only supported by OGC Filter 1.1 and higher.
      Returns:
      true if the match is case-sensitive
      Since:
      2017.0
    • setMatchCase

      public void setMatchCase(boolean aMatchCase)
      Sets whether or not the match is case-sensitive. This property is only supported by OGC Filter 1.1 and higher.
      Parameters:
      aMatchCase - true if the match should be case-sensitive
      Since:
      2017.0
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class TLcdDataObject