venice
Class MRelationship
java.lang.Object
|
+--venice.MRelationship
- Direct Known Subclasses:
- MContainment, MDependency, MGeneralization, MRealization
- public abstract class MRelationship
- extends java.lang.Object
This class provides an abstraction for all relationships used in the model
- Author:
- Sami Ilonen
Field Summary |
private java.lang.String |
mDestination
|
private java.lang.String |
mId
|
private java.lang.String |
mSource
|
private java.lang.String |
mType
|
Constructor Summary |
MRelationship(java.lang.String inId,
java.lang.String inType,
java.lang.String inSrc,
java.lang.String inDest)
|
Method Summary |
java.lang.String |
getDestination()
Returns the destination ModelElement for this relationship. |
java.lang.String |
getId()
Returns the id of this relationship. |
java.lang.String |
getSource()
Returns the source ModelElement for this relationship. |
java.lang.String |
getType()
Returns the type of this relationship as String. |
abstract java.lang.String |
toXML()
Returns the XML-representation of this relationship as String. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
mId
private java.lang.String mId
mType
private java.lang.String mType
mSource
private java.lang.String mSource
mDestination
private java.lang.String mDestination
MRelationship
public MRelationship(java.lang.String inId,
java.lang.String inType,
java.lang.String inSrc,
java.lang.String inDest)
getId
public java.lang.String getId()
- Returns the id of this relationship.
- Returns:
- Returns the id of this relationship.
getSource
public java.lang.String getSource()
- Returns the source ModelElement for this relationship.
- Returns:
- Returns the source of this relationship.
getDestination
public java.lang.String getDestination()
- Returns the destination ModelElement for this relationship.
- Returns:
- Returns the destination of the relationship.
getType
public java.lang.String getType()
- Returns the type of this relationship as String.
- Returns:
- Returns the type of this relationship.
toXML
public abstract java.lang.String toXML()
- Returns the XML-representation of this relationship as String.
- Returns:
- Returns the XML-representation as String.