Class TLcdS57Relationship

java.lang.Object
com.luciad.format.s57.TLcdS57Relationship
All Implemented Interfaces:
ILcdS57Relationship

public class TLcdS57Relationship extends Object implements ILcdS57Relationship
Default implementation of ILcdS57Relationship.
  • Constructor Details

    • TLcdS57Relationship

      public TLcdS57Relationship(ILcdS57FeatureObject aFirstObject, ILcdS57FeatureObject aSecondObject, int aType, String aComment)
      Creates a new relationship between the two given objects.
      Parameters:
      aFirstObject - the first object, involved in this relationship.
      aSecondObject - the second object, involved in this relationship.
      aType - the type of this relationship.
      aComment - an optional comment, providing more information about this relationship.
  • Method Details

    • getFirstObject

      public ILcdS57FeatureObject getFirstObject()
      Description copied from interface: ILcdS57Relationship
      Returns the first of the two objects that are involved in this relationship.

      In case of a direct connection between a master and a slave, this will always be the master. In case of a indirect connection via a collection feature, this will always be the collection feature.

      Specified by:
      getFirstObject in interface ILcdS57Relationship
      Returns:
      the first of the two objects that are involved in this relationship.
    • getSecondObject

      public ILcdS57FeatureObject getSecondObject()
      Description copied from interface: ILcdS57Relationship
      Returns the second of the two objects that are involved in this relationship.

      In case of a direct connection between a master and a slave, this will always be the slave. In case of a indirect connection via a collection feature, this will always be the object that is connected to the collection feature.

      Specified by:
      getSecondObject in interface ILcdS57Relationship
      Returns:
      the first of the two objects that are involved in this relationship.
    • getType

      public int getType()
      Description copied from interface: ILcdS57Relationship
      Returns the type of this relationship. This can be one of
      • MASTER
      • SLAVE
      • PEER
      or another, product-specific type.
      Specified by:
      getType in interface ILcdS57Relationship
      Returns:
      the type of this relationship.
    • getComment

      public String getComment()
      Description copied from interface: ILcdS57Relationship
      Returns the comment, associated with this relationship.
      Specified by:
      getComment in interface ILcdS57Relationship
      Returns:
      the comment, associated with this relationship.