Package com.structurizr.model
Class Relationship
java.lang.Object
com.structurizr.model.ModelItem
com.structurizr.model.Relationship
public final class Relationship extends ModelItem
A relationship between two elements.
-
Method Summary
Modifier and Type Method Description java.lang.StringgetCanonicalName()java.lang.StringgetDescription()ElementgetDestination()java.lang.StringgetDestinationId()Gets the ID of the destination element.InteractionStylegetInteractionStyle()Gets the interaction style (synchronous or asynchronous).java.lang.StringgetLinkedRelationshipId()ModelgetModel()protected java.util.Set<java.lang.String>getRequiredTags()ElementgetSource()java.lang.StringgetSourceId()Gets the ID of the source element.java.lang.StringgetTechnology()Gets the technology associated with this relationship (e.g.protected voidsetModel(Model model)java.lang.StringtoString()Methods inherited from class com.structurizr.model.ModelItem
addPerspective, addProperty, addTags, getId, getOriginId, getPerspectives, getProperties, getTags, getTagsAsSet, getUrl, hasTag, removeTag, setUrl
-
Method Details
-
getModel
-
setModel
-
getCanonicalName
public java.lang.String getCanonicalName()- Specified by:
getCanonicalNamein classModelItem
-
getSource
-
getSourceId
public java.lang.String getSourceId()Gets the ID of the source element.- Returns:
- the ID of the source element, as a String
-
getDestination
-
getDestinationId
public java.lang.String getDestinationId()Gets the ID of the destination element.- Returns:
- the ID of the destination element, as a String
-
getDescription
public java.lang.String getDescription() -
getTechnology
public java.lang.String 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
public java.lang.String getLinkedRelationshipId() -
getRequiredTags
protected java.util.Set<java.lang.String> getRequiredTags()- Specified by:
getRequiredTagsin classModelItem
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-