public class TLcdOGCIsLikeOperator extends TLcdDataObject implements ILcdOGCCondition
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.case-sensitive
.
This class represents the OGC Filter <ogc:PropertyIsLike>
element.Constructor and Description |
---|
TLcdOGCIsLikeOperator()
Default constructor.
|
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. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
char |
getEscapeChar()
Gets the
escapeChar character. |
TLcdOGCLiteral |
getPattern()
Gets the pattern of the comparison.
|
TLcdOGCPropertyName |
getPropertyName()
Gets the property name that will be compared.
|
char |
getSingleChar()
Gets the
singleChar character. |
char |
getWildCard()
Gets the
wildCard character. |
int |
hashCode() |
boolean |
isMatchCase()
Returns whether or not the match is case-sensitive.
|
void |
setEscapeChar(char aEscapeChar)
Sets the character that is used to escape the meaning of the
wildCard , singleChar and escapeChar 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.*
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdOGCIsLikeOperator()
public TLcdOGCIsLikeOperator(TLcdOGCPropertyName aPropertyName, TLcdOGCLiteral aPattern, char aWildCard, char aSingleChar, char aEscapeChar)
wildCard
, singleChar
and
escapeChar
characters.aPropertyName
- the property nameaPattern
- the patternaWildCard
- the wildCard
character.aSingleChar
- the singleChar
character.aEscapeChar
- the escapeChar
character.public TLcdOGCPropertyName getPropertyName()
public void setPropertyName(TLcdOGCPropertyName aPropertyName)
aPropertyName
- the property name that will be compared.public TLcdOGCLiteral getPattern()
public void setPattern(TLcdOGCLiteral aPattern)
aPattern
- the pattern of the comparison.public char getWildCard()
wildCard
character.wildCard
character.public void setWildCard(char aWildCard)
aWildCard
- the wildCard
character.public char getSingleChar()
singleChar
character.singleChar
character.public void setSingleChar(char aSingleChar)
aSingleChar
- the singleChar
character.public char getEscapeChar()
escapeChar
character.escapeChar
character.public void setEscapeChar(char aEscapeChar)
wildCard
, singleChar
and escapeChar
itself.aEscapeChar
- the escapeChar
character.public boolean isMatchCase()
public void setMatchCase(boolean aMatchCase)
aMatchCase
- true if the match should be case-sensitivepublic String toString()
toString
in class TLcdDataObject