Package org.apache.maven.model
Class Extension
- java.lang.Object
-
- 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
Constructors Constructor Description Extension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
setOtherLocation(Object key, InputLocation location)
void
setVersion(String version)
Set the version of the 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
-
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 interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
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
- a artifactId object.
-
setGroupId
public void setGroupId(String groupId)
Set the group ID of the extension's artifact.- Parameters:
groupId
- a groupId object.
-
setVersion
public void setVersion(String version)
Set the version of the extension.- Parameters:
version
- a version object.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
-