Package com.luciad.ogc.filter.model
Class TLcdOGCIsLikeOperator
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCIsLikeOperator
- All Implemented Interfaces:
ILcdDataObject,ILcdGenericExpression,ILcdOGCCondition,ILcdCloneable,ILcdDeepCloneable,Cloneable
A character string comparison operator with pattern matching.
A
By default the match is
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 Summary
ConstructorsConstructorDescriptionDefault constructor.TLcdOGCIsLikeOperator(TLcdOGCPropertyName aPropertyName, TLcdOGCLiteral aPattern, char aWildCard, char aSingleChar, char aEscapeChar) Constructs an instance for a given property name, pattern andwildCard,singleCharandescapeCharcharacters. -
Method Summary
Modifier and TypeMethodDescriptionbooleancharGets theescapeCharcharacter.Gets the pattern of the comparison.Gets the property name that will be compared.charGets thesingleCharcharacter.charGets thewildCardcharacter.inthashCode()booleanReturns whether or not the match is case-sensitive.voidsetEscapeChar(char aEscapeChar) Sets the character that is used to escape the meaning of thewildCard,singleCharandescapeCharitself.voidsetMatchCase(boolean aMatchCase) Sets whether or not the match is case-sensitive.voidsetPattern(TLcdOGCLiteral aPattern) Sets the pattern of the comparison.voidsetPropertyName(TLcdOGCPropertyName aPropertyName) Sets the property name that will be compared.voidsetSingleChar(char aSingleChar) Sets the character that matches exactly one character.voidsetWildCard(char aWildCard) Sets the character that matches zero or more characters.*toString()Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
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 andwildCard,singleCharandescapeCharcharacters.- Parameters:
aPropertyName- the property nameaPattern- the patternaWildCard- thewildCardcharacter.aSingleChar- thesingleCharcharacter.aEscapeChar- theescapeCharcharacter.
-
-
Method Details
-
getPropertyName
Gets the property name that will be compared.- Returns:
- the property name.
-
setPropertyName
Sets the property name that will be compared.- Parameters:
aPropertyName- the property name that will be compared.
-
getPattern
Gets the pattern of the comparison.- Returns:
- the pattern of the comparison.
-
setPattern
Sets the pattern of the comparison.- Parameters:
aPattern- the pattern of the comparison.
-
getWildCard
public char getWildCard()Gets thewildCardcharacter.- Returns:
- the
wildCardcharacter.
-
setWildCard
public void setWildCard(char aWildCard) Sets the character that matches zero or more characters.*- Parameters:
aWildCard- thewildCardcharacter.
-
getSingleChar
public char getSingleChar()Gets thesingleCharcharacter.- Returns:
- the
singleCharcharacter.
-
setSingleChar
public void setSingleChar(char aSingleChar) Sets the character that matches exactly one character.- Parameters:
aSingleChar- thesingleCharcharacter.
-
getEscapeChar
public char getEscapeChar()Gets theescapeCharcharacter.- Returns:
- the
escapeCharcharacter.
-
setEscapeChar
public void setEscapeChar(char aEscapeChar) Sets the character that is used to escape the meaning of thewildCard,singleCharandescapeCharitself.- Parameters:
aEscapeChar- theescapeCharcharacter.
-
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
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classTLcdDataObject
-