Package org.ametys.cms.alerts
Class AlertSchedulable.BinaryExpression
java.lang.Object
org.ametys.cms.alerts.AlertSchedulable.BinaryExpression
- All Implemented Interfaces:
Expression
- Enclosing class:
- AlertSchedulable
Binary date expression: test on two metadatas.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
Constructor Summary
ConstructorDescriptionBinaryExpression
(String metadata1, Expression.Operator operator, String metadata2) Creates the comparison Expression.BinaryExpression
(String metadata1, ExpressionContext context1, Expression.Operator operator, String metadata2, ExpressionContext context2) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
BinaryExpression
Creates the comparison Expression.- Parameters:
metadata1
- the first metadata name.operator
- the operator to make the comparisonmetadata2
- the second metadata name.
-
BinaryExpression
public BinaryExpression(String metadata1, ExpressionContext context1, Expression.Operator operator, String metadata2, ExpressionContext context2) Creates the comparison Expression.- Parameters:
metadata1
- the first metadata name.context1
- context of the expression for the first metadataoperator
- the operator to make the comparison.metadata2
- the second metadata name.context2
- context of the expression for the second metadata
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-