org.apache.maven.model.converter.plugins
Class AbstractPluginConfigurationConverter

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, PluginConfigurationConverter
Direct Known Subclasses:
PCCCastor, PCCChangelog, PCCChanges, PCCCheckstyle, PCCCompiler, PCCJalopy, PCCJar, PCCJavadoc, PCCJavaNCSS, PCCPmd, PCCSurefire, PCCTaglist, PCCWar

public abstract class AbstractPluginConfigurationConverter
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements PluginConfigurationConverter

Version:
$Id: AbstractPluginConfigurationConverter.java 661727 2008-05-30 14:21:49Z bentmann $
Author:
Fabrizio Giustina, Dennis Lundberg

Field Summary
static String TYPE_BUILD_PLUGIN
           
static String TYPE_REPORT_PLUGIN
           
 
Constructor Summary
AbstractPluginConfigurationConverter()
           
 
Method Summary
protected  void addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration, Properties projectProperties, String mavenOneProperty, String mavenTwoElement)
          Add a child element to the configuration.
protected  void addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration, String mavenTwoElement, String value)
          Add a child element to the configuration.
 void addListener(ConverterListener listener)
          Add a listener for all messages sended by the relocator.
 void addListeners(List listeners)
          Add a listeners list for all messages sended by the relocator.
protected abstract  void buildConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model, Properties projectProperties)
           
 void convertConfiguration(org.apache.maven.model.Model v4Model, org.apache.maven.model.v3_0_0.Model v3Model, Properties projectProperties)
           
abstract  String getArtifactId()
           
 String getGroupId()
           
abstract  String getType()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BUILD_PLUGIN

public static final String TYPE_BUILD_PLUGIN
See Also:
Constant Field Values

TYPE_REPORT_PLUGIN

public static final String TYPE_REPORT_PLUGIN
See Also:
Constant Field Values
Constructor Detail

AbstractPluginConfigurationConverter

public AbstractPluginConfigurationConverter()
Method Detail

getArtifactId

public abstract String getArtifactId()

getGroupId

public String getGroupId()

getType

public abstract String getType()

addListeners

public void addListeners(List listeners)
Description copied from interface: PluginConfigurationConverter
Add a listeners list for all messages sended by the relocator.

Specified by:
addListeners in interface PluginConfigurationConverter
Parameters:
listeners - The listeners list that will receive messages

addListener

public void addListener(ConverterListener listener)
Description copied from interface: PluginConfigurationConverter
Add a listener for all messages sended by the relocator.

Specified by:
addListener in interface PluginConfigurationConverter
Parameters:
listener - The listener that will receive messages

addConfigurationChild

protected void addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
                                     Properties projectProperties,
                                     String mavenOneProperty,
                                     String mavenTwoElement)
Add a child element to the configuration.

Parameters:
configuration - The configuration to add the element to
projectProperties - The M1 properties
mavenOneProperty - The name of the Maven 1 property to convert
mavenTwoElement - The name of the Maven 2 configuration element

addConfigurationChild

protected void addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
                                     String mavenTwoElement,
                                     String value)
Add a child element to the configuration.

Parameters:
configuration - The configuration to add the element to
mavenTwoElement - The name of the Maven 2 configuration element
value - Set the value of the element to this

convertConfiguration

public void convertConfiguration(org.apache.maven.model.Model v4Model,
                                 org.apache.maven.model.v3_0_0.Model v3Model,
                                 Properties projectProperties)
                          throws ProjectConverterException
Specified by:
convertConfiguration in interface PluginConfigurationConverter
Throws:
ProjectConverterException

buildConfiguration

protected abstract void buildConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
                                           org.apache.maven.model.v3_0_0.Model v3Model,
                                           Properties projectProperties)
                                    throws ProjectConverterException
Throws:
ProjectConverterException


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.