Package org.apache.maven.model
Class Extension
java.lang.Object
org.apache.maven.model.Extension
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
Describes a build extension to utilise.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The artifact ID of the extension.private InputLocation
Field artifactIdLocation.private String
The group ID of the extension's artifact.private InputLocation
Field groupIdLocation.private InputLocation
Field location.private Map<Object,
InputLocation> Field locations.private String
The version of the extension.private InputLocation
Field versionLocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.private 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.getLocation
(Object key) Gets the location of the specified field in the input source.private InputLocation
getOtherLocation
(Object key) 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.
-
Field Details
-
groupId
The group ID of the extension's artifact. -
artifactId
The artifact ID of the extension. -
version
The version of the extension. -
locations
Field locations. -
location
Field location. -
groupIdLocation
Field groupIdLocation. -
artifactIdLocation
Field artifactIdLocation. -
versionLocation
Field versionLocation.
-
-
Constructor Details
-
Extension
public Extension()
-
-
Method Details
-
clone
Method clone. -
getArtifactId
Get the artifact ID of the extension.- Returns:
- String
-
getGroupId
Get the group ID of the extension's artifact.- Returns:
- String
-
getLocation
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
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
- Parameters:
key
- a key object.location
- a location object.
-
getOtherLocation
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
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.
-
equals
-
equal
private static <T> boolean equal(T obj1, T obj2) -
hashCode
public int hashCode()
-