Package com.luciad.view
Class TLcdDataPropertyValueContext
java.lang.Object
com.luciad.view.TLcdDataPropertyValueContext
This object defines everything related to the value of a data property in a domain object:
the value itself, the
TLcdDataProperty
the it is mapped to, the domain object that has it,
the ILcdModel
in which the domain object is contained, and the ILcdLayer
and the
ILcdView
in which the domain object is displayed.- Since:
- 2013.0
-
Constructor Summary
ConstructorDescriptionTLcdDataPropertyValueContext
(Object aValue, String aExpression, ALcdDataObjectExpressionLanguage aExpressionLanguage, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance with the given arguments.TLcdDataPropertyValueContext
(Object aValue, String aExpression, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance with the given arguments and the default expression language, an instance ofTLcdDataObjectExpressionLanguage
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data object for which this object provides a property value context.Returns the expression pointing to the value in the data object for this property value context.Returns the expression language in which the expression is defined for this property value context.getLayer()
Returns theILcdLayer
in which the data object is displayed.getModel()
Returns the model in which the data object is contained.getValue()
Returns the current value corresponding to the expression in this property value context.getView()
Returns theILcdView
in which the data object is displayed.void
Sets the value that should correspond to the expression for this property value context.toString()
-
Constructor Details
-
TLcdDataPropertyValueContext
public TLcdDataPropertyValueContext(Object aValue, String aExpression, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance with the given arguments and the default expression language, an instance ofTLcdDataObjectExpressionLanguage
.- Parameters:
aValue
- The value the domain object has/should have for the property. This may benull
if this information is not available, or if the value isnull
.aExpression
- The expression that indicates how to locate the value in the domain object as defined by theTLcdDataObjectExpressionLanguage
. The expression must not benull
.aDataObject
- The domain object for which this object provides the context. This must not benull
.aModel
- TheILcdModel
that contains theaDomainObject
. This may benull
if this information is not available.aLayer
- TheILcdLayer
in whichaModel
is displayed. This may benull
if this information is not available.aView
- TheILcdView
in whichaLayer
is displayed. This may benull
if this information is not available.
-
TLcdDataPropertyValueContext
public TLcdDataPropertyValueContext(Object aValue, String aExpression, ALcdDataObjectExpressionLanguage aExpressionLanguage, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context instance with the given arguments.- Parameters:
aValue
- The value the domain object has/should have for the property. This may benull
if this information is not available, or if the value isnull
.aExpression
- The expression that indicates how to find the value in the domain object as defined by the argumentaExpressionLanguage
. The expression must not benull
.aExpressionLanguage
- The expression language determining the meaning of the expression. The expression language must not benull
.aDataObject
- The domain object for which this object provides the context. This must not benull
.aModel
- TheILcdModel
that contains theaDomainObject
. This may benull
if this information is not available.aLayer
- TheILcdLayer
in whichaModel
is displayed. This may benull
if this information is not available.aView
- TheILcdView
in whichaLayer
is displayed. This may benull
if this information is not available.
-
-
Method Details
-
getValue
Returns the current value corresponding to the expression in this property value context. Note: this is not necessarily the same as the value for the expression in in the data object. It can for instance be overridden usingsetValue(Object)
.- Returns:
- the current value of the property in this property value context.
- See Also:
-
setValue
Sets the value that should correspond to the expression for this property value context.- Parameters:
aValue
- the new value to correspond with the expression for this property value context.- See Also:
-
getExpression
Returns the expression pointing to the value in the data object for this property value context. This expression is defined by theexpression language
.- Returns:
- the expression defining this property value context. This must not be
null
. - See Also:
-
getExpressionLanguage
Returns the expression language in which the expression is defined for this property value context.- Returns:
- the expression language in which the expression is defined. This must not be
null
. - See Also:
-
getModel
Returns the model in which the data object is contained.- Returns:
- The model in which the data object is contained. This may be
null
.
-
getLayer
Returns theILcdLayer
in which the data object is displayed.- Returns:
- The
ILcdLayer
in which the data object is displayed. This may benull
.
-
getView
Returns theILcdView
in which the data object is displayed.- Returns:
- The
ILcdView
in which the data object is displayed. This may benull
.
-
getDataObject
Returns the data object for which this object provides a property value context.- Returns:
- The data object for which this object provides a property value context.
This will never be
null
.
-
toString
-