Package net.sourceforge.plantuml.xmi
Class XmiCucaDiagramCustom<S>
java.lang.Object
net.sourceforge.plantuml.xmi.XmiCucaDiagramCustom<S>
- Type Parameters:
S
- the class of the service type.
- All Implemented Interfaces:
XmlDiagramTransformer
Generic class for managing a custom XMI transformation, using services
provided by external providers via dependency injection.
-
Constructor Summary
ConstructorsConstructorDescriptionXmiCucaDiagramCustom
(Class<S> serviceType, CucaDiagram diagram) Transform a diagram into a custom XMI format, using dependency injection to load the external class responsible for the custom transformation. -
Method Summary
-
Constructor Details
-
XmiCucaDiagramCustom
public XmiCucaDiagramCustom(Class<S> serviceType, CucaDiagram diagram) throws ParserConfigurationException Transform a diagram into a custom XMI format, using dependency injection to load the external class responsible for the custom transformation.- Parameters:
serviceType
- the class of the service type.diagram
- the diagram to convert.- Throws:
ParserConfigurationException
- if the converting fails or the custom provider for the service type is not found.
-
-
Method Details
-
transformerXml
public void transformerXml(OutputStream os) throws TransformerException, ParserConfigurationException - Specified by:
transformerXml
in interfaceXmlDiagramTransformer
- Throws:
TransformerException
ParserConfigurationException
-