org.apache.torque.mojo
Class AbstractMorphSingleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.torque.mojo.BaseMojo
          extended by org.apache.torque.mojo.AbstractMorphSingleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MorphSchemaMojo, MorphVersionTableMojo

public abstract class AbstractMorphSingleMojo
extends BaseMojo

Common logic for morphing one file to another file


Field Summary
 
Fields inherited from class org.apache.torque.mojo.BaseMojo
FS, SKIP_PACKAGING_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractMorphSingleMojo()
           
 
Method Summary
protected  void executeMojo()
           
 String getArtifactId()
           
protected abstract  Morpher getMorpher(MorphRequest request, String artifactId)
           
 File getNewFile()
           
 File getOldFile()
           
protected  boolean isMorphNeeded()
           
 void setArtifactId(String artifactId)
           
 void setNewFile(File newFile)
           
 void setOldFile(File oldFile)
           
protected  boolean skipMojo()
          Add logic to the basic skip() method for skipping based on a morph being needed
 
Methods inherited from class org.apache.torque.mojo.BaseMojo
afterExecution, beforeExecution, execute, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, isStartMavenLogger, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, setStartMavenLogger
 
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

AbstractMorphSingleMojo

public AbstractMorphSingleMojo()
Method Detail

skipMojo

protected boolean skipMojo()
Add logic to the basic skip() method for skipping based on a morph being needed

Overrides:
skipMojo in class BaseMojo
Returns:
true if the mojo execution should be skipped.

isMorphNeeded

protected boolean isMorphNeeded()

getMorpher

protected abstract Morpher getMorpher(MorphRequest request,
                                      String artifactId)

executeMojo

protected void executeMojo()
                    throws org.apache.maven.plugin.MojoExecutionException
Specified by:
executeMojo in class BaseMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getNewFile

public File getNewFile()

setNewFile

public void setNewFile(File newFile)

getOldFile

public File getOldFile()

setOldFile

public void setOldFile(File oldFile)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.