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
ConstructorDescriptionDefault constructor.TLcdOGCIsLikeOperator
(TLcdOGCPropertyName aPropertyName, TLcdOGCLiteral aPattern, char aWildCard, char aSingleChar, char aEscapeChar) Constructs an instance for a given property name, pattern andwildCard
,singleChar
andescapeChar
characters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
char
Gets theescapeChar
character.Gets the pattern of the comparison.Gets the property name that will be compared.char
Gets thesingleChar
character.char
Gets thewildCard
character.int
hashCode()
boolean
Returns whether or not the match is case-sensitive.void
setEscapeChar
(char aEscapeChar) Sets the character that is used to escape the meaning of thewildCard
,singleChar
andescapeChar
itself.void
setMatchCase
(boolean aMatchCase) Sets whether or not the match is case-sensitive.void
setPattern
(TLcdOGCLiteral aPattern) Sets the pattern of the comparison.void
setPropertyName
(TLcdOGCPropertyName aPropertyName) Sets the property name that will be compared.void
setSingleChar
(char aSingleChar) Sets the character that matches exactly one character.void
setWildCard
(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
,singleChar
andescapeChar
characters.- Parameters:
aPropertyName
- the property nameaPattern
- the patternaWildCard
- thewildCard
character.aSingleChar
- thesingleChar
character.aEscapeChar
- theescapeChar
character.
-
-
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 thewildCard
character.- Returns:
- the
wildCard
character.
-
setWildCard
public void setWildCard(char aWildCard) Sets the character that matches zero or more characters.*- Parameters:
aWildCard
- thewildCard
character.
-
getSingleChar
public char getSingleChar()Gets thesingleChar
character.- Returns:
- the
singleChar
character.
-
setSingleChar
public void setSingleChar(char aSingleChar) Sets the character that matches exactly one character.- Parameters:
aSingleChar
- thesingleChar
character.
-
getEscapeChar
public char getEscapeChar()Gets theescapeChar
character.- Returns:
- the
escapeChar
character.
-
setEscapeChar
public void setEscapeChar(char aEscapeChar) Sets the character that is used to escape the meaning of thewildCard
,singleChar
andescapeChar
itself.- Parameters:
aEscapeChar
- theescapeChar
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
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classTLcdDataObject
-