Tabnine Logo
ViewSet.getContainerViews
Code IndexAdd Tabnine to your IDE (free)

How to use
getContainerViews
method
in
com.structurizr.view.ViewSet

Best Java code snippets using com.structurizr.view.ViewSet.getContainerViews (Showing top 5 results out of 315)

origin: structurizr/java

/**
 * Writes the views in the given workspace as DOT notation, to the specified Writer.
 *
 * @param workspace     the workspace containing the views to be written
 * @param writer        the Writer to write to
 */
public void write(Workspace workspace, Writer writer) {
  workspace.getViews().getSystemContextViews().forEach(v -> write(v, null, writer));
  workspace.getViews().getContainerViews().forEach(v -> write(v, v.getSoftwareSystem(), writer));
  workspace.getViews().getComponentViews().forEach(v -> write(v, v.getContainer(), writer));
}
origin: structurizr/java

/**
 * Writes the views in the given workspace as PlantUML definitions, to the specified writer.
 *
 * @param workspace     the workspace containing the views to be written
 * @param writer        the Writer to write to
 */
public void write(Workspace workspace, Writer writer) {
  if (workspace == null) {
    throw new IllegalArgumentException("A workspace must be provided.");
  }
  if (writer == null) {
    throw new IllegalArgumentException("A writer must be provided.");
  }
  workspace.getViews().getSystemLandscapeViews().forEach(v -> write(v, writer));
  workspace.getViews().getSystemContextViews().forEach(v -> write(v, writer));
  workspace.getViews().getContainerViews().forEach(v -> write(v, writer));
  workspace.getViews().getComponentViews().forEach(v -> write(v, writer));
  workspace.getViews().getDynamicViews().forEach(v -> write(v, writer));
  workspace.getViews().getDeploymentViews().forEach(v -> write(v, writer));
}
origin: structurizr/java

@Test
public void test_writeContainerView() throws Exception {
  populateWorkspace();
  ContainerView containerView = workspace.getViews().getContainerViews()
    .stream().findFirst().get();
  plantUMLWriter.write(containerView, stringWriter);
  assertEquals(CONTAINER_VIEW, stringWriter.toString());
}
origin: structurizr/java

    .filter(v -> v.getKey() == null)
    .forEach(v -> warnings.add("System Context view \"" + v.getName() + "\": Missing key"));
getViews().getContainerViews().stream()
    .filter(v -> v.getKey() == null)
    .forEach(v -> warnings.add("Container view \"" + v.getName() + "\": Missing key"));
origin: structurizr/java

ContainerView sourceView = findView(source.getContainerViews(), view);
if (sourceView != null) {
  view.copyLayoutInformationFrom(sourceView);
com.structurizr.viewViewSetgetContainerViews

Javadoc

Gets the set of container views.

Popular methods of ViewSet

  • getConfiguration
    Gets the configuration object associated with this set of views.
  • getSystemContextViews
    Gets the set of system context views.
  • getSystemLandscapeViews
    Gets the set of system landscape views.
  • createComponentView
    Creates a component view, where the scope of the view is the specified container.
  • createDynamicView
    Creates a dynamic view.
  • createSystemContextView
    Creates a system context view, where the scope of the view is the specified software system.
  • createSystemLandscapeView
    Creates a system landscape view.
  • getComponentViews
    Gets the set of component views.
  • getDynamicViews
    Gets the set of dynamic views.
  • createContainerView
    Creates a container view, where the scope of the view is the specified software system.
  • createDeploymentView
    Creates a deployment view.
  • getDeploymentViews
    Gets the set of dynamic views.
  • createDeploymentView,
  • getDeploymentViews,
  • copyLayoutInformationFrom,
  • createFilteredView,
  • assertThatTheContainerIsNotNull,
  • assertThatTheSoftwareSystemIsNotNull,
  • assertThatTheViewIsNotNull,
  • assertThatTheViewKeyIsSpecifiedAndUnique,
  • findView

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • findViewById (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now