Package org.apache.maven.model
Class Extension
- java.lang.Object
-
- org.apache.maven.model.Extension
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Extension extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Describes a build extension to utilise.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Extension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Extensionclone()Method clone.booleanequals(java.lang.Object o)java.lang.StringgetArtifactId()Get the artifact ID of the extension.java.lang.StringgetGroupId()Get the group ID of the extension's artifact.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetVersion()Get the version of the extension.inthashCode()voidsetArtifactId(java.lang.String artifactId)Set the artifact ID of the extension.voidsetGroupId(java.lang.String groupId)Set the group ID of the extension's artifact.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetVersion(java.lang.String version)Set the version of the extension.
-
-
-
Method Detail
-
clone
public Extension clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Extension
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifact ID of the extension.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get the group ID of the extension's artifact.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key- a key object.- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key- a key object.location- a location object.
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key- a key object.location- a location object.
-
getVersion
public java.lang.String getVersion()
Get the version of the extension.- Returns:
- String
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the artifact ID of the extension.- Parameters:
artifactId- a artifactId object.
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the group ID of the extension's artifact.- Parameters:
groupId- a groupId object.
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the extension.- Parameters:
version- a version object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
-