Package com.boomi.connector.testutil
Class QuerySimpleBuilder
- java.lang.Object
-
- com.boomi.connector.testutil.QuerySimpleBuilder
-
public class QuerySimpleBuilder extends Object
Utility class for constructing aSimpleExpression
using a simple "builder" style, for use withQueryFilterBuilder
.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
QuerySimpleBuilder
public QuerySimpleBuilder(String operator)
Constructs a QuerySimpleBuilder with the given initial operator.- Parameters:
operator
- the initial operator
-
QuerySimpleBuilder
public QuerySimpleBuilder(String property, String operator)
Constructs a QuerySimpleBuilder with the given initial property and operator.- Parameters:
property
- the initial property nameoperator
- the initial operator
-
QuerySimpleBuilder
public QuerySimpleBuilder(String property, String operator, Object... args)
Constructs a QuerySimpleBuilder with the given initial property, operator, and arguments.- Parameters:
property
- the initial property nameoperator
- the initial operatorargs
- the initial arguments, seeaddArguments(java.lang.Object...)
-
-
Method Detail
-
setProperty
public QuerySimpleBuilder setProperty(String property)
Sets the property name for the expression.
-
setOperator
public QuerySimpleBuilder setOperator(String operator)
Sets the operator for the expression.
-
addArguments
public QuerySimpleBuilder addArguments(Object... args)
Adds some arguments to the expression. The given objects are converted to String instances usingString.valueOf(java.lang.Object)
.
-
toExpression
public SimpleExpression toExpression()
Returns the current state of this builder as a SimpleExpression.
-
-