Package org.apache.maven.model
Class Relocation
- java.lang.Object
-
- org.apache.maven.model.Relocation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Relocation extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Describes where an artifact has moved to. If any of the values are omitted, it is assumed to be the same as it was before.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringartifactIdThe new artifact ID of the artifact.private InputLocationartifactIdLocationField artifactIdLocation.private java.lang.StringgroupIdThe group ID the artifact has moved to.private InputLocationgroupIdLocationField groupIdLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringmessageAn additional message to show the user about the move, such as the reason.private InputLocationmessageLocationField messageLocation.private java.lang.StringversionThe new version of the artifact.private InputLocationversionLocationField versionLocation.
-
Constructor Summary
Constructors Constructor Description Relocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Relocationclone()Method clone.java.lang.StringgetArtifactId()Get the new artifact ID of the artifact.java.lang.StringgetGroupId()Get the group ID the artifact has moved to.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetMessage()Get an additional message to show the user about the move, such as the reason.private InputLocationgetOtherLocation(java.lang.Object key)java.lang.StringgetVersion()Get the new version of the artifact.voidsetArtifactId(java.lang.String artifactId)Set the new artifact ID of the artifact.voidsetGroupId(java.lang.String groupId)Set the group ID the artifact has moved to.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetMessage(java.lang.String message)Set an additional message to show the user about the move, such as the reason.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetVersion(java.lang.String version)Set the new version of the artifact.
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
The group ID the artifact has moved to.
-
artifactId
private java.lang.String artifactId
The new artifact ID of the artifact.
-
version
private java.lang.String version
The new version of the artifact.
-
message
private java.lang.String message
An additional message to show the user about the move, such as the reason.
-
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.
-
messageLocation
private InputLocation messageLocation
Field messageLocation.
-
-
Method Detail
-
clone
public Relocation clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Relocation
-
getArtifactId
public java.lang.String getArtifactId()
Get the new artifact ID of the artifact.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get the group ID the artifact has moved to.- 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-- Returns:
- InputLocation
-
getMessage
public java.lang.String getMessage()
Get an additional message to show the user about the move, such as the reason.- Returns:
- String
-
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-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 new version of the artifact.- Returns:
- String
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the new artifact ID of the artifact.- Parameters:
artifactId-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the group ID the artifact has moved to.- Parameters:
groupId-
-
setMessage
public void setMessage(java.lang.String message)
Set an additional message to show the user about the move, such as the reason.- Parameters:
message-
-
setVersion
public void setVersion(java.lang.String version)
Set the new version of the artifact.- Parameters:
version-
-
-