org.apache.maven.model.converter.plugins
Class AbstractPluginConfigurationConverter
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter
- All Implemented Interfaces:
- PluginConfigurationConverter, org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
- PCCChangelog, PCCChanges, PCCCheckstyle, PCCCompiler, PCCJar, PCCJavadoc, PCCJavaNCSS, PCCPmd, PCCSurefire, PCCTaglist, PCCWar
public abstract class AbstractPluginConfigurationConverter
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements PluginConfigurationConverter
- Version:
- $Id: AbstractPluginConfigurationConverter.java 543493 2007-06-01 14:12:28Z evenisse $
- Author:
- Fabrizio Giustina, Dennis Lundberg
Method Summary |
protected void |
addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
java.util.Properties projectProperties,
java.lang.String mavenOneProperty,
java.lang.String mavenTwoElement)
Add a child element to the configuration. |
protected void |
addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
java.lang.String mavenTwoElement,
java.lang.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(java.util.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,
java.util.Properties projectProperties)
|
void |
convertConfiguration(org.apache.maven.model.Model v4Model,
org.apache.maven.model.v3_0_0.Model v3Model,
java.util.Properties projectProperties)
|
abstract java.lang.String |
getArtifactId()
|
java.lang.String |
getGroupId()
|
abstract java.lang.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 |
TYPE_BUILD_PLUGIN
public static final java.lang.String TYPE_BUILD_PLUGIN
- See Also:
- Constant Field Values
TYPE_REPORT_PLUGIN
public static final java.lang.String TYPE_REPORT_PLUGIN
- See Also:
- Constant Field Values
AbstractPluginConfigurationConverter
public AbstractPluginConfigurationConverter()
getArtifactId
public abstract java.lang.String getArtifactId()
getGroupId
public java.lang.String getGroupId()
getType
public abstract java.lang.String getType()
addListeners
public void addListeners(java.util.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,
java.util.Properties projectProperties,
java.lang.String mavenOneProperty,
java.lang.String mavenTwoElement)
- Add a child element to the configuration.
- Parameters:
configuration
- The configuration to add the element toprojectProperties
- The M1 propertiesmavenOneProperty
- The name of the Maven 1 property to convertmavenTwoElement
- The name of the Maven 2 configuration element
addConfigurationChild
protected void addConfigurationChild(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
java.lang.String mavenTwoElement,
java.lang.String value)
- Add a child element to the configuration.
- Parameters:
configuration
- The configuration to add the element tomavenTwoElement
- The name of the Maven 2 configuration elementvalue
- 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,
java.util.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,
java.util.Properties projectProperties)
throws ProjectConverterException
- Throws:
ProjectConverterException
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.