structurizr-plantuml/src/com/structurizr/io/plantuml/PlantUMLWriter.java
/**
     * Creates PlantUML diagram definitions based upon the specified workspace.
     *
     * @param workspace     the workspace containing the views to be written
     * @return  a collection of PlantUML diagram definitions, one per view
     */
Creates PlantUML diagram definitions based upon the specified workspace.
@param workspace     the workspace containing the views to be written
@return  a collection of PlantUML diagram definitions, one per view
Creates PlantUML diagram definitions based upon the specified workspace . @param workspace the workspace containing the views to be written @return a collection of PlantUML diagram definitions one per view
public final Collection<PlantUMLDiagram> toPlantUMLDiagrams(Workspace workspace) {
        if (workspace == null) {
            throw new IllegalArgumentException("A workspace must be provided.");
        }
        Collection<PlantUMLDiagram> diagrams = new ArrayList<>();
        for (View view : workspace.getViews().getViews()) {
            StringWriter stringWriter = new StringWriter();
            write(view, stringWriter);
            diagrams.add(new PlantUMLDiagram(view.getKey(), view.getName(), stringWriter.toString()));
        }
        return diagrams;
    }
public final Collection < PlantUMLDiagram > toPlantUMLDiagrams ( Workspace workspace ) { if ( workspace == null ) { throw new IllegalArgumentException ( "A workspace must be provided." ) ; } Collection < PlantUMLDiagram > diagrams = new ArrayList < > ( ) ; for ( View view : workspace . getViews ( ) . getViews ( ) ) { StringWriter stringWriter = new StringWriter ( ) ; write ( view , stringWriter ) ; diagrams . add ( new PlantUMLDiagram ( view . getKey ( ) , view . getName ( ) , stringWriter . toString ( ) ) ) ; } return diagrams ; }
Creates PlantUML diagram definitions based upon the specified workspace.
Creates PlantUML diagram definitions based upon the specified workspace .