public class StringExpression extends Object implements Expression
Expression corresponding to the String comparison with a metadata.Expression.Operator| Modifier and Type | Field and Description | 
|---|---|
private boolean | 
_caseInsensitive  | 
private MetadataExpression | 
_metadata  | 
private Expression.Operator | 
_operator  | 
private String | 
_value  | 
| Constructor and Description | 
|---|
StringExpression(String metadata,
                Expression.Operator operator,
                String value)
Creates the comparison Expression. 
 | 
StringExpression(String metadata,
                Expression.Operator operator,
                String value,
                boolean unversioned)
Creates the comparison Expression. 
 | 
StringExpression(String metadata,
                Expression.Operator operator,
                String value,
                boolean unversioned,
                boolean caseInsensitive)
Creates the comparison Expression. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private String | 
_escapeValue(String value)  | 
String | 
build()
Build the expression. 
 | 
private MetadataExpression _metadata
private Expression.Operator _operator
private boolean _caseInsensitive
public StringExpression(String metadata, Expression.Operator operator, String value)
metadata - the metadata nameoperator - the operator to make the comparisonvalue - the String valuepublic StringExpression(String metadata, Expression.Operator operator, String value, boolean unversioned)
metadata - the metadata nameoperator - the operator to make the comparisonvalue - the String valueunversioned - true if the metadata is unversioned, false otherwise.public StringExpression(String metadata, Expression.Operator operator, String value, boolean unversioned, boolean caseInsensitive)
metadata - the metadata nameoperator - the operator to make the comparisonvalue - the String valueunversioned - true if the metadata is unversioned, false otherwise.caseInsensitive - true if the search must be case insensitive.public String build()
Expressionbuild in interface Expressionprivate String _escapeValue(String value)