Package org.ametys.cms.repository
Class LanguageExpression
- java.lang.Object
-
- org.ametys.cms.repository.LanguageExpression
-
- All Implemented Interfaces:
Expression
public class LanguageExpression extends Object implements Expression
Constructs anExpression
corresponding to a language comparison.
-
-
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 Expression.Operator
_operator
private String[]
_values
-
Constructor Summary
Constructors Constructor Description LanguageExpression(Expression.Operator operator, String value)
Creates the expression.LanguageExpression(Expression.Operator operator, String[] values)
Creates the expression.
-
-
-
Field Detail
-
_operator
private Expression.Operator _operator
-
-
Constructor Detail
-
LanguageExpression
public LanguageExpression(Expression.Operator operator, String value)
Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)value
- the tag value
-
LanguageExpression
public LanguageExpression(Expression.Operator operator, String[] values)
Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)values
- the tags value in a array
-
-
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.
-
-