Package com.appiancorp.common.query
Class LogicalExpression<T>
java.lang.Object
com.appiancorp.common.query.LogicalExpression<T>
- Type Parameters:
T- Type of value
- All Implemented Interfaces:
Criteria
- Direct Known Subclasses:
GenericLogicalExpression,TypedValueLogicalExpression
This class represents a logical expression combining multiple filters
in a query.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitializes a newly createdLogicalExpressionprotectedLogicalExpression(LogicalOperator operator, Criteria... conditions) Constructs a newLogicalExpressionprotectedLogicalExpression(LogicalOperator operator, List<? extends Criteria> conditions) Constructs a newLogicalExpression -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the list of conditionsReturns the type of logical operation define by theLogicalOperatorenuminthashCode()protected abstract voidsetConditions(List<Criteria> conditions) Sets the list of conditionstoString()
-
Field Details
-
XML_ROOT_ELEMENT
- See Also:
-
LOCAL_PART
- See Also:
-
QNAME
-
-
Constructor Details
-
LogicalExpression
protected LogicalExpression()Initializes a newly createdLogicalExpression -
LogicalExpression
Constructs a newLogicalExpression- Parameters:
operator- a logical operation type define byLogicalOperatorenumconditions- an array of conditions
-
LogicalExpression
Constructs a newLogicalExpression- Parameters:
operator- a logical operation type define byLogicalOperatorenumconditions- a list of conditions
-
-
Method Details
-
getOperator
Returns the type of logical operation define by theLogicalOperatorenum- Returns:
- the
LogicalOperator
-
getConditions
Returns the list of conditions- Returns:
- the list of conditions
-
setConditions
Sets the list of conditions- Parameters:
conditions- a list of conditions
-
toString
-
hashCode
public int hashCode() -
equals
-