org.apache.maven.plugin.descriptor
Class PluginDescriptor

java.lang.Object
  extended by org.codehaus.plexus.component.repository.ComponentSetDescriptor
      extended by org.apache.maven.plugin.descriptor.PluginDescriptor

public class PluginDescriptor
extends org.codehaus.plexus.component.repository.ComponentSetDescriptor

Version:
$Id: PluginDescriptor.java 743587 2009-02-12 01:32:50Z jdcasey $
Author:
Jason van Zyl

Constructor Summary
PluginDescriptor()
           
 
Method Summary
 void addMojo(MojoDescriptor mojoDescriptor)
           
static String constructPluginKey(String groupId, String artifactId, String version)
           
 boolean equals(Object object)
           
 String getArtifactId()
           
 Map getArtifactMap()
           
 List getArtifacts()
           
 org.codehaus.classworlds.ClassRealm getClassRealm()
           
static String getDefaultPluginArtifactId(String id)
           
static String getDefaultPluginGroupId()
           
 String getDescription()
           
 String getGoalPrefix()
           
static String getGoalPrefixFromArtifactId(String artifactId)
          Parse maven-...
 String getGroupId()
           
 String getId()
           
 Set getIntroducedDependencyArtifacts()
           
 Lifecycle getLifecycleMapping(String lifecycle)
           
 MojoDescriptor getMojo(String goal)
           
 List getMojos()
           
 String getName()
           
 Artifact getPluginArtifact()
           
 String getPluginLookupKey()
           
 String getSource()
           
 String getVersion()
           
 int hashCode()
           
 boolean isInheritedByDefault()
           
 void setArtifactId(String artifactId)
           
 void setArtifacts(List artifacts)
           
 void setClassRealm(org.codehaus.classworlds.ClassRealm classRealm)
           
 void setDescription(String description)
           
 void setGoalPrefix(String goalPrefix)
           
 void setGroupId(String groupId)
           
 void setInheritedByDefault(boolean inheritedByDefault)
           
 void setIntroducedDependencyArtifacts(Set introducedDependencyArtifacts)
           
 void setName(String name)
           
 void setPluginArtifact(Artifact pluginArtifact)
           
 void setSource(String source)
           
 void setVersion(String version)
           
 
Methods inherited from class org.codehaus.plexus.component.repository.ComponentSetDescriptor
addComponentDescriptor, addDependency, getComponents, getDependencies, isIsolatedRealm, setComponents, setDependencies, setId, setIsolatedRealm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginDescriptor

public PluginDescriptor()
Method Detail

getMojos

public List getMojos()

addMojo

public void addMojo(MojoDescriptor mojoDescriptor)
             throws DuplicateMojoDescriptorException
Throws:
DuplicateMojoDescriptorException

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

constructPluginKey

public static String constructPluginKey(String groupId,
                                        String artifactId,
                                        String version)

getPluginLookupKey

public String getPluginLookupKey()

getId

public String getId()
Overrides:
getId in class org.codehaus.plexus.component.repository.ComponentSetDescriptor

getDefaultPluginArtifactId

public static String getDefaultPluginArtifactId(String id)

getDefaultPluginGroupId

public static String getDefaultPluginGroupId()

getGoalPrefixFromArtifactId

public static String getGoalPrefixFromArtifactId(String artifactId)
Parse maven-...-plugin.


getGoalPrefix

public String getGoalPrefix()

setGoalPrefix

public void setGoalPrefix(String goalPrefix)

setVersion

public void setVersion(String version)

getVersion

public String getVersion()

setSource

public void setSource(String source)

getSource

public String getSource()

isInheritedByDefault

public boolean isInheritedByDefault()

setInheritedByDefault

public void setInheritedByDefault(boolean inheritedByDefault)

getArtifacts

public List getArtifacts()

setArtifacts

public void setArtifacts(List artifacts)

getArtifactMap

public Map getArtifactMap()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getMojo

public MojoDescriptor getMojo(String goal)

getLifecycleMapping

public Lifecycle getLifecycleMapping(String lifecycle)
                              throws IOException,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

setClassRealm

public void setClassRealm(org.codehaus.classworlds.ClassRealm classRealm)

getClassRealm

public org.codehaus.classworlds.ClassRealm getClassRealm()

setIntroducedDependencyArtifacts

public void setIntroducedDependencyArtifacts(Set introducedDependencyArtifacts)

getIntroducedDependencyArtifacts

public Set getIntroducedDependencyArtifacts()

setName

public void setName(String name)

getName

public String getName()

setDescription

public void setDescription(String description)

getDescription

public String getDescription()

getPluginArtifact

public Artifact getPluginArtifact()

setPluginArtifact

public void setPluginArtifact(Artifact pluginArtifact)


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.