Class StringStartsWithExpression
java.lang.Object
org.ametys.plugins.userdirectory.expression.StringStartsWithExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
corresponding to the starting with comparison with a metadata,
meaning that the Expression
will search metadata starting with the specified value.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
Constructor Summary
ConstructorDescriptionStringStartsWithExpression
(String metadata, String value, boolean caseInsensitive) Creates the comparison Expression.StringStartsWithExpression
(String metadata, String value, boolean caseInsensitive, boolean unversioned) Creates the comparison Expression. -
Method Summary
-
Constructor Details
-
StringStartsWithExpression
Creates the comparison Expression.- Parameters:
metadata
- the metadata name.value
- the String value.caseInsensitive
-true
if the search must be case insensitive.
-
StringStartsWithExpression
public StringStartsWithExpression(String metadata, String value, boolean caseInsensitive, boolean unversioned) 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 Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-