public class StringStartsWithExpression extends Object implements Expression
Expression corresponding to the starting with comparison with a metadata,
meaning that the Expression will search metadata starting with the specified value.Expression.Operator| Modifier and Type | Field and Description |
|---|---|
private boolean |
_caseInsensitive |
private MetadataExpression |
_metadata |
private String |
_value |
| Constructor and Description |
|---|
StringStartsWithExpression(String metadata,
String value,
boolean caseInsensitive)
Creates the comparison Expression.
|
StringStartsWithExpression(String metadata,
String value,
boolean caseInsensitive,
boolean unversioned)
Creates the comparison Expression.
|
| Modifier and Type | Method and Description |
|---|---|
private String |
_escapeValue(String value) |
String |
build()
Build the expression.
|
private MetadataExpression _metadata
private boolean _caseInsensitive
public StringStartsWithExpression(String metadata, String value, boolean caseInsensitive)
metadata - the metadata name.value - the String value.caseInsensitive - true if the search must be case insensitive.public StringStartsWithExpression(String metadata, String value, boolean caseInsensitive, boolean unversioned)
metadata - the metadata name.value - the String value.caseInsensitive - true if the search must be case insensitive.unversioned - true if the metadata is unversioned, false otherwise.public String build()
Expressionbuild in interface Expressionprivate String _escapeValue(String value)