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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
artifactId
The artifact ID of the extension.private InputLocation
artifactIdLocation
Field artifactIdLocation.private java.lang.String
groupId
The group ID of the extension's artifact.private InputLocation
groupIdLocation
Field groupIdLocation.private InputLocation
location
Field location.private java.util.Map<java.lang.Object,InputLocation>
locations
Field locations.private java.lang.String
version
The version of the extension.private InputLocation
versionLocation
Field versionLocation.
-
Constructor Summary
Constructors Constructor Description Extension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Extension
clone()
Method clone.private static <T> boolean
equal(T obj1, T obj2)
boolean
equals(java.lang.Object o)
java.lang.String
getArtifactId()
Get the artifact ID of the extension.java.lang.String
getGroupId()
Get the group ID of the extension's artifact.InputLocation
getLocation(java.lang.Object key)
Gets the location of the specified field in the input source.private InputLocation
getOtherLocation(java.lang.Object key)
java.lang.String
getVersion()
Get the version of the extension.int
hashCode()
void
setArtifactId(java.lang.String artifactId)
Set the artifact ID of the extension.void
setGroupId(java.lang.String groupId)
Set the group ID of the extension's artifact.void
setLocation(java.lang.Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(java.lang.Object key, InputLocation location)
void
setVersion(java.lang.String version)
Set the version of the extension.
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
The group ID of the extension's artifact.
-
artifactId
private java.lang.String artifactId
The artifact ID of the extension.
-
version
private java.lang.String version
The version of the extension.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
groupIdLocation
private InputLocation groupIdLocation
Field groupIdLocation.
-
artifactIdLocation
private InputLocation artifactIdLocation
Field artifactIdLocation.
-
versionLocation
private InputLocation versionLocation
Field versionLocation.
-
-
Method Detail
-
clone
public Extension clone()
Method clone.- Overrides:
clone
in 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:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
-location
-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)
- Parameters:
key
-location
-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key
-- Returns:
- InputLocation
-
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
-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the group ID of the extension's artifact.- Parameters:
groupId
-
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the extension.- Parameters:
version
-
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
equal
private static <T> boolean equal(T obj1, T obj2)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-