public class TLcdAIXM51Optional<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
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
Only when the application uses the generic
ILcdDataObject API to access
the domain objects, these association classes become visible.
|Constructor and Description|
Creates a new optional for the given type.
|Modifier and Type||Method and Description|
Returns the nilReason attribute of this value.
Returns the value of the value property.
Sets the nilReason attribute of the value.
Sets the value of the value property to the given value
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdAIXM51Optional(TLcdDataType aType)
public TLcdGML32NilReasonEnumeration getNilReason()
public void setNilReason(TLcdGML32NilReasonEnumeration aReason)
aReason- A nilReason or null.
public T getValueObject()
getValueObjectin order not to clash with existing
public void setValueObject(T aValue)
aValue- the value to set
public String toString()