Class DynamicView

java.lang.Object
com.structurizr.view.View
com.structurizr.view.DynamicView

public final class DynamicView extends View
A dynamic view, used to describe behaviour between static elements at runtime.
  • Method Details

    • getModel

      public Model getModel()
      Description copied from class: View
      Gets the model that this view belongs to.
      Overrides:
      getModel in class View
      Returns:
      a Model object
    • getSoftwareSystemId

      public String getSoftwareSystemId()
      Description copied from class: View
      Gets the ID of the software system this view is associated with.
      Overrides:
      getSoftwareSystemId in class View
      Returns:
      the ID, as a String, or null if this view is not associated with a software system (e.g. it's a system landscape view)
    • getElementId

      public String getElementId()
      Gets the ID of the software system or container associated with this view.
      Returns:
      the ID, as a String, or null if not set
    • getElement

      public Element getElement()
    • add

      public RelationshipView add(@Nonnull StaticStructureElement source, @Nonnull StaticStructureElement destination)
    • add

      public RelationshipView add(@Nonnull StaticStructureElement source, String description, @Nonnull StaticStructureElement destination)
    • add

      public RelationshipView add(@Nonnull StaticStructureElement source, String description, String technology, @Nonnull StaticStructureElement destination)
    • addRelationship

      protected RelationshipView addRelationship(Relationship relationship, String description, String order, boolean response)
    • getName

      public String getName()
      Gets the (computed) name of this view.
      Specified by:
      getName in class View
      Returns:
      the name, as a String
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • startParallelSequence

      public void startParallelSequence()
    • endParallelSequence

      public void endParallelSequence()
    • endParallelSequence

      public void endParallelSequence(boolean endAllParallelSequencesAndContinueNumbering)
    • checkElementCanBeAdded

      protected void checkElementCanBeAdded(Element elementToBeAdded)
      Specified by:
      checkElementCanBeAdded in class View
    • canBeRemoved

      protected boolean canBeRemoved(Element element)
      Specified by:
      canBeRemoved in class View
    • getRelationships

      public Set<RelationshipView> getRelationships()
      Gets the set of RelationshipView objects for this view, ordered by the order property.
      Overrides:
      getRelationships in class View
      Returns:
      an ordered set of RelationshipView objects
    • getExternalBoundariesVisible

      public boolean getExternalBoundariesVisible()
      Determines whether software system/container boundaries should be visible for "external" containers/components (those outside the element in scope).
      Returns:
      true if external boundaries are visible, false otherwise
    • setExternalBoundariesVisible

      public void setExternalBoundariesVisible(boolean externalBoundariesVisible)
      Sets whether software system/container boundaries should be visible for "external" containers/components (those outside the element in scope).
      Parameters:
      externalBoundariesVisible - true if external boundaries should be visible, false otherwise