public class StringCondition
extends java.lang.Object
implements java.io.Serializable
A leaf node condition which can be used to specify a string condition.
| Constructor and Description |
|---|
StringCondition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComparisonType()
The type of comparison to be made when evaluating the string condition.
|
java.lang.String |
getFieldName()
The name of the field in the string condition.
|
java.lang.String |
getValue()
The value of the string.
|
int |
hashCode() |
void |
setComparisonType(java.lang.String comparisonType)
The type of comparison to be made when evaluating the string condition.
|
void |
setComparisonType(StringComparisonType comparisonType)
The type of comparison to be made when evaluating the string condition.
|
void |
setFieldName(java.lang.String fieldName)
The name of the field in the string condition.
|
void |
setValue(java.lang.String value)
The value of the string.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StringCondition |
withComparisonType(java.lang.String comparisonType)
The type of comparison to be made when evaluating the string condition.
|
StringCondition |
withComparisonType(StringComparisonType comparisonType)
The type of comparison to be made when evaluating the string condition.
|
StringCondition |
withFieldName(java.lang.String fieldName)
The name of the field in the string condition.
|
StringCondition |
withValue(java.lang.String value)
The value of the string.
|
public java.lang.String getFieldName()
The name of the field in the string condition.
The name of the field in the string condition.
public void setFieldName(java.lang.String fieldName)
The name of the field in the string condition.
fieldName - The name of the field in the string condition.
public StringCondition withFieldName(java.lang.String fieldName)
The name of the field in the string condition.
Returns a reference to this object so that method calls can be chained together.
fieldName - The name of the field in the string condition.
public java.lang.String getValue()
The value of the string.
The value of the string.
public void setValue(java.lang.String value)
The value of the string.
value - The value of the string.
public StringCondition withValue(java.lang.String value)
The value of the string.
Returns a reference to this object so that method calls can be chained together.
value - The value of the string.
public java.lang.String getComparisonType()
The type of comparison to be made when evaluating the string condition.
Constraints:
Allowed Values: STARTS_WITH, CONTAINS, EXACT
The type of comparison to be made when evaluating the string condition.
StringComparisonTypepublic void setComparisonType(java.lang.String comparisonType)
The type of comparison to be made when evaluating the string condition.
Constraints:
Allowed Values: STARTS_WITH, CONTAINS, EXACT
comparisonType - The type of comparison to be made when evaluating the string condition.
StringComparisonTypepublic StringCondition withComparisonType(java.lang.String comparisonType)
The type of comparison to be made when evaluating the string condition.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STARTS_WITH, CONTAINS, EXACT
comparisonType - The type of comparison to be made when evaluating the string condition.
StringComparisonTypepublic void setComparisonType(StringComparisonType comparisonType)
The type of comparison to be made when evaluating the string condition.
Constraints:
Allowed Values: STARTS_WITH, CONTAINS, EXACT
comparisonType - The type of comparison to be made when evaluating the string condition.
StringComparisonTypepublic StringCondition withComparisonType(StringComparisonType comparisonType)
The type of comparison to be made when evaluating the string condition.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STARTS_WITH, CONTAINS, EXACT
comparisonType - The type of comparison to be made when evaluating the string condition.
StringComparisonTypepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object