public class TLcdAIXM51Link<T extends ILcdDataObject> extends TLcdDataObject
Models a link from one AIXM object to another. The owns property defines if the linked object is owned (composition) or not.
This class is typically used as a UML association class. This means that it implements
an association between two other classes. The object property (implemented by
getObject()
and setObject(ILcdDataObject)
) 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.
TLcdAssociationClassAnnotation
Constructor and Description |
---|
TLcdAIXM51Link(T aObject) |
TLcdAIXM51Link(TLcdDataType aType) |
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Returns the linked object.
|
boolean |
getOwns()
Returns the owns property.
|
void |
setObject(T aObject)
Sets the linked object.
|
void |
setOwns(boolean aOwns)
Sets the owns property.
|
public TLcdAIXM51Link(TLcdDataType aType)
public TLcdAIXM51Link(T aObject)
public boolean getOwns()
public void setOwns(boolean aOwns)
aOwns
- A boolean, true if the linked object is owned, false otherwise.public T getObject()
public void setObject(T aObject)
aObject
- The linked object, or null if this link can not be resolved or does not point to
an object.