Package org.apache.maven.model
Class Relocation
- java.lang.Object
-
- org.apache.maven.model.Relocation
-
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class Relocation extends Object implements Serializable, 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
-
-
Constructor Summary
Constructors Constructor Description Relocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Relocation
clone()
Method clone.String
getArtifactId()
Get the new artifact ID of the artifact.String
getGroupId()
Get the group ID the artifact has moved to.InputLocation
getLocation(Object key)
Gets the location of the specified field in the input source.String
getMessage()
Get an additional message to show the user about the move, such as the reason.String
getVersion()
Get the new version of the artifact.void
setArtifactId(String artifactId)
Set the new artifact ID of the artifact.void
setGroupId(String groupId)
Set the group ID the artifact has moved to.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setMessage(String message)
Set an additional message to show the user about the move, such as the reason.void
setOtherLocation(Object key, InputLocation location)
void
setVersion(String version)
Set the new version of the artifact.
-
-
-
Method Detail
-
clone
public Relocation clone()
Method clone.
-
getArtifactId
public String getArtifactId()
Get the new artifact ID of the artifact.- Returns:
- String
-
getGroupId
public String getGroupId()
Get the group ID the artifact has moved to.- Returns:
- String
-
getLocation
public InputLocation getLocation(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
- a key object.- Returns:
- InputLocation
-
getMessage
public String getMessage()
Get an additional message to show the user about the move, such as the reason.- Returns:
- String
-
setLocation
public void setLocation(Object key, InputLocation location)
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
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
getVersion
public String getVersion()
Get the new version of the artifact.- Returns:
- String
-
setArtifactId
public void setArtifactId(String artifactId)
Set the new artifact ID of the artifact.- Parameters:
artifactId
- a artifactId object.
-
setGroupId
public void setGroupId(String groupId)
Set the group ID the artifact has moved to.- Parameters:
groupId
- a groupId object.
-
setMessage
public void setMessage(String message)
Set an additional message to show the user about the move, such as the reason.- Parameters:
message
- a message object.
-
setVersion
public void setVersion(String version)
Set the new version of the artifact.- Parameters:
version
- a version object.
-
-