@Experimental @Generated @ThreadSafe @Immutable public class Exclusion extends Object implements Serializable, InputLocationTracker
<exclusion>
element contains informations required to exclude
an artifact to the project.Modifier and Type | Class and Description |
---|---|
static class |
Exclusion.Builder
Builder class used to create Exclusion instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getArtifactId()
The artifact ID of the project to exclude.
|
String |
getGroupId()
The group ID of the project to exclude.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
static Exclusion.Builder |
newBuilder()
Creates a new
Exclusion builder instance. |
static Exclusion.Builder |
newBuilder(boolean withDefaults)
Creates a new
Exclusion builder instance using default values or not. |
static Exclusion.Builder |
newBuilder(Exclusion from)
Creates a new
Exclusion builder instance using the specified object as a basis. |
static Exclusion.Builder |
newBuilder(Exclusion from,
boolean forceCopy)
Creates a new
Exclusion builder instance using the specified object as a basis. |
static Exclusion |
newInstance()
Creates a new
Exclusion instance. |
static Exclusion |
newInstance(boolean withDefaults)
Creates a new
Exclusion instance using default values or not. |
Exclusion.Builder |
with()
Creates a new builder with this object as the basis.
|
Exclusion |
withArtifactId(String artifactId)
Creates a new
Exclusion instance using the specified artifactId. |
Exclusion |
withGroupId(String groupId)
Creates a new
Exclusion instance using the specified groupId. |
public String getGroupId()
String
public String getArtifactId()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public Exclusion.Builder with()
Builder
@Nonnull public Exclusion withGroupId(String groupId)
Exclusion
instance using the specified groupId.groupId
- the new String
to useExclusion
with the specified groupId@Nonnull public Exclusion withArtifactId(String artifactId)
Exclusion
instance using the specified artifactId.artifactId
- the new String
to useExclusion
with the specified artifactId@Nonnull public static Exclusion newInstance()
Exclusion
instance.
Equivalent to newInstance( true )
.Exclusion
newInstance(boolean)
@Nonnull public static Exclusion newInstance(boolean withDefaults)
Exclusion
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedExclusion
@Nonnull public static Exclusion.Builder newBuilder()
Exclusion
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Exclusion.Builder newBuilder(boolean withDefaults)
Exclusion
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Exclusion.Builder newBuilder(Exclusion from)
Exclusion
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Exclusion
instance to use as a basisBuilder
@Nonnull public static Exclusion.Builder newBuilder(Exclusion from, boolean forceCopy)
Exclusion
builder instance using the specified object as a basis.from
- the Exclusion
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.