Class DateExpression
java.lang.Object
org.ametys.plugins.repository.query.expression.DateExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
corresponding to the Date 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
ConstructorsConstructorDescriptionDateExpression
(String metadata, Expression.Operator operator, LocalDate value) Creates the comparison ExpressionDateExpression
(String metadata, Expression.Operator operator, LocalDate value, ExpressionContext context) Creates the comparison ExpressionDateExpression
(String metadata, Expression.Operator operator, ZonedDateTime value) Creates the comparison ExpressionDateExpression
(String metadata, Expression.Operator operator, ZonedDateTime value, ExpressionContext context) Creates the comparison ExpressionDateExpression
(String metadata, Expression.Operator operator, Date value) Creates the comparison Expression.DateExpression
(String metadata, Expression.Operator operator, Date value, ExpressionContext context) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
DateExpression
Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the Date value
-
DateExpression
public DateExpression(String metadata, Expression.Operator operator, Date value, ExpressionContext context) Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the Date valuecontext
- the expression context
-
DateExpression
Creates the comparison Expression- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the LocalDate value
-
DateExpression
public DateExpression(String metadata, Expression.Operator operator, LocalDate value, ExpressionContext context) Creates the comparison Expression- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the LocalDate valuecontext
- the expression context
-
DateExpression
Creates the comparison Expression- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the ZonedDateTime value
-
DateExpression
public DateExpression(String metadata, Expression.Operator operator, ZonedDateTime value, ExpressionContext context) Creates the comparison Expression- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the ZonedDateTime 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.
-