public class TLcdDataPropertyValueContext extends Object
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.Constructor and Description |
---|
TLcdDataPropertyValueContext(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 of
TLcdDataObjectExpressionLanguage . |
Modifier and Type | Method and Description |
---|---|
ILcdDataObject |
getDataObject()
Returns the data object for which this object provides a property value context.
|
String |
getExpression()
Returns the expression pointing to the value in the data object for this property value context.
|
ALcdDataObjectExpressionLanguage |
getExpressionLanguage()
Returns the expression language in which the expression is defined for this property value context.
|
ILcdLayer |
getLayer()
Returns the
ILcdLayer in which the data object is displayed. |
ILcdModel |
getModel()
Returns the model in which the data object is contained.
|
Object |
getValue()
Returns the current value corresponding to the expression in this property value context.
|
ILcdView |
getView()
Returns the
ILcdView in which the data object is displayed. |
void |
setValue(Object aValue)
Sets the value that should correspond to the expression for this property value context.
|
String |
toString() |
public TLcdDataPropertyValueContext(Object aValue, String aExpression, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView)
TLcdDataObjectExpressionLanguage
.aValue
- The value the domain object has/should have for the property. This may be
null
if this information is not available, or if the value
is null
.aExpression
- The expression that indicates how to locate the value in the domain object
as defined by the TLcdDataObjectExpressionLanguage
.
The expression must not be null
.aDataObject
- The domain object for which this object provides the context. This must not
be null
.aModel
- The ILcdModel
that contains the aDomainObject
. This may be
null
if this information is not available.aLayer
- The ILcdLayer
in which aModel
is displayed. This may be
null
if this information is not available.aView
- The ILcdView
in which aLayer
is displayed. This may be
null
if this information is not available.public TLcdDataPropertyValueContext(Object aValue, String aExpression, ALcdDataObjectExpressionLanguage aExpressionLanguage, ILcdDataObject aDataObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView)
aValue
- The value the domain object has/should have for the property. This may be
null
if this information is not available, or if the value
is null
.aExpression
- The expression that indicates how to find the value in the domain object
as defined by the argument aExpressionLanguage
. The expression must not be null
.aExpressionLanguage
- The expression language determining the meaning of the expression.
The expression language must not be null
.aDataObject
- The domain object for which this object provides the context. This must not
be null
.aModel
- The ILcdModel
that contains the aDomainObject
. This may be
null
if this information is not available.aLayer
- The ILcdLayer
in which aModel
is displayed. This may be
null
if this information is not available.aView
- The ILcdView
in which aLayer
is displayed. This may be
null
if this information is not available.public Object getValue()
setValue(Object)
.setValue(Object)
public void setValue(Object aValue)
aValue
- the new value to correspond with the expression for this property value context.getValue()
public String getExpression()
expression language
.null
.getExpressionLanguage()
public ALcdDataObjectExpressionLanguage getExpressionLanguage()
null
.getExpression()
public ILcdModel getModel()
null
.public ILcdLayer getLayer()
ILcdLayer
in which the data object is displayed.ILcdLayer
in which the data object is displayed.
This may be null
.public ILcdView getView()
ILcdView
in which the data object is displayed.ILcdView
in which the data object is displayed.
This may be null
.public ILcdDataObject getDataObject()
null
.