org.nuiton.eugene.plugin.writer
Class XmiToObjectModelFileWriter
java.lang.Object
org.nuiton.eugene.AbstractModelFileWriter
org.nuiton.eugene.plugin.writer.BaseModelFileWriter
org.nuiton.eugene.plugin.writer.BaseXmiToModelFileWriter
org.nuiton.eugene.plugin.writer.XmiToObjectModelFileWriter
- All Implemented Interfaces:
- ModelFileWriter
public class XmiToObjectModelFileWriter
- extends BaseXmiToModelFileWriter
This ModelFileWriter transform xmi files to object model file.
- Since:
- 2.0.0
- Author:
- tchemit
- Plexus component:
- role-hint:
- "xmi2objectmodel"
- description:
- "xmi
- role:
- "org.nuiton.eugene.ModelFileWriter"
|
|
Method Summary |
<M extends Model>
boolean |
|
acceptModel(java.lang.Class<M> modelType)
|
java.lang.String |
getExtension()
Get extension. |
protected java.lang.String |
getStyleSheet(java.io.File model)
Get style sheet. |
protected java.lang.String |
getXmiVersion(java.io.File xmiFile)
Try to find xmi version on a file. |
| Methods inherited from class org.nuiton.eugene.plugin.writer.BaseXmiToModelFileWriter |
acceptInclude, actionXsl, generate, getDefaultIncludes, getDefaultInputDirectory, getDefaultOutputDirectory, getExtractedPackages, getFullPackagePath, getInputProtocol, getOutputProtocol, getResolver, getTransformerFactory, getUriResolver |
| Methods inherited from class org.nuiton.eugene.AbstractModelFileWriter |
addEntry, clear, generate, getConfiguration, getEntries, getInputProtocol, getNextWriter, getOutputDirectory, getPreviousWriter, getProperty, setNextWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMI_FILE_FILTER
public static final java.lang.String[] XMI_FILE_FILTER
XmiToObjectModelFileWriter
public XmiToObjectModelFileWriter()
acceptModel
public <M extends Model> boolean acceptModel(java.lang.Class<M> modelType)
getExtension
public java.lang.String getExtension()
- Description copied from class:
BaseXmiToModelFileWriter
- Get extension.
- Specified by:
getExtension in class BaseXmiToModelFileWriter
- Returns:
- the extension
getStyleSheet
protected java.lang.String getStyleSheet(java.io.File model)
- Description copied from class:
BaseXmiToModelFileWriter
- Get style sheet.
- Specified by:
getStyleSheet in class BaseXmiToModelFileWriter
- Parameters:
model - the model file used to determine the stylesheet to use
- Returns:
- the stylesheet name
getXmiVersion
protected java.lang.String getXmiVersion(java.io.File xmiFile)
- Try to find xmi version on a file.
- Parameters:
xmiFile - file to inspect
- Returns:
- version or null if version can't have been found
Copyright © 2006-2009 CodeLutin. All Rights Reserved.