Class MavenExclusionBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenExclusionBean
- All Implemented Interfaces:
MavenExclusion
@Generated(from="MavenExclusion",
generator="Modifiables")
@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 MavenExclusion
WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif the required attributeartifactIdis set.final booleanReturnstrueif the default attributeclassifieris set.voidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofMavenExclusionBeanthat have equal attribute values.from(MavenExclusion instance) Fill this modifiable instance with attribute values from the providedMavenExclusioninstance.from(MavenExclusionBean instance) Fill this modifiable instance with attribute values from the providedMavenExclusioninstance.getType()final booleanReturnstrueif the required attributegroupIdis set.inthashCode()Computes a hash code from attributes:groupId,artifactId,classifier,type.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.voidsetArtifactId(String artifactId) Assigns a value to theartifactIdattribute.voidsetClassifier(String classifier) Assigns a value to theclassifierattribute.voidsetGroupId(String groupId) Assigns a value to thegroupIdattribute.voidAssigns a value to thetypeattribute.toString()Generates a string representation of thisMavenExclusion.final booleanReturnstrueif the default attributetypeis set.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.
-
Constructor Details
-
MavenExclusionBean
public MavenExclusionBean()
-
-
Method Details
-
getGroupId
- Specified by:
getGroupIdin interfaceMavenExclusion- Returns:
- value of
groupIdattribute, may benull
-
getArtifactId
- Specified by:
getArtifactIdin interfaceMavenExclusion- Returns:
- value of
artifactIdattribute, may benull
-
getClassifier
- Specified by:
getClassifierin interfaceMavenExclusion- Returns:
- assigned or, otherwise, newly computed, not cached value of
classifierattribute
-
getType
- Specified by:
getTypein interfaceMavenExclusion- Returns:
- assigned or, otherwise, newly computed, not cached value of
typeattribute
-
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 providedMavenExclusioninstance. 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:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedMavenExclusioninstance. 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:
thisfor use in a chained invocation
-
setGroupId
Assigns a value to thegroupIdattribute.- Parameters:
groupId- The value for groupId, can benull
-
setArtifactId
Assigns a value to theartifactIdattribute.- Parameters:
artifactId- The value for artifactId, can benull
-
setClassifier
Assigns a value to theclassifierattribute.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 thetypeattribute.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()Returnstrueif the required attributegroupIdis set.- Returns:
trueif set
-
artifactIdIsSet
public final boolean artifactIdIsSet()Returnstrueif the required attributeartifactIdis set.- Returns:
trueif set
-
classifierIsSet
public final boolean classifierIsSet()Returnstrueif the default attributeclassifieris set.- Returns:
trueif set
-
typeIsSet
public final boolean typeIsSet()Returnstrueif the default attributetypeis set.- Returns:
trueif 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()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
equals
-
hashCode
-
toString
-