Package org.ametys.cms.alerts
Class AlertEngine.BinaryExpression
- java.lang.Object
-
- org.ametys.cms.alerts.AlertEngine.BinaryExpression
-
- All Implemented Interfaces:
Expression
- Enclosing class:
- AlertEngine
protected class AlertEngine.BinaryExpression extends Object implements Expression
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
Constructors Constructor Description BinaryExpression(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.
-
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(String metadata1, Expression.Operator operator, String metadata2)
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 Detail
-
build
public String build()
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-
-