Package org.xwiki.livedata
Class LiveDataQuery.Constraint
- java.lang.Object
-
- org.xwiki.livedata.LiveDataQuery.Constraint
-
- Enclosing class:
- LiveDataQuery
public static class LiveDataQuery.Constraint extends Object
A constraint to apply to a property value.
-
-
Constructor Summary
Constructors Constructor Description Constraint()
Default constructor.Constraint(Object value)
Creates a new constraint that uses the given value and the default operator.Constraint(Object value, String operator)
Creates a new constraint that uses the given value and operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOperator()
Object
getValue()
void
setOperator(String operator)
Sets the operator to use between the property value and the value from this constraint.void
setValue(Object value)
Sets the target value that is compared with the property value using the specified operator.
-
-
-
Constructor Detail
-
Constraint
public Constraint()
Default constructor.
-
Constraint
public Constraint(Object value)
Creates a new constraint that uses the given value and the default operator.- Parameters:
value
- the value to match
-
-
Method Detail
-
getOperator
public String getOperator()
- Returns:
- the operator to use between the property value and the value from this constraint
-
setOperator
public void setOperator(String operator)
Sets the operator to use between the property value and the value from this constraint.- Parameters:
operator
- the new operator
-
getValue
public Object getValue()
- Returns:
- the target value that is compared with the property value using the specified operator
-
setValue
public void setValue(Object value)
Sets the target value that is compared with the property value using the specified operator.- Parameters:
value
- the new constraint value
-
-