org.apache.maven.model
Class Extension

java.lang.Object
  extended by org.apache.maven.model.Extension
All Implemented Interfaces:
Serializable

public class Extension
extends Object
implements Serializable

Describes a build extension to utilise.

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

Constructor Summary
Extension()
           
 
Method Summary
 boolean equals(Object o)
           
 String getArtifactId()
          Get the artifact ID of the extension.
 String getGroupId()
          Get the group ID of the extension's artifact.
 String getKey()
          Gets the key of the extension.
 String getVersion()
          Get the version of the extension.
 int hashCode()
           
 void setArtifactId(String artifactId)
          Set the artifact ID of the extension.
 void setGroupId(String groupId)
          Set the group ID of the extension's artifact.
 void setVersion(String version)
          Set the version of the extension.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extension

public Extension()
Method Detail

getArtifactId

public String getArtifactId()
Get the artifact ID of the extension.

Returns:
String

getGroupId

public String getGroupId()
Get the group ID of the extension's artifact.

Returns:
String

getVersion

public String getVersion()
Get the version of the extension.

Returns:
String

setArtifactId

public void setArtifactId(String artifactId)
Set the artifact ID of the extension.

Parameters:
artifactId -

setGroupId

public void setGroupId(String groupId)
Set the group ID of the extension's artifact.

Parameters:
groupId -

setVersion

public void setVersion(String version)
Set the version of the extension.

Parameters:
version -

getKey

public String getKey()
Gets the key of the extension. The key is used to merge extensions inherited from a parent with the extensions of the current project.

Returns:
The key of the extension, i.e. groupId:artifactId.

equals

public boolean equals(Object o)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


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