Class TLcdDataPropertyValueContext

java.lang.Object
com.luciad.view.TLcdDataPropertyValueContext

public class TLcdDataPropertyValueContext extends Object
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 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 of TLcdDataObjectExpressionLanguage.
      Parameters:
      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.
    • 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 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.
  • Method Details

    • getValue

      public Object 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 using setValue(Object).
      Returns:
      the current value of the property in this property value context.
      See Also:
    • setValue

      public void setValue(Object aValue)
      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

      public String getExpression()
      Returns the expression pointing to the value in the data object for this property value context. This expression is defined by the expression language.
      Returns:
      the expression defining this property value context. This must not be null.
      See Also:
    • getExpressionLanguage

      public ALcdDataObjectExpressionLanguage 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

      public ILcdModel 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

      public ILcdLayer getLayer()
      Returns the ILcdLayer in which the data object is displayed.
      Returns:
      The ILcdLayer in which the data object is displayed. This may be null.
    • getView

      public ILcdView getView()
      Returns the ILcdView in which the data object is displayed.
      Returns:
      The ILcdView in which the data object is displayed. This may be null.
    • getDataObject

      public ILcdDataObject 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

      public String toString()
      Overrides:
      toString in class Object