Package com.structurizr.model
Class Relationship
java.lang.Object
com.structurizr.model.ModelItem
com.structurizr.model.Relationship
- All Implemented Interfaces:
PropertyHolder
A relationship between two elements.
-
Method Summary
Methods inherited from class com.structurizr.model.ModelItem
addPerspective, addProperty, addTags, getId, getPerspectives, getProperties, getTags, getTagsAsSet, getUrl, hasTag, removeTag, setUrl
-
Method Details
-
getModel
-
setModel
-
getCanonicalName
- Specified by:
getCanonicalName
in classModelItem
-
getSource
-
getSourceId
Gets the ID of the source element.- Returns:
- the ID of the source element, as a String
-
getDestination
-
getDestinationId
Gets the ID of the destination element.- Returns:
- the ID of the destination element, as a String
-
getDescription
-
getTechnology
Gets the technology associated with this relationship (e.g. HTTPS, JDBC, etc).- Returns:
- the technology as a String, or null if a technology is not specified
-
getInteractionStyle
Gets the interaction style (synchronous or asynchronous).- Returns:
- an InteractionStyle, or null if an interaction style has not been specified
-
getLinkedRelationshipId
-
getDefaultTags
- Specified by:
getDefaultTags
in classModelItem
-
toString
-