Class ExpressionContext
- java.lang.Object
-
- org.ametys.plugins.repository.query.expression.ExpressionContext
-
public class ExpressionContext extends Object
Object that gives some context for expressions
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExpressionContext()Creates a new instance of aExpressionContext
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancaseInsensitive()Determines if the expression is not case sensitivebooleaninternal()Determines if the data under the expression is internalstatic ExpressionContextnewInstance()Creates a new instance of aExpressionContextbooleanunversioned()Determines if the data under the expression is internalExpressionContextwithCaseInsensitive(boolean caseInsensitive)Set totrueto create a case insensitive expression (default tofalse)ExpressionContextwithInternal(boolean internal)Set totrueto create an expression for internal data (default tofalse)ExpressionContextwithUnversioned(boolean unversioned)Set totrueto create an expression for unversioned data (default tofalse)
-
-
-
Constructor Detail
-
ExpressionContext
protected ExpressionContext()
Creates a new instance of aExpressionContext
-
-
Method Detail
-
newInstance
public static ExpressionContext newInstance()
Creates a new instance of aExpressionContext- Returns:
- the created instance
-
unversioned
public boolean unversioned()
Determines if the data under the expression is internal- Returns:
trueif the data is internal,falseotherwise
-
withUnversioned
public ExpressionContext withUnversioned(boolean unversioned)
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
public boolean internal()
Determines if the data under the expression is internal- Returns:
trueif the data is internal,falseotherwise
-
withInternal
public ExpressionContext withInternal(boolean internal)
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
public boolean caseInsensitive()
Determines if the expression is not case sensitive- Returns:
trueif the expression is not case sensitive,falseotherwise
-
withCaseInsensitive
public ExpressionContext withCaseInsensitive(boolean caseInsensitive)
Set totrueto create a case insensitive expression (default tofalse)- Parameters:
caseInsensitive-trueto create a case insensitive expression,falseotherwise- Returns:
- the current
ExpressionContext
-
-