public class TLcdS57Relationship extends Object implements ILcdS57Relationship
ILcdS57Relationship
.MASTER, PEER, SLAVE
Constructor and Description |
---|
TLcdS57Relationship(ILcdS57FeatureObject aFirstObject,
ILcdS57FeatureObject aSecondObject,
int aType,
String aComment)
Creates a new relationship between the two given objects.
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Returns the comment, associated with this relationship.
|
ILcdS57FeatureObject |
getFirstObject()
Returns the first of the two objects that are involved in this relationship.
|
ILcdS57FeatureObject |
getSecondObject()
Returns the second of the two objects that are involved in this relationship.
|
int |
getType()
Returns the type of this relationship.
|
public TLcdS57Relationship(ILcdS57FeatureObject aFirstObject, ILcdS57FeatureObject aSecondObject, int aType, String aComment)
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.public ILcdS57FeatureObject getFirstObject()
ILcdS57Relationship
getFirstObject
in interface ILcdS57Relationship
public ILcdS57FeatureObject getSecondObject()
ILcdS57Relationship
getSecondObject
in interface ILcdS57Relationship
public int getType()
ILcdS57Relationship
MASTER
SLAVE
PEER
getType
in interface ILcdS57Relationship
public String getComment()
ILcdS57Relationship
getComment
in interface ILcdS57Relationship