Class ViewSet
The set of views onto a software architecture model.
[DataContract]
public sealed class ViewSet
- Inheritance
-
ViewSet
- Inherited Members
Properties
ComponentViews
The set of component views.
[DataMember(Name = "componentViews", EmitDefaultValue = false)]
public ISet<ComponentView> ComponentViews { get; }
Property Value
Configuration
The configuration object associated with this set of views.
[DataMember(Name = "configuration", EmitDefaultValue = false)]
public ViewConfiguration Configuration { get; }
Property Value
ContainerViews
The set of container views.
[DataMember(Name = "containerViews", EmitDefaultValue = false)]
public ISet<ContainerView> ContainerViews { get; }
Property Value
DeploymentViews
The set of deployment views.
[DataMember(Name = "deploymentViews", EmitDefaultValue = false)]
public ISet<DeploymentView> DeploymentViews { get; }
Property Value
DynamicViews
The set of dynamic views.
[DataMember(Name = "dynamicViews", EmitDefaultValue = false)]
public ISet<DynamicView> DynamicViews { get; }
Property Value
FilteredViews
The set of filtered views.
[DataMember(Name = "filteredViews", EmitDefaultValue = false)]
public ISet<FilteredView> FilteredViews { get; }
Property Value
Model
References the model that owns every view in the set.
public Model Model { get; set; }
Property Value
SystemContextViews
The set of system context views.
[DataMember(Name = "systemContextViews", EmitDefaultValue = false)]
public ISet<SystemContextView> SystemContextViews { get; }
Property Value
SystemLandscapeViews
The set of system landscape views.
[DataMember(Name = "systemLandscapeViews", EmitDefaultValue = false)]
public ISet<SystemLandscapeView> SystemLandscapeViews { get; }
Property Value
Methods
CopyLayoutInformationFrom(ViewSet)
Copies layout information from matching views in another view set.
public void CopyLayoutInformationFrom(ViewSet source)
Parameters
sourceViewSetThe source view set that provides layout information.
CreateComponentView(Container, string, string)
Creates a component view for the supplied container.
public ComponentView CreateComponentView(Container container, string key, string description)
Parameters
containerContainerThe container in scope.
keystringThe unique key for the view.
descriptionstringThe view description.
Returns
- ComponentView
The created ComponentView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateContainerView(SoftwareSystem, string, string)
Creates a container view for the supplied software system.
public ContainerView CreateContainerView(SoftwareSystem softwareSystem, string key, string description)
Parameters
softwareSystemSoftwareSystemThe software system in scope.
keystringThe unique key for the view.
descriptionstringThe view description.
Returns
- ContainerView
The created ContainerView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateDeploymentView(SoftwareSystem, string, string)
Creates a deployment view, where the scope of the view is the specified software system.
public DeploymentView CreateDeploymentView(SoftwareSystem softwareSystem, string key, string description)
Parameters
softwareSystemSoftwareSystemthe SoftwareSystem object representing the scope of the view
keystringthe key for the deployment view (must be unique)
descriptionstringa description of the view
Returns
- DeploymentView
a DeploymentView object
Exceptions
- ArgumentException
Thrown when
softwareSystemis null orkeyis already used by another view.
CreateDeploymentView(string, string)
Creates a deployment view.
public DeploymentView CreateDeploymentView(string key, string description)
Parameters
Returns
- DeploymentView
The created DeploymentView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateDynamicView(Container, string, string)
Creates a container-scoped dynamic view.
public DynamicView CreateDynamicView(Container container, string key, string description)
Parameters
containerContainerThe container in scope.
keystringThe unique key for the view.
descriptionstringThe view description.
Returns
- DynamicView
The created DynamicView.
Exceptions
- ArgumentException
Thrown when
containeris null orkeyis already used by another view.
CreateDynamicView(SoftwareSystem, string, string)
Creates a software-system-scoped dynamic view.
public DynamicView CreateDynamicView(SoftwareSystem softwareSystem, string key, string description)
Parameters
softwareSystemSoftwareSystemThe software system in scope.
keystringThe unique key for the view.
descriptionstringThe view description.
Returns
- DynamicView
The created DynamicView.
Exceptions
- ArgumentException
Thrown when
softwareSystemis null orkeyis already used by another view.
CreateDynamicView(string, string)
Creates an unscoped dynamic view.
public DynamicView CreateDynamicView(string key, string description)
Parameters
Returns
- DynamicView
The created DynamicView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateFilteredView(StaticView, string, string, FilterMode, params string[])
Creates a FilteredView on top of an existing static view.
public FilteredView CreateFilteredView(StaticView view, string key, string description, FilterMode mode, params string[] tags)
Parameters
viewStaticViewthe static view to base the FilteredView upon
keystringthe key for the filtered view (must be unique)
descriptionstringa description of the filtered view
modeFilterModewhether to Include or Exclude elements/relationships based upon their tag
tagsstring[]the tags to include or exclude
Returns
- FilteredView
The created FilteredView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateSystemContextView(SoftwareSystem, string, string)
Creates a system context view for the supplied software system.
public SystemContextView CreateSystemContextView(SoftwareSystem softwareSystem, string key, string description)
Parameters
softwareSystemSoftwareSystemThe software system in scope.
keystringThe unique key for the view.
descriptionstringThe view description.
Returns
- SystemContextView
The created SystemContextView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
CreateSystemLandscapeView(string, string)
Creates a system landscape view for the current model.
public SystemLandscapeView CreateSystemLandscapeView(string key, string description)
Parameters
Returns
- SystemLandscapeView
The created SystemLandscapeView.
Exceptions
- ArgumentException
Thrown when
keyis already used by another view.
GetFilteredViewWithKey(string)
Finds the filtered view with the specified key.
public FilteredView GetFilteredViewWithKey(string key)
Parameters
keystringThe view key to locate.
Returns
- FilteredView
The matching filtered view, or null when no filtered view uses that key.
Exceptions
- ArgumentException
Thrown when
keyis null.
GetViewWithKey(string)
Finds the non-filtered view with the specified key.
public View GetViewWithKey(string key)
Parameters
keystringThe view key to locate.
Returns
Exceptions
- ArgumentException
Thrown when
keyis null.
Hydrate()
Reconnects deserialized views to the current model graph.
public void Hydrate()