Class TLcdAIXM51Link<T extends ILcdDataObject>

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.aixm51.model.util.TLcdAIXM51Link<T>
All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

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.

Since:
10.0
See Also:
  • Constructor Details

    • TLcdAIXM51Link

      public TLcdAIXM51Link(TLcdDataType aType)
    • TLcdAIXM51Link

      public TLcdAIXM51Link(T aObject)
  • Method Details

    • getOwns

      public boolean getOwns()
      Returns the owns property.
      Returns:
      The owns property, false by default.
    • setOwns

      public void setOwns(boolean aOwns)
      Sets the owns property. The owns property indicates whether the object linked to is owned by the linking object.
      Parameters:
      aOwns - A boolean, true if the linked object is owned, false otherwise.
    • getObject

      public T getObject()
      Returns the linked object.
      Returns:
      The linked object or null if the link can not be resolved or is not set.
    • setObject

      public void setObject(T aObject)
      Sets the linked object.
      Parameters:
      aObject - The linked object, or null if this link can not be resolved or does not point to an object.