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
public final class XmiCucaDiagramCustom<S> extends java.lang.Object implements XmlDiagramTransformer
Generic class for managing a custom XMI transformation, using services provided by external providers via dependency injection.
-
-
Constructor Summary
Constructors Constructor Description XmiCucaDiagramCustom(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transformerXml(java.io.OutputStream os)
-
-
-
Constructor Detail
-
XmiCucaDiagramCustom
public XmiCucaDiagramCustom(java.lang.Class<S> serviceType, CucaDiagram diagram) throws javax.xml.parsers.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:
javax.xml.parsers.ParserConfigurationException
- if the converting fails or the custom provider for the service type is not found.
-
-
Method Detail
-
transformerXml
public void transformerXml(java.io.OutputStream os) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException
- Specified by:
transformerXml
in interfaceXmlDiagramTransformer
- Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
-
-