Class MavenExclusionBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenExclusionBean
- All Implemented Interfaces:
MavenExclusion
@Generated({"Modifiables.generator","MavenExclusion"})
public class MavenExclusionBean
extends Object
implements MavenExclusion
A modifiable implementation of the
MavenExclusion
type.
Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.
MavenExclusionBean is not thread-safe
-
Field Summary
Fields inherited from interface io.github.ascopes.protobufmavenplugin.dependencies.MavenExclusion
WILDCARD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returnstrue
if the required attributeartifactId
is set.final boolean
Returnstrue
if the default attributeclassifier
is set.void
clear()
Clears the object by setting all attributes to their initial values.boolean
This instance is equal to all instances ofMavenExclusionBean
that have equal attribute values.from
(MavenExclusion instance) Fill this modifiable instance with attribute values from the providedMavenExclusion
instance.from
(MavenExclusionBean instance) Fill this modifiable instance with attribute values from the providedMavenExclusion
instance.Get the artifact ID.Get the artifact classifier.Get the group ID.getType()
Get the artifact type.final boolean
Returnstrue
if the required attributegroupId
is set.int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,classifier
,type
.final boolean
Returnstrue
if all required attributes are set, indicating that the object is initialized.void
setArtifactId
(String artifactId) Assigns a value to theartifactId
attribute.void
setClassifier
(String classifier) Assigns a value to theclassifier
attribute.void
setGroupId
(String groupId) Assigns a value to thegroupId
attribute.void
Assigns a value to thetype
attribute.toString()
Generates a string representation of thisMavenExclusion
.final boolean
Returnstrue
if the default attributetype
is set.final void
Reset an attribute to its initial value.final void
Reset an attribute to its initial value.final void
Reset an attribute to its initial value.final void
Reset an attribute to its initial value.
-
Constructor Details
-
MavenExclusionBean
public MavenExclusionBean()
-
-
Method Details
-
getGroupId
Get the group ID.- Specified by:
getGroupId
in interfaceMavenExclusion
- Returns:
- the group ID.
-
getArtifactId
Get the artifact ID.- Specified by:
getArtifactId
in interfaceMavenExclusion
- Returns:
- the artifact ID.
-
getClassifier
Get the artifact classifier.- Specified by:
getClassifier
in interfaceMavenExclusion
- Returns:
- the classifier, or
*
by default which implies a match for any classifier.
-
getType
Get the artifact type.- Specified by:
getType
in interfaceMavenExclusion
- Returns:
- the type, or
*
by default which implies a match for any type.
-
clear
public void clear()Clears the object by setting all attributes to their initial values. -
from
Fill this modifiable instance with attribute values from the providedMavenExclusion
instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).- Parameters:
instance
- The instance from which to copy values- Returns:
this
for use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedMavenExclusion
instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).- Parameters:
instance
- The instance from which to copy values- Returns:
this
for use in a chained invocation
-
setGroupId
Assigns a value to thegroupId
attribute.- Parameters:
groupId
- The value for groupId, can benull
-
setArtifactId
Assigns a value to theartifactId
attribute.- Parameters:
artifactId
- The value for artifactId, can benull
-
setClassifier
Assigns a value to theclassifier
attribute.If not set, this attribute will have a default value returned by the initializer of
classifier
.- Parameters:
classifier
- The value for classifier
-
setType
Assigns a value to thetype
attribute.If not set, this attribute will have a default value returned by the initializer of
type
.- Parameters:
type
- The value for type
-
groupIdIsSet
public final boolean groupIdIsSet()Returnstrue
if the required attributegroupId
is set.- Returns:
true
if set
-
artifactIdIsSet
public final boolean artifactIdIsSet()Returnstrue
if the required attributeartifactId
is set.- Returns:
true
if set
-
classifierIsSet
public final boolean classifierIsSet()Returnstrue
if the default attributeclassifier
is set.- Returns:
true
if set
-
typeIsSet
public final boolean typeIsSet()Returnstrue
if the default attributetype
is set.- Returns:
true
if set
-
unsetGroupId
public final void unsetGroupId()Reset an attribute to its initial value. -
unsetArtifactId
public final void unsetArtifactId()Reset an attribute to its initial value. -
unsetClassifier
public final void unsetClassifier()Reset an attribute to its initial value. -
unsetType
public final void unsetType()Reset an attribute to its initial value. -
isInitialized
public final boolean isInitialized()Returnstrue
if all required attributes are set, indicating that the object is initialized.- Returns:
true
if set
-
equals
-
hashCode
-
toString
-