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 protected
ExpressionContext()
Creates a new instance of aExpressionContext
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
caseInsensitive()
Determines if the expression is not case sensitiveboolean
internal()
Determines if the data under the expression is internalstatic ExpressionContext
newInstance()
Creates a new instance of aExpressionContext
boolean
unversioned()
Determines if the data under the expression is internalExpressionContext
withCaseInsensitive(boolean caseInsensitive)
Set totrue
to create a case insensitive expression (default tofalse
)ExpressionContext
withInternal(boolean internal)
Set totrue
to create an expression for internal data (default tofalse
)ExpressionContext
withUnversioned(boolean unversioned)
Set totrue
to 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:
true
if the data is internal,false
otherwise
-
withUnversioned
public ExpressionContext withUnversioned(boolean unversioned)
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
public boolean internal()
Determines if the data under the expression is internal- Returns:
true
if the data is internal,false
otherwise
-
withInternal
public ExpressionContext withInternal(boolean internal)
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
public boolean caseInsensitive()
Determines if the expression is not case sensitive- Returns:
true
if the expression is not case sensitive,false
otherwise
-
withCaseInsensitive
public ExpressionContext withCaseInsensitive(boolean caseInsensitive)
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
-
-