public class StringOperator extends java.lang.Object implements IRestriction
| Constructor and Description |
|---|
StringOperator(java.lang.String text)
Instantiates a new string operator.
|
StringOperator(java.lang.String text,
StringOperatorMode mode)
Instantiates a new string operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableLinguistics(boolean enableLinguistics)
Enable linguistics.
|
void |
enableWildcard(boolean enableWildcard)
Enable wildcard.
|
int |
getMaximumDistance()
Gets the maximum distance.
|
StringOperatorMode |
getMode()
Gets the mode.
|
int |
getWeight()
Gets the weight.
|
boolean |
isLinguisticsEnabled()
Checks if is linguistics enabled.
|
boolean |
isWildcardEnabled()
Checks if is wildcard enabled.
|
void |
setMaximumDistance(int maximumDistance)
Sets the maximum distance.
|
void |
setMode(StringOperatorMode mode)
Sets the mode.
|
void |
setWeight(int weight)
Sets the weight.
|
java.lang.String |
toString() |
public StringOperator(java.lang.String text)
text - the textpublic StringOperator(java.lang.String text,
StringOperatorMode mode)
text - the textmode - the modepublic void enableLinguistics(boolean enableLinguistics)
enableLinguistics - the enable linguisticspublic void enableWildcard(boolean enableWildcard)
enableWildcard - the enable wildcardpublic int getMaximumDistance()
public StringOperatorMode getMode()
public int getWeight()
public boolean isLinguisticsEnabled()
public boolean isWildcardEnabled()
public void setMaximumDistance(int maximumDistance)
maximumDistance - the new maximum distancepublic void setMode(StringOperatorMode mode)
mode - the new modepublic void setWeight(int weight)
weight - the new weightpublic java.lang.String toString()
toString in class java.lang.Object