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 GroupingExpression
EMPTY_INSTANCE
protected List<Expression>
nestedExpressions
protected GroupingOperator
operator
-
Constructor Summary
Constructors Constructor Description GroupingExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupingExpression
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.GroupingExpression
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.protected GroupingExpression
copy(GroupingExpression nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.boolean
equals(Object o)
List<Expression>
getNestedExpressions()
The nested expressions which will be joined by the defined logical operator.GroupingOperator
getOperator()
The logical operator which will be used to join all the nested expressions.int
hashCode()
void
setOperator(GroupingOperator value)
Sets the value of the operator property.String
toString()
GroupingExpression
withNestedExpressions(Expression... newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.GroupingExpression
withNestedExpressions(Collection<? extends Expression> newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.GroupingExpression
withOperator(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
set
method 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:
hashCode
in classExpression
-
toString
public String toString()
- Overrides:
toString
in classExpression
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classExpression
-
copy
public GroupingExpression copy()
Deep copies the fields of the this model into a new instance of this class and returns it.- Overrides:
copy
in 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:
copy
in 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.
-
-