Class MultilingualStringExpression
java.lang.Object
org.ametys.plugins.repository.query.expression.MultilingualStringExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
corresponding to the String comparison with a metadata of type MULTILANGUAL.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
Constructor Summary
ConstructorDescriptionMultilingualStringExpression
(String metadata, Expression.Operator operator, String value, String lang) Creates the comparison Expression.MultilingualStringExpression
(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned) Creates the comparison Expression.MultilingualStringExpression
(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned, boolean caseInsensitive) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
MultilingualStringExpression
public MultilingualStringExpression(String metadata, Expression.Operator operator, String value, String lang) Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the String valuelang
- the language code
-
MultilingualStringExpression
public MultilingualStringExpression(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned) Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the String valuelang
- the language codeunversioned
- true if the metadata is unversioned, false otherwise.
-
MultilingualStringExpression
public MultilingualStringExpression(String metadata, Expression.Operator operator, String value, String lang, boolean unversioned, boolean caseInsensitive) Creates the comparison Expression.- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonvalue
- the String valuelang
- the language codeunversioned
- true if the metadata is unversioned, false otherwise.caseInsensitive
-true
if the search must be case insensitive.
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-