Class PlantUmlContentTransformer
java.lang.Object
org.eclipse.epsilon.picto.transformers.PlantUmlContentTransformer
- All Implemented Interfaces:
ViewContentTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransform(ViewContent content) getLabel(ViewContent content) static PathplantumlToImage(String plant, String imageExt) Converts PlantUML diagram to a temporary image file.static StringplantumlToRawSvg(String plant) Converts PlantUML diagram to SVG as a String.transform(ViewContent content, PictoView pictoView)
-
Constructor Details
-
PlantUmlContentTransformer
public PlantUmlContentTransformer()
-
-
Method Details
-
canTransform
- Specified by:
canTransformin interfaceViewContentTransformer
-
getLabel
- Specified by:
getLabelin interfaceViewContentTransformer
-
transform
- Specified by:
transformin interfaceViewContentTransformer- Throws:
Exception
-
plantumlToRawSvg
Converts PlantUML diagram to SVG as a String.- Parameters:
plant- The Plant UML description.- Returns:
- The generated SVG as an XML string.
- Throws:
IOException- If writing to file fails.
-
plantumlToImage
Converts PlantUML diagram to a temporary image file.- Parameters:
plant- The Plant UML description.imageExt- The file extension (and therefore type) of the image.- Returns:
- The path to the generated image.
- Throws:
IOException- If writing to file fails.
-