Package org.apache.maven.model
Class Extension
java.lang.Object
org.apache.maven.model.Extension
- All Implemented Interfaces:
Serializable
Describes a build extension to utilise.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> boolean
equal
(T obj1, T obj2) boolean
Get the artifact ID of the extension.Get the group ID of the extension's artifact.getKey()
Gets the key of the extension.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.
-
Field Details
-
groupId
The group ID of the extension's artifact. -
artifactId
The artifact ID of the extension. -
version
The version of the extension.
-
-
Constructor Details
-
Extension
public Extension()
-
-
Method Details
-
getArtifactId
Get the artifact ID of the extension.- Returns:
- String
-
getGroupId
Get the group ID of the extension's artifact.- Returns:
- String
-
getVersion
Get the version of the extension.- Returns:
- String
-
setArtifactId
Set the artifact ID of the extension.- Parameters:
artifactId
- a artifactId object.
-
setGroupId
Set the group ID of the extension's artifact.- Parameters:
groupId
- a groupId object.
-
setVersion
Set the version of the extension.- Parameters:
version
- a version object.
-
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
-
equal
private static <T> boolean equal(T obj1, T obj2) -
hashCode
public int hashCode()
-