Class MermaidContentTransformer
java.lang.Object
org.eclipse.epsilon.picto.transformers.MermaidContentTransformer
- All Implemented Interfaces:
ViewContentTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransform(ViewContent content) getLabel(ViewContent content) protected static ExternalContentTransformationstatic PathmermaidToImage(String mmd, String ext) static PathmermaidToImage(Path mmd, String ext) static StringmermaidToRawSvg(String mmd) static StringmermaidToRawSvg(Path mmd) transform(ViewContent content, PictoView pictoView)
-
Constructor Details
-
MermaidContentTransformer
public MermaidContentTransformer()
-
-
Method Details
-
canTransform
- Specified by:
canTransformin interfaceViewContentTransformer
-
getLabel
- Specified by:
getLabelin interfaceViewContentTransformer
-
transform
- Specified by:
transformin interfaceViewContentTransformer- Throws:
Exception
-
mermaidToRawSvg
- Parameters:
mmd- The Mermaid as plain text.- Returns:
- The SVG as an XML string.
- Throws:
IOException
-
mermaidToRawSvg
- Parameters:
mmd- The Mermaid file.- Returns:
- The SVG as an XML string.
- Throws:
IOException
-
mermaidToImage
- Parameters:
mmd- The Mermaid as plain text.ext- The output file extension.- Returns:
- The image as a file.
- Throws:
IOException
-
mermaidToImage
- Parameters:
mmd- The Mermaid file.ext- The output file extension.- Returns:
- The path to the output file.
- Throws:
IOException- If invoking the CLI tool goes wrong.
-
mermaid
-