Interface ILcdS57Relationship

All Known Implementing Classes:
TLcdS57Relationship

public interface ILcdS57Relationship
A bidirectional relationship between two S-57 feature objects.

A relationship always involves two participants and can be of three different types:

  • master
  • slave
  • peer

A relationship between a master and a slave can be modelled directly as a single, direct relationship between the master and the slave, or as two indirect relationships between a shared collection feature. Peer-to-peer relationships are always modelled via a shared collection feature. The figure below illustrates each of the relationship types.

S-57 relationship types.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the comment, associated with this relationship.
    Returns the first of the two objects that are involved in this relationship.
    Returns the second of the two objects that are involved in this relationship.
    int
    Returns the type of this relationship.
  • Field Details

  • Method Details

    • getFirstObject

      ILcdS57FeatureObject getFirstObject()
      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.

      Returns:
      the first of the two objects that are involved in this relationship.
    • getSecondObject

      ILcdS57FeatureObject getSecondObject()
      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.

      Returns:
      the first of the two objects that are involved in this relationship.
    • getType

      int getType()
      Returns the type of this relationship. This can be one of
      • MASTER
      • SLAVE
      • PEER
      or another, product-specific type.
      Returns:
      the type of this relationship.
    • getComment

      String getComment()
      Returns the comment, associated with this relationship.
      Returns:
      the comment, associated with this relationship.