Package org.nuiton.eugene.plugin.writer
Class XmiChainedFileWriter
java.lang.Object
org.nuiton.eugene.writer.AbstractChainedFileWriter
org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
org.nuiton.eugene.plugin.writer.XmiChainedFileWriter
- All Implemented Interfaces:
ChainedFileWriter
@Component(role=org.nuiton.eugene.writer.ChainedFileWriter.class, hint="xmi") public class XmiChainedFileWriter extends BaseChainedFileWriter
Implentation pour les writer to type xmi (qui transforme du xmi via xsl
vers du model).
- Since:
- 2.0.0
- Author:
- tchemit
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXmiChainedFileWriter.XmiVersionHandlerSax handler to find xmi version into xmi document. -
Field Summary
Fields Modifier and Type Field Description static StringPROP_EXTRACTED_PACKAGESstatic StringPROP_FULL_PACKAGE_PATHstatic StringPROP_RESOLVERprotected TransformerFactorytransformerFactoryFields inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
authorizedPropertyDescriptions, entries, nextWriter, previousWriter, properties -
Constructor Summary
Constructors Constructor Description XmiChainedFileWriter() -
Method Summary
Methods inherited from class org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
acceptObjectModelOrStateModel, copyResources, getLog, initWriter, setLogMethods inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
addEntry, clear, generate, getAuthorizedPropertyDescriptions, getAuthorizedPropertyNames, getEntries, getExtractDirectory, getInputProtocol, getNextWriter, getOutputDirectory, getPreviousWriter, getProperty, getWriterReport, setNextWriter, setWriterReport
-
Field Details
-
PROP_RESOLVER
- See Also:
- Constant Field Values
-
PROP_FULL_PACKAGE_PATH
- See Also:
- Constant Field Values
-
PROP_EXTRACTED_PACKAGES
- See Also:
- Constant Field Values
-
transformerFactory
-
-
Constructor Details
-
XmiChainedFileWriter
public XmiChainedFileWriter()
-
-
Method Details
-
acceptModel
-
getInputProtocol
-
getOutputProtocol
-
acceptInclude
-
getDefaultIncludes
-
getDefaultInputDirectory
-
getDefaultOutputDirectory
-
getDefaultTestInputDirectory
-
getDefaultTestOutputDirectory
-
getTransformerFactory
-
getFullPackagePath
-
getExtractedPackages
-
getResolver
-
generate
public void generate(ChainedFileWriterConfiguration configuration, File outputDirectory, Map<File,List<File>> filesByRoot, Map<File,List<File>> resourcesByFile) throws IOException- Specified by:
generatein classAbstractChainedFileWriter- Throws:
IOException
-
actionXsl
protected boolean actionXsl(ChainedFileWriterConfiguration configuration, File outputDirectory, File inputDirectory, File file) throws IOException- Throws:
IOException
-
getUriResolver
-
getStyleSheet
-
getXmiVersion
Try to find xmi version on a file.- Parameters:
xmiFile- file to inspect- Returns:
- version or null if version can't have been found
-