Package com.luciad.format.s57
Class TLcdS57Relationship
java.lang.Object
com.luciad.format.s57.TLcdS57Relationship
- All Implemented Interfaces:
ILcdS57Relationship
Default implementation of
ILcdS57Relationship
.-
Field Summary
Fields inherited from interface com.luciad.format.s57.ILcdS57Relationship
MASTER, PEER, SLAVE
-
Constructor Summary
ConstructorDescriptionTLcdS57Relationship
(ILcdS57FeatureObject aFirstObject, ILcdS57FeatureObject aSecondObject, int aType, String aComment) Creates a new relationship between the two given objects. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
getType()
Returns the type of this relationship.
-
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
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 interfaceILcdS57Relationship
- Returns:
- the first of the two objects that are involved in this relationship.
-
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 interfaceILcdS57Relationship
- 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 ofMASTER
SLAVE
PEER
- Specified by:
getType
in interfaceILcdS57Relationship
- Returns:
- the type of this relationship.
-
getComment
Description copied from interface:ILcdS57Relationship
Returns the comment, associated with this relationship.- Specified by:
getComment
in interfaceILcdS57Relationship
- Returns:
- the comment, associated with this relationship.
-