public class PropertyPredicate extends AbstractPredicate
Modifier and Type | Class and Description |
---|---|
static class |
PropertyPredicate.RelationalOperation
The enum supports various relational operation to be used by the predicate.
|
Constructor and Description |
---|
PropertyPredicate(java.lang.String name,
PropertyPredicate.RelationalOperation op,
java.lang.String value)
Construct a
PropertyPredicate instance with the given values. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the predicate name.
|
PropertyPredicate.RelationalOperation |
getRelationalOperation()
Get the
PropertyPredicate.RelationalOperation supported by this predicate. |
java.lang.String |
getValue()
Get the predicate value.
|
void |
setName(java.lang.String name)
Set the predicate name.
|
void |
setRelationalOperation(PropertyPredicate.RelationalOperation operation)
Set the
PropertyPredicate.RelationalOperation for this predicate. |
void |
setValue(java.lang.String value)
The value to set for the predicate.
|
java.lang.String |
toStringPredicate()
Convert the Predicate instance to a string consumable by a search filter.
|
equals, hashCode
public PropertyPredicate(java.lang.String name, PropertyPredicate.RelationalOperation op, java.lang.String value)
PropertyPredicate
instance with the given values.name
- The predicate nameop
- The PropertyPredicate.RelationalOperation
operation supported by this predicatevalue
- The predicate valuepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The predicate name to setpublic PropertyPredicate.RelationalOperation getRelationalOperation()
PropertyPredicate.RelationalOperation
supported by this predicate.PropertyPredicate.RelationalOperation
public void setRelationalOperation(PropertyPredicate.RelationalOperation operation)
PropertyPredicate.RelationalOperation
for this predicate.operation
- The PropertyPredicate.RelationalOperation
to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to setpublic java.lang.String toStringPredicate()
AbstractPredicate
toStringPredicate
in class AbstractPredicate