org.nuiton.eugene.plugin
Class Xmi2ObjectModel

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.eugene.plugin.EugeneAbstractMojo
          extended by org.nuiton.eugene.plugin.Xmi2Model
              extended by org.nuiton.eugene.plugin.Xmi2ObjectModel
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class Xmi2ObjectModel
extends Xmi2Model

Converti les fichiers XMI en fichier ObjectModel


Nested Class Summary
protected  class Xmi2ObjectModel.XmiVersionHandler
          Sax handler to find xmi version into xmi document.
 
Field Summary
 
Fields inherited from class org.nuiton.eugene.plugin.Xmi2Model
acceptedXmiTypes, extraClassPathDirectory, extractedPackages, fullPackagePath, resolver, xmiResources
 
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
Xmi2ObjectModel()
           
 
Method Summary
 void execute()
           
 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.Xmi2Model
actionXsl, fixClassLoader, getAcceptedTypesAsArray, getResources, getSuffixPattern, getUriResolver, initResources
 
Methods inherited from class org.nuiton.eugene.plugin.EugeneAbstractMojo
addUrl, getFile, initResources
 
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
 

Constructor Detail

Xmi2ObjectModel

public Xmi2ObjectModel()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class Xmi2Model
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getExtension

public java.lang.String getExtension()
Description copied from class: Xmi2Model
Get extension.

Specified by:
getExtension in class Xmi2Model
Returns:
the extension

getStyleSheet

protected java.lang.String getStyleSheet(java.io.File model)
Description copied from class: Xmi2Model
Get style sheet.

Specified by:
getStyleSheet in class Xmi2Model
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.