Class ExpressionContext
java.lang.Object
org.ametys.plugins.repository.query.expression.ExpressionContext
Object that gives some context for expressions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the expression is not case sensitivebooleaninternal()Determines if the data under the expression is internalstatic ExpressionContextCreates a new instance of aExpressionContextbooleanDetermines if the data under the expression is internalwithCaseInsensitive(boolean caseInsensitive) Set totrueto create a case insensitive expression (default tofalse)withInternal(boolean internal) Set totrueto create an expression for internal data (default tofalse)withUnversioned(boolean unversioned) Set totrueto create an expression for unversioned data (default tofalse)
-
Constructor Details
-
ExpressionContext
protected ExpressionContext()Creates a new instance of aExpressionContext
-
-
Method Details
-
newInstance
Creates a new instance of aExpressionContext- Returns:
- the created instance
-
unversioned
Determines if the data under the expression is internal- Returns:
trueif the data is internal,falseotherwise
-
withUnversioned
Set totrueto create an expression for unversioned data (default tofalse)- Parameters:
unversioned-trueto create an expression for unversioned data,falseotherwise- Returns:
- the current
ExpressionContext
-
internal
Determines if the data under the expression is internal- Returns:
trueif the data is internal,falseotherwise
-
withInternal
Set totrueto create an expression for internal data (default tofalse)- Parameters:
internal-trueto create an expression for internal data,falseotherwise- Returns:
- the current
ExpressionContext
-
caseInsensitive
Determines if the expression is not case sensitive- Returns:
trueif the expression is not case sensitive,falseotherwise
-
withCaseInsensitive
Set totrueto create a case insensitive expression (default tofalse)- Parameters:
caseInsensitive-trueto create a case insensitive expression,falseotherwise- Returns:
- the current
ExpressionContext
-