Class PlantUmlContentTransformer
java.lang.Object
org.eclipse.epsilon.picto.transformers.PlantUmlContentTransformer
- All Implemented Interfaces:
ViewContentTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransform
(ViewContent content) getLabel
(ViewContent content) static Path
plantumlToImage
(String plant, String imageExt) Converts PlantUML diagram to a temporary image file.static String
plantumlToRawSvg
(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:
canTransform
in interfaceViewContentTransformer
-
getLabel
- Specified by:
getLabel
in interfaceViewContentTransformer
-
transform
- Specified by:
transform
in 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.
-