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 ) ) ; }
Writes the views in the given workspace as PlantUML definitions to the specified writer .