Class StringWildcardExpression
- java.lang.Object
-
- org.ametys.plugins.repository.query.expression.StringWildcardExpression
-
- All Implemented Interfaces:
Expression
@Deprecated public class StringWildcardExpression extends Object implements Expression
Deprecated.useStringExpression
instead.Constructs anExpression
corresponding to the wildcard comparison with a metadata, meaning that theExpression
will search metadata containing the specified value.
-
-
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
_caseInsensitive
Deprecated.private MetadataExpression
_metadata
Deprecated.private String
_value
Deprecated.
-
Constructor Summary
Constructors Constructor Description StringWildcardExpression(String metadata, String value, boolean caseInsensitive)
Deprecated.Creates the comparison Expression.StringWildcardExpression(String metadata, String value, boolean caseInsensitive, boolean unversioned)
Deprecated.Creates the comparison Expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private String
_escapeValue(String value)
Deprecated.String
build()
Deprecated.Build the expression.
-
-
-
Field Detail
-
_metadata
private MetadataExpression _metadata
Deprecated.
-
_caseInsensitive
private boolean _caseInsensitive
Deprecated.
-
-
Constructor Detail
-
StringWildcardExpression
public StringWildcardExpression(String metadata, String value, boolean caseInsensitive)
Deprecated.Creates the comparison Expression.- Parameters:
metadata
- the metadata name.value
- the String value.caseInsensitive
-true
if the search must be case insensitive.
-
StringWildcardExpression
public StringWildcardExpression(String metadata, String value, boolean caseInsensitive, boolean unversioned)
Deprecated.Creates the comparison Expression.- Parameters:
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.
-
-
Method Detail
-
build
public String build()
Deprecated.Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-
_escapeValue
private String _escapeValue(String value)
Deprecated.
-
-