Package org.ametys.web.tags
Class TagExpression
java.lang.Object
org.ametys.web.tags.TagExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
corresponding to a tag comparison.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The logical operator to use in xpath queryNested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
Constructor Summary
ConstructorDescriptionTagExpression
(Expression.Operator operator, String value) Creates the expression.TagExpression
(Expression.Operator operator, String[] values, TagExpression.LogicalOperator logicalOperator) Creates the expression.TagExpression
(Expression.Operator operator, String[] values, TagExpression.LogicalOperator logicalOperator, String metadataName) Creates the expression.TagExpression
(Expression.Operator operator, String value, String metadataName) Creates the expression. -
Method Summary
-
Constructor Details
-
TagExpression
Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)value
- the tag value
-
TagExpression
Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)value
- the tag valuemetadataName
- the metadata holding the tags
-
TagExpression
public TagExpression(Expression.Operator operator, String[] values, TagExpression.LogicalOperator logicalOperator) Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)values
- the tags value in a arraylogicalOperator
- the logical operator to use for given value
-
TagExpression
public TagExpression(Expression.Operator operator, String[] values, TagExpression.LogicalOperator logicalOperator, String metadataName) Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)values
- the tags value in a arraylogicalOperator
- the logical operator to use for given valuemetadataName
- the metadata holding the tags
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-