|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.eugene.plugin.EugeneAbstractMojo
org.nuiton.eugene.plugin.Xmi2Model
public abstract class Xmi2Model
Converti les fichiers XMI en fichier Model via une transformation XSLT a définir. Class abstraite sans feuille de style ni extension.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected String |
acceptedXmiTypes
Liste des types de modeles acceptés séparés par des vigules. |
protected File |
extraClassPathDirectory
An extra directory to be added to the classpath. |
protected String |
extractedPackages
Nom du paquetage à généré |
protected String |
fullPackagePath
Nom du paquetage pour les fichiers générés |
protected String |
resolver
Nom du resolver a utiliser |
protected org.nuiton.plugin.PluginIOContext |
xmiResources
Les entrées sorties du plugin. |
| Fields inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo |
|---|
encoding, overwrite, project, settings, testPhase, verbose |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Xmi2Model()
|
|
| Method Summary | |
|---|---|
protected void |
actionXsl(File dir,
List<File> files,
TransformerFactory factory,
ClassLoader fixedClassLoader,
String[] acceptedSuffixes)
|
void |
doAction()
|
protected ClassLoader |
fixClassLoader()
Prepare le classLoader a utiliser dans le generateur. |
protected String[] |
getAcceptedTypesAsArray()
Look for the types declared in property "acceptedXmiTypes", split it on ',' and check for the leading '.'. |
protected abstract String |
getExtension()
Get extension. |
protected org.nuiton.plugin.PluginIOContext |
getResources()
Note : l'objet peut etre null si la configuration ne definit
pas la propriété associées dans l'implentation. |
protected abstract String |
getStyleSheet(File model)
Get style sheet. |
protected String[] |
getSuffixPattern(String prefix)
|
protected URIResolver |
getUriResolver(File model,
ClassLoader cl)
|
protected org.nuiton.plugin.PluginIOContext |
initResources()
Initialiser les io du plugins. |
| Methods inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo |
|---|
getProject, init, initResources, isVerbose, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkPackaging, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.nuiton.plugin.PluginIOContext xmiResources
<xmiResources> <input>target/generated-sources/xmi<\input> <output>target/generated-sources/models<\output> </xmiResources>Note: si
EugeneAbstractMojo.testPhase est activée, les valeurs par défaut sont :
<xmiResources> <input>target/generated-sources/xmi<\input> <output>target/generated-sources/test-models<\output> </xmiResources>
protected String fullPackagePath
protected String extractedPackages
protected String acceptedXmiTypes
protected String resolver
protected File extraClassPathDirectory
| Constructor Detail |
|---|
public Xmi2Model()
| Method Detail |
|---|
protected abstract String getExtension()
protected abstract String getStyleSheet(File model)
model - the model file used to determine the stylesheet to use
public void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionprotected org.nuiton.plugin.PluginIOContext getResources()
EugeneAbstractMojonull si la configuration ne definit
pas la propriété associées dans l'implentation.
Dans tous les cas, une fois la methode EugeneAbstractMojo.initResources() appele,
l'objet devrait ne plus être null!
getResources in class EugeneAbstractMojonull si non initialiséprotected org.nuiton.plugin.PluginIOContext initResources()
EugeneAbstractMojo
initResources in class EugeneAbstractMojoprotected String[] getSuffixPattern(String prefix)
protected void actionXsl(File dir,
List<File> files,
TransformerFactory factory,
ClassLoader fixedClassLoader,
String[] acceptedSuffixes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String[] getAcceptedTypesAsArray()
protected URIResolver getUriResolver(File model,
ClassLoader cl)
protected ClassLoader fixClassLoader()
throws org.apache.maven.plugin.MojoExecutionException
extraClassPathDirectory a été renseigné, il est rajouté.
Si des références à des sibling modules, ils seront rajoutés aussi.
org.apache.maven.plugin.MojoExecutionException - if any pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||