|
|||||||||
| 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.Packaging |
| Field Summary | |
|---|---|
protected java.lang.String |
acceptedXmiTypes
Liste des types de modeles acceptés séparés par des vigules. |
protected java.io.File |
extraClassPathDirectory
An extra directory to be added to the classpath. |
protected java.lang.String |
extractedPackages
Nom du paquetage à généré |
protected java.lang.String |
fullPackagePath
Nom du paquetage pour les fichiers générés |
protected java.lang.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 class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Xmi2Model()
|
|
| Method Summary | |
|---|---|
protected void |
actionXsl(java.io.File dir,
java.util.List<java.io.File> files,
javax.xml.transform.TransformerFactory factory,
java.lang.ClassLoader fixedClassLoader,
java.lang.String[] acceptedSuffixes)
|
void |
doAction()
|
protected java.lang.ClassLoader |
fixClassLoader()
Prepare le classLoader a utiliser dans le generateur. |
protected java.lang.String[] |
getAcceptedTypesAsArray()
Look for the types declared in property "acceptedXmiTypes", split it on ',' and check for the leading '.'. |
protected abstract java.lang.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 java.lang.String |
getStyleSheet(java.io.File model)
Get style sheet. |
protected java.lang.String[] |
getSuffixPattern(java.lang.String prefix)
|
protected javax.xml.transform.URIResolver |
getUriResolver(java.io.File model,
java.lang.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, checkPackaging, checkResource, checkRunOnceDone, copyFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, 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 java.lang.String fullPackagePath
protected java.lang.String extractedPackages
protected java.lang.String acceptedXmiTypes
protected java.lang.String resolver
protected java.io.File extraClassPathDirectory
| Constructor Detail |
|---|
public Xmi2Model()
| Method Detail |
|---|
protected abstract java.lang.String getExtension()
protected abstract java.lang.String getStyleSheet(java.io.File model)
model - the model file used to determine the stylesheet to use
public void doAction()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doAction in class org.nuiton.plugin.AbstractPluginorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected 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 java.lang.String[] getSuffixPattern(java.lang.String prefix)
protected void actionXsl(java.io.File dir,
java.util.List<java.io.File> files,
javax.xml.transform.TransformerFactory factory,
java.lang.ClassLoader fixedClassLoader,
java.lang.String[] acceptedSuffixes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String[] getAcceptedTypesAsArray()
protected javax.xml.transform.URIResolver getUriResolver(java.io.File model,
java.lang.ClassLoader cl)
protected java.lang.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 | ||||||||