Package com.luciad.datamodel.expression
Class TLcdDataObjectExpressionContext
java.lang.Object
com.luciad.datamodel.expression.TLcdDataObjectExpressionContext
Context that is used to provide contextual information for evaluating
expressions. The context contains at least the root object.
- Since:
- 10.1
-
Constructor Summary
ConstructorDescriptionConstructs a new instance with the given object as root.TLcdDataObjectExpressionContext
(ILcdDataObject aRoot, Map<String, Object> aProperties) Constructs a new instance with the given object as root and the given map as properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns a map containing the properties of this context.getRoot()
Returns the root object of this context.void
setRoot
(ILcdDataObject aRoot) Sets the root of this context to the given object.
-
Constructor Details
-
TLcdDataObjectExpressionContext
Constructs a new instance with the given object as root.- Parameters:
aRoot
-
-
TLcdDataObjectExpressionContext
Constructs a new instance with the given object as root and the given map as properties.- Parameters:
aRoot
- the root objectaProperties
- the map with properties
-
-
Method Details
-
getRoot
Returns the root object of this context.- Returns:
- the root object of this context
- See Also:
-
setRoot
Sets the root of this context to the given object.- Parameters:
aRoot
- the root of this context- See Also:
-
getProperties
Returns a map containing the properties of this context. This map is typically used to keep track of additional information to be used during expression evaluation. One example could be for instance an expression language that supports the use of variables. These variables can then be stored in the properties of the context.- Returns:
- the map of properties for this context
-