structurizr-plantuml/src/com/structurizr/io/plantuml/PlantUMLWriter.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
     */
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
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 final 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));
    }
public final 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 ) ) ; }
Writes the views in the given workspace as PlantUML definitions, to the specified writer.
Writes the views in the given workspace as PlantUML definitions to the specified writer .