Package com.structurizr.view
Class DynamicView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.DynamicView
A dynamic view, used to describe behaviour between static elements at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionadd(Relationship relationship) Adds a specific relationship to this dynamic view, with the original description.add(Relationship relationship, String description) Adds a specific relationship to this dynamic view, with an overidden description.add(StaticStructureElement source, StaticStructureElement destination) add(StaticStructureElement source, String description, StaticStructureElement destination) add(StaticStructureElement source, String description, String technology, StaticStructureElement destination) protected RelationshipViewaddRelationship(Relationship relationship, String description, String order, boolean response) protected booleancanBeRemoved(Element element) protected voidcheckElementCanBeAdded(Element elementToBeAdded) voidvoidendParallelSequence(boolean endAllParallelSequencesAndContinueNumbering) Gets the ID of the software system or container associated with this view.booleanDetermines whether software system/container boundaries should be visible for "external" containers/components (those outside the element in scope).getModel()Gets the model that this view belongs to.getName()Gets the (computed) name of this view.Gets the set of RelationshipView objects for this view, ordered by the order property.Gets the ID of the software system this view is associated with.voidsetExternalBoundariesVisible(boolean externalBoundariesVisible) Sets whether software system/container boundaries should be visible for "external" containers/components (those outside the element in scope).voidtoString()Methods inherited from class com.structurizr.view.View
add, add, addElement, addNearestNeighbours, addRelationship, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDescription, getDimensions, getElements, getElementView, getKey, getMergeFromRemote, getOrder, getPaperSize, getRelationshipView, getSoftwareSystem, getTitle, getViewSet, isElementInView, remove, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDescription, setDimensions, setLayoutMergeStrategy, setMergeFromRemote, setPaperSize, setTitle
-
Method Details
-
getModel
Description copied from class:ViewGets the model that this view belongs to. -
getSoftwareSystemId
Description copied from class:ViewGets the ID of the software system this view is associated with.- Overrides:
getSoftwareSystemIdin classView- 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
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
-
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) -
add
Adds a specific relationship to this dynamic view, with the original description.- Parameters:
relationship- the Relationship to add- Returns:
- a RelationshipView
-
add
Adds a specific relationship to this dynamic view, with an overidden description.- Parameters:
relationship- the Relationship to adddescription- the overidden description- Returns:
- a RelationshipView
-
addRelationship
protected RelationshipView addRelationship(Relationship relationship, String description, String order, boolean response) -
getName
Gets the (computed) name of this view. -
toString
-
startParallelSequence
public void startParallelSequence() -
endParallelSequence
public void endParallelSequence() -
endParallelSequence
public void endParallelSequence(boolean endAllParallelSequencesAndContinueNumbering) -
checkElementCanBeAdded
- Specified by:
checkElementCanBeAddedin classView
-
canBeRemoved
- Specified by:
canBeRemovedin classView
-
getRelationships
Gets the set of RelationshipView objects for this view, ordered by the order property.- Overrides:
getRelationshipsin classView- 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
-