public class QuerySimpleBuilder extends Object
SimpleExpression
using a simple "builder" style, for use with
QueryFilterBuilder
.Constructor and Description |
---|
QuerySimpleBuilder(String operator)
Constructs a QuerySimpleBuilder with the given initial operator.
|
QuerySimpleBuilder(String property,
String operator)
Constructs a QuerySimpleBuilder with the given initial property and operator.
|
QuerySimpleBuilder(String property,
String operator,
Object... args)
Constructs a QuerySimpleBuilder with the given initial property, operator, and arguments.
|
Modifier and Type | Method and Description |
---|---|
QuerySimpleBuilder |
addArguments(Object... args)
Adds some arguments to the expression.
|
QuerySimpleBuilder |
setOperator(String operator)
Sets the operator for the expression.
|
QuerySimpleBuilder |
setProperty(String property)
Sets the property name for the expression.
|
SimpleExpression |
toExpression()
Returns the current state of this builder as a SimpleExpression.
|
public QuerySimpleBuilder(String operator)
operator
- the initial operatorpublic QuerySimpleBuilder(String property, String operator)
property
- the initial property nameoperator
- the initial operatorpublic QuerySimpleBuilder(String property, String operator, Object... args)
property
- the initial property nameoperator
- the initial operatorargs
- the initial arguments, see addArguments(java.lang.Object...)
public QuerySimpleBuilder setProperty(String property)
public QuerySimpleBuilder setOperator(String operator)
public QuerySimpleBuilder addArguments(Object... args)
String.valueOf(java.lang.Object)
.public SimpleExpression toExpression()