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 Details

    • getModel

      public Model getModel()
    • setModel

      protected void setModel​(Model model)
    • getCanonicalName

      public java.lang.String getCanonicalName()
      Specified by:
      getCanonicalName in class ModelItem
    • getSource

      public Element 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

      public Element 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

      public InteractionStyle 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:
      getRequiredTags in class ModelItem
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object