org.apache.maven.model
Class Extension

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

public class Extension
extends Object
implements Serializable, Cloneable, InputLocationTracker

Describes a build extension to utilise.

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

Constructor Summary
Extension()
           
 
Method Summary
 Extension clone()
          Method clone.
 boolean equals(Object o)
           
 String getArtifactId()
          Get the artifact ID of the extension.
 String getGroupId()
          Get the group ID of the extension's artifact.
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 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 setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 void setVersion(String version)
          Set the version of the extension.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extension

public Extension()
Method Detail

clone

public Extension clone()
Method clone.

Overrides:
clone in class Object
Returns:
Extension

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

getLocation

public InputLocation getLocation(Object key)
Description copied from interface: InputLocationTracker
Gets the location of the specified field in the input source.

Specified by:
getLocation in interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

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 -

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -

setVersion

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

Parameters:
version -

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–2013 The Apache Software Foundation. All rights reserved.