public class BasicFieldValueConstraint extends BasicFieldCompareConstraint implements FieldValueConstraint, Serializable
modifiableEQUAL, GREATER, GREATER_EQUAL, LESS, LESS_EQUAL, LIKE, NOT_EQUAL, OPERATOR_DESCRIPTIONS, REGEXP| Constructor and Description |
|---|
BasicFieldValueConstraint(StepField field,
Object value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object.
|
Object |
getValue()
Gets the value to compare with.
|
int |
hashCode() |
boolean |
matches(Object o)
Determines whether a certain given value would match this constraint.
|
BasicFieldValueConstraint |
setValue(Object value)
Sets value property.
|
String |
toString()
Returns a string representation of this FieldValueConstraint.
|
getOperator, getOperatorDescription, setOperatorgetField, getFieldName, isCaseSensitive, setCaseSensitivegetBasicSupportLevel, isInverse, setInverse, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOperatorgetField, isCaseSensitivegetBasicSupportLevel, isInverse, setUnmodifiablepublic BasicFieldValueConstraint(StepField field, Object value)
String or Number.field - The associated field.value - The non-null property value.IllegalArgumentException - when an invalid argument is supplied.public BasicFieldValueConstraint setValue(Object value)
String or Number.value - The non-null property value.BasicFieldValueConstraint instance.IllegalArgumentException - when an invalid argument is supplied.public Object getValue()
FieldValueConstraintString or Number.
If the associated field type is of string type, when used in
combination with the operator LIKE, this may contain the
following wildcard characters as well:
getValue in interface FieldValueConstraintpublic boolean matches(Object o)
FieldConstraintmatches in interface FieldConstraintmatches in class BasicFieldConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).equals in interface Constraintequals in class BasicFieldCompareConstraintobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicFieldCompareConstraintpublic String toString()
FieldValueConstraintisInverse()
FieldConstraint#getField().getAlias(), or
FieldConstraint#getField().getFieldName()
when the former is null.
isCaseSensitive()
getValue()
toString in interface FieldValueConstrainttoString in class BasicFieldCompareConstraintMMBase 1.9-SNAPSHOT - ${javadoctimestamp}