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 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description private MetadataExpression_metadata1private MetadataExpression_metadata2private Expression.Operator_operator 
- 
Constructor Summary
Constructors Constructor Description BinaryExpression(String metadata1, boolean unversioned1, Expression.Operator operator, String metadata2, boolean unversioned2)Creates the comparison Expression.BinaryExpression(String metadata1, Expression.Operator operator, String metadata2)Creates the comparison Expression. 
 - 
 
- 
- 
Field Detail
- 
_metadata1
private MetadataExpression _metadata1
 
- 
_metadata2
private MetadataExpression _metadata2
 
- 
_operator
private Expression.Operator _operator
 
 - 
 
- 
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, boolean unversioned1, Expression.Operator operator, String metadata2, boolean unversioned2)
Creates the comparison Expression.- Parameters:
 metadata1- the first metadata name.unversioned1- true if the first metadata is unversioned.operator- the operator to make the comparison.metadata2- the second metadata name.unversioned2- true if the second metadata is unversioned.
 
 - 
 
- 
Method Detail
- 
build
public String build()
Description copied from interface:ExpressionBuild the expression.- Specified by:
 buildin interfaceExpression- Returns:
 - The XPath view of the expression.
 
 
 - 
 
 -