Class BooleanExpression
java.lang.Object
org.ametys.plugins.repository.query.expression.BooleanExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
corresponding to the boolean comparison with a metadata.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.LogicalOperator, Expression.Operator
-
Constructor Summary
ConstructorDescriptionBooleanExpression
(String metadata, boolean value) Creates the comparison Expression.BooleanExpression
(String metadata, boolean value, ExpressionContext context) Creates the comparison Expression.BooleanExpression
(String metadata, Expression.Operator operator, boolean value) Creates the comparison Expression.BooleanExpression
(String metadata, Expression.Operator operator, boolean value, ExpressionContext context) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
BooleanExpression
Creates the comparison Expression.- Parameters:
metadata
- the metadata namevalue
- the boolean value
-
BooleanExpression
Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the boolean value
-
BooleanExpression
Creates the comparison Expression.- Parameters:
metadata
- the metadata namevalue
- the boolean valuecontext
- the expression context
-
BooleanExpression
public BooleanExpression(String metadata, Expression.Operator operator, boolean value, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the boolean valuecontext
- the expression context
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-