public class Relocation extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId
The new artifact ID of the artifact.
|
private InputLocation |
artifactIdLocation
Field artifactIdLocation.
|
private java.lang.String |
groupId
The group ID the artifact has moved to.
|
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 |
message
An additional message to show the user about the move, such
as the reason.
|
private InputLocation |
messageLocation
Field messageLocation.
|
private java.lang.String |
version
The new version of the artifact.
|
private InputLocation |
versionLocation
Field versionLocation.
|
Constructor and Description |
---|
Relocation() |
Modifier and Type | Method and Description |
---|---|
Relocation |
clone()
Method clone.
|
java.lang.String |
getArtifactId()
Get the new artifact ID of the artifact.
|
java.lang.String |
getGroupId()
Get the group ID the artifact has moved to.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getMessage()
Get an additional message to show the user about the move,
such as the reason.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
java.lang.String |
getVersion()
Get the new version of the artifact.
|
void |
setArtifactId(java.lang.String artifactId)
Set the new artifact ID of the artifact.
|
void |
setGroupId(java.lang.String groupId)
Set the group ID the artifact has moved to.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setMessage(java.lang.String message)
Set an additional message to show the user about the move,
such as the reason.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setVersion(java.lang.String version)
Set the new version of the artifact.
|
private java.lang.String groupId
private java.lang.String artifactId
private java.lang.String version
private java.lang.String message
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation groupIdLocation
private InputLocation artifactIdLocation
private InputLocation versionLocation
private InputLocation messageLocation
public Relocation clone()
clone
in class java.lang.Object
public java.lang.String getArtifactId()
public java.lang.String getGroupId()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public java.lang.String getMessage()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- location
- private InputLocation getOtherLocation(java.lang.Object key)
key
- public java.lang.String getVersion()
public void setArtifactId(java.lang.String artifactId)
artifactId
- public void setGroupId(java.lang.String groupId)
groupId
- public void setMessage(java.lang.String message)
message
- public void setVersion(java.lang.String version)
version
-