Class ExpressionContext
java.lang.Object
org.ametys.plugins.repository.query.expression.ExpressionContext
Object that gives some context for expressions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the expression is not case sensitiveboolean
internal()
Determines if the data under the expression is internalstatic ExpressionContext
Creates a new instance of aExpressionContext
boolean
Determines if the data under the expression is internalwithCaseInsensitive
(boolean caseInsensitive) Set totrue
to create a case insensitive expression (default tofalse
)withInternal
(boolean internal) Set totrue
to create an expression for internal data (default tofalse
)withUnversioned
(boolean unversioned) Set totrue
to 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:
true
if the data is internal,false
otherwise
-
withUnversioned
Set totrue
to create an expression for unversioned data (default tofalse
)- Parameters:
unversioned
-true
to create an expression for unversioned data,false
otherwise- Returns:
- the current
ExpressionContext
-
internal
Determines if the data under the expression is internal- Returns:
true
if the data is internal,false
otherwise
-
withInternal
Set totrue
to create an expression for internal data (default tofalse
)- Parameters:
internal
-true
to create an expression for internal data,false
otherwise- Returns:
- the current
ExpressionContext
-
caseInsensitive
Determines if the expression is not case sensitive- Returns:
true
if the expression is not case sensitive,false
otherwise
-
withCaseInsensitive
Set totrue
to create a case insensitive expression (default tofalse
)- Parameters:
caseInsensitive
-true
to create a case insensitive expression,false
otherwise- Returns:
- the current
ExpressionContext
-