Class DoubleExpression
- java.lang.Object
-
- org.ametys.plugins.repository.query.expression.DoubleExpression
-
- All Implemented Interfaces:
Expression
public class DoubleExpression extends Object implements Expression
Constructs anExpression
corresponding to the double comparison with a metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
-
Constructor Summary
Constructors Constructor Description DoubleExpression(String metadata, Expression.Operator operator, double value)
Creates the comparison Expression.DoubleExpression(String metadata, Expression.Operator operator, double value, ExpressionContext context)
Creates the comparison Expression.
-
-
-
Constructor Detail
-
DoubleExpression
public DoubleExpression(String metadata, Expression.Operator operator, double value)
Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the double value
-
DoubleExpression
public DoubleExpression(String metadata, Expression.Operator operator, double value, ExpressionContext context)
Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the double valuecontext
- the expression context
-
-
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.
-
-