Package com.boomi.connector.api
Class GroupingExpression
- java.lang.Object
-
- com.boomi.connector.api.Expression
-
- com.boomi.connector.api.GroupingExpression
-
- All Implemented Interfaces:
Serializable
public class GroupingExpression extends Expression implements Serializable
Expression type which represents a grouping of other nested expressions joined by the given operator.Example:
((<nestedExpr>) <operator> (<nestedExpr>) [<operator> (<nestedExpr>) ...])Java class for GroupingExpression complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="GroupingExpression"> <complexContent> <extension base="{}Expression"> <sequence> <element name="nestedExpression" type="{}Expression" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="operator" use="required" type="{}GroupingOperator" /> </extension> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static GroupingExpressionEMPTY_INSTANCEprotected List<Expression>nestedExpressionsprotected GroupingOperatoroperator
-
Constructor Summary
Constructors Constructor Description GroupingExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupingExpressioncopy()Deep copies the fields of the this model into a new instance of this class and returns it.GroupingExpressioncopy(boolean isDeep)Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.protected GroupingExpressioncopy(GroupingExpression nobj, boolean isDeep)Copies the fields of the this model (optionally deeply) into the given instance and returns it.booleanequals(Object o)List<Expression>getNestedExpressions()The nested expressions which will be joined by the defined logical operator.GroupingOperatorgetOperator()The logical operator which will be used to join all the nested expressions.inthashCode()voidsetOperator(GroupingOperator value)Sets the value of the operator property.StringtoString()GroupingExpressionwithNestedExpressions(Expression... newValues)Adds the given newValues to the current nestedExpressions property List and returns this instance.GroupingExpressionwithNestedExpressions(Collection<? extends Expression> newValues)Adds the given newValues to the current nestedExpressions property List and returns this instance.GroupingExpressionwithOperator(GroupingOperator newValue)Sets the operator property to the given newValue and returns this instance.-
Methods inherited from class com.boomi.connector.api.Expression
copy
-
-
-
-
Field Detail
-
nestedExpressions
protected List<Expression> nestedExpressions
-
operator
protected GroupingOperator operator
-
EMPTY_INSTANCE
public static final GroupingExpression EMPTY_INSTANCE
-
-
Method Detail
-
getNestedExpressions
public List<Expression> getNestedExpressions()
The nested expressions which will be joined by the defined logical operator.Gets the value of the nestedExpressions property.
This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the nestedExpressions property.For example, to add a new item, do as follows:
getNestedExpressions().add(newItem);Objects of the following type(s) are allowed in the list
Expression
-
getOperator
public GroupingOperator getOperator()
The logical operator which will be used to join all the nested expressions.- Returns:
- possible object is
GroupingOperator
-
setOperator
public void setOperator(GroupingOperator value)
Sets the value of the operator property.- Parameters:
value- allowed object isGroupingOperator
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
toString
public String toString()
- Overrides:
toStringin classExpression
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classExpression
-
copy
public GroupingExpression copy()
Deep copies the fields of the this model into a new instance of this class and returns it.- Overrides:
copyin classExpression
-
copy
public GroupingExpression copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.- Specified by:
copyin classExpression
-
copy
protected GroupingExpression copy(GroupingExpression nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
-
withNestedExpressions
public GroupingExpression withNestedExpressions(Expression... newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.
-
withNestedExpressions
public GroupingExpression withNestedExpressions(Collection<? extends Expression> newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.
-
withOperator
public GroupingExpression withOperator(GroupingOperator newValue)
Sets the operator property to the given newValue and returns this instance.
-
-