@Experimental @Generated @ThreadSafe @Immutable public class Relocation extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Relocation.Builder
Builder class used to create Relocation instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getArtifactId()
The new artifact ID of the artifact.
|
String |
getGroupId()
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()
An additional message to show the user about the move, such as the reason.
|
String |
getVersion()
The new version of the artifact.
|
static Relocation.Builder |
newBuilder()
Creates a new
Relocation builder instance. |
static Relocation.Builder |
newBuilder(boolean withDefaults)
Creates a new
Relocation builder instance using default values or not. |
static Relocation.Builder |
newBuilder(Relocation from)
Creates a new
Relocation builder instance using the specified object as a basis. |
static Relocation.Builder |
newBuilder(Relocation from,
boolean forceCopy)
Creates a new
Relocation builder instance using the specified object as a basis. |
static Relocation |
newInstance()
Creates a new
Relocation instance. |
static Relocation |
newInstance(boolean withDefaults)
Creates a new
Relocation instance using default values or not. |
Relocation.Builder |
with()
Creates a new builder with this object as the basis.
|
Relocation |
withArtifactId(String artifactId)
Creates a new
Relocation instance using the specified artifactId. |
Relocation |
withGroupId(String groupId)
Creates a new
Relocation instance using the specified groupId. |
Relocation |
withMessage(String message)
Creates a new
Relocation instance using the specified message. |
Relocation |
withVersion(String version)
Creates a new
Relocation instance using the specified version. |
public String getGroupId()
String
public String getArtifactId()
String
public String getVersion()
String
public String getMessage()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public Relocation.Builder with()
Builder
@Nonnull public Relocation withGroupId(String groupId)
Relocation
instance using the specified groupId.groupId
- the new String
to useRelocation
with the specified groupId@Nonnull public Relocation withArtifactId(String artifactId)
Relocation
instance using the specified artifactId.artifactId
- the new String
to useRelocation
with the specified artifactId@Nonnull public Relocation withVersion(String version)
Relocation
instance using the specified version.version
- the new String
to useRelocation
with the specified version@Nonnull public Relocation withMessage(String message)
Relocation
instance using the specified message.message
- the new String
to useRelocation
with the specified message@Nonnull public static Relocation newInstance()
Relocation
instance.
Equivalent to newInstance( true )
.Relocation
newInstance(boolean)
@Nonnull public static Relocation newInstance(boolean withDefaults)
Relocation
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedRelocation
@Nonnull public static Relocation.Builder newBuilder()
Relocation
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Relocation.Builder newBuilder(boolean withDefaults)
Relocation
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Relocation.Builder newBuilder(Relocation from)
Relocation
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Relocation
instance to use as a basisBuilder
@Nonnull public static Relocation.Builder newBuilder(Relocation from, boolean forceCopy)
Relocation
builder instance using the specified object as a basis.from
- the Relocation
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.