Class TLcdISO19115Optional<T>

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.metadata.model.util.TLcdISO19115Optional<T>
All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable
Direct Known Subclasses:
TLcdISO19115OptionalWithFreeText

public class TLcdISO19115Optional<T> extends TLcdDataObject

An optional is a ILcdDataObject with a value property and an optional nil reason property to explain why the value is not filled in.

This class is typically used as a UML association class. This means that it implements an association between two other classes. The value property (implemented by getValueObject() and setValueObject(Object)) is the role property of this association. In the large majority of cases, only the value of the role property is used by applications. In those cases, the association class can be considered to be a mere wrapper. Because of this, the API of the domain objects was made such that these association classes are not visible in the API. The getters and setters for properties of which the type is an association class directly expose the role property. Wrapping and unwrapping is done automatically by the implementation. Only when the application uses the generic ILcdDataObject API to access the domain objects, these association classes become visible.

Since:
10.0
See Also:
  • Constructor Details

    • TLcdISO19115Optional

      public TLcdISO19115Optional(TLcdDataType aType)
    • TLcdISO19115Optional

      public TLcdISO19115Optional(T aValue)
  • Method Details

    • getValueObject

      public T getValueObject()
    • setValueObject

      public void setValueObject(T aValue)
    • getNilReason

      public String getNilReason()
    • setNilReason

      public void setNilReason(String aReason)