Package com.structurizr.dsl
Class StructurizrDslFormatter
java.lang.Object
com.structurizr.dsl.StructurizrDslFormatter
Formats a Structurizr JSON workspace to DSL.
This implementation isn't perfect, but it should help anybody wanting to transition to the DSL.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StructurizrDslFormatter
public StructurizrDslFormatter()
-
-
Method Details
-
format
Formats the specified Structurizr JSON file to the Structurizr DSL.- Parameters:
file- a File object representing a JSON file- Returns:
- a DSL representation of the workspace
- Throws:
StructurizrDslFormatterException- if the workspace can't be formatted
-
format
Formats the specified Structurizr JSON to the Structurizr DSL.- Parameters:
json- a JSON document- Returns:
- a DSL representation of the workspace
- Throws:
StructurizrDslFormatterException- if the workspace can't be formatted
-