Class MultilingualStringExpression
- java.lang.Object
 - 
- org.ametys.plugins.repository.query.expression.MultilingualStringExpression
 
 
- 
- All Implemented Interfaces:
 Expression
public class MultilingualStringExpression extends Object implements Expression
Constructs anExpressioncorresponding 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 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description private boolean_caseInsensitiveprivate String_langprivate MetadataExpression_metadataprivate Expression.Operator_operatorprivate String_value 
- 
Constructor Summary
Constructors Constructor Description MultilingualStringExpression(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String_escapeValue(String value)private String_multilingualPath()Stringbuild()Build the expression. 
 - 
 
- 
- 
Field Detail
- 
_metadata
private MetadataExpression _metadata
 
- 
_operator
private Expression.Operator _operator
 
- 
_caseInsensitive
private boolean _caseInsensitive
 
 - 
 
- 
Constructor Detail
- 
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-trueif the search must be case insensitive.
 
 - 
 
- 
Method Detail
- 
build
public String build()
Description copied from interface:ExpressionBuild the expression.- Specified by:
 buildin interfaceExpression- Returns:
 - The XPath view of the expression.
 
 
- 
_escapeValue
private String _escapeValue(String value)
 
- 
_multilingualPath
private String _multilingualPath()
 
 - 
 
 -