org.apache.maven.model
Class Plugin

java.lang.Object
  extended byorg.apache.maven.model.ConfigurationContainer
      extended byorg.apache.maven.model.Plugin
All Implemented Interfaces:
java.io.Serializable

public class Plugin
extends ConfigurationContainer
implements java.io.Serializable

null

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Plugin()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency
 void addExecution(PluginExecution pluginExecution)
          Method addExecution
static java.lang.String constructKey(java.lang.String groupId, java.lang.String artifactId)
           
 void flushExecutionMap()
           
 java.lang.String getArtifactId()
          Get null
 java.util.List getDependencies()
          Method getDependencies
 java.util.List getExecutions()
          Method getExecutions
 java.util.Map getExecutionsAsMap()
           
 java.lang.Object getGoals()
          Get NOT A VALID ELEMENT.
 java.lang.String getGroupId()
          Get null
 java.lang.String getKey()
           
 java.lang.String getModelEncoding()
           
 java.lang.String getVersion()
          Get The version of the plugin to be used.
 boolean isExtensions()
          Get Whether to load Maven extensions (such as packaging and type handlers) from this plugin
 void removeDependency(Dependency dependency)
          Method removeDependency
 void removeExecution(PluginExecution pluginExecution)
          Method removeExecution
 void setArtifactId(java.lang.String artifactId)
          Set null
 void setDependencies(java.util.List dependencies)
          Set Additional dependencies that this project needs to introduce to the plugin
 void setExecutions(java.util.List executions)
          Set Multiple specifications of a set of goals, each having (possibly) different configuration
 void setExtensions(boolean extensions)
          Set Whether to load Maven extensions (such as packaging and type handlers) from this plugin
 void setGoals(java.lang.Object goals)
          Set NOT A VALID ELEMENT.
 void setGroupId(java.lang.String groupId)
          Set null
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setVersion(java.lang.String version)
          Set The version of the plugin to be used.
 
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, isInheritanceApplied, setConfiguration, setInherited, unsetInheritanceApplied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plugin

public Plugin()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency

Parameters:
dependency -

addExecution

public void addExecution(PluginExecution pluginExecution)
Method addExecution

Parameters:
pluginExecution -

getArtifactId

public java.lang.String getArtifactId()
Get null


getDependencies

public java.util.List getDependencies()
Method getDependencies


getExecutions

public java.util.List getExecutions()
Method getExecutions


getGoals

public java.lang.Object getGoals()
Get NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.


getGroupId

public java.lang.String getGroupId()
Get null


getVersion

public java.lang.String getVersion()
Get The version of the plugin to be used.


isExtensions

public boolean isExtensions()
Get Whether to load Maven extensions (such as packaging and type handlers) from this plugin


removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency

Parameters:
dependency -

removeExecution

public void removeExecution(PluginExecution pluginExecution)
Method removeExecution

Parameters:
pluginExecution -

setArtifactId

public void setArtifactId(java.lang.String artifactId)
Set null

Parameters:
artifactId -

setDependencies

public void setDependencies(java.util.List dependencies)
Set Additional dependencies that this project needs to introduce to the plugin

Parameters:
dependencies -

setExecutions

public void setExecutions(java.util.List executions)
Set Multiple specifications of a set of goals, each having (possibly) different configuration

Parameters:
executions -

setExtensions

public void setExtensions(boolean extensions)
Set Whether to load Maven extensions (such as packaging and type handlers) from this plugin

Parameters:
extensions -

setGoals

public void setGoals(java.lang.Object goals)
Set NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.

Parameters:
goals -

setGroupId

public void setGroupId(java.lang.String groupId)
Set null

Parameters:
groupId -

setVersion

public void setVersion(java.lang.String version)
Set The version of the plugin to be used.

Parameters:
version -

flushExecutionMap

public void flushExecutionMap()

getExecutionsAsMap

public java.util.Map getExecutionsAsMap()

getKey

public java.lang.String getKey()

constructKey

public static java.lang.String constructKey(java.lang.String groupId,
                                            java.lang.String artifactId)

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Overrides:
setModelEncoding in class ConfigurationContainer

getModelEncoding

public java.lang.String getModelEncoding()
Overrides:
getModelEncoding in class ConfigurationContainer


Copyright 2006 Apache Software Foundation. All Rights Reserved.