Class MavenProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPluginBean
- All Implemented Interfaces:
MavenArtifact
,ProtocPlugin
@Generated({"Modifiables.generator","MavenProtocPlugin"})
public class MavenProtocPluginBean
extends MavenProtocPlugin
A modifiable implementation of the
MavenProtocPlugin
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.
MavenProtocPluginBean is not thread-safe
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returnstrue
if the required attributeartifactId
is set.void
clear()
Clears the object by setting all attributes to their initial values.boolean
This instance is equal to all instances ofMavenProtocPluginBean
that have equal attribute values.from
(MavenArtifact instance) Fill this modifiable instance with attribute values from the providedMavenArtifact
instance.from
(MavenProtocPlugin instance) Fill this modifiable instance with attribute values from the providedMavenProtocPlugin
instance.from
(MavenProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedMavenProtocPlugin
instance.from
(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugin
instance.@Nullable String
@Nullable DependencyResolutionDepth
@Nullable String
int
getOrder()
@Nullable String
getType()
final boolean
Returnstrue
if the required attributegroupId
is set.int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
,type
,classifier
,options
,order
,isSkip
,dependencyResolutionDepth
.final boolean
Returnstrue
if all required attributes are set, indicating that the object is initialized.boolean
isSkip()
final boolean
Returnstrue
if the default attributeisSkip
is set.final boolean
Returnstrue
if the default attributeorder
is set.void
setArtifactId
(String artifactId) Assigns a value to theartifactId
attribute.void
setClassifier
(@Nullable String classifier) Assigns a value to theclassifier
attribute.void
setGroupId
(String groupId) Assigns a value to thegroupId
attribute.void
setIsSkip
(boolean isSkip) Assigns a value to theisSkip
attribute.void
setOptions
(@Nullable String options) Assigns a value to theoptions
attribute.void
setOrder
(int order) Assigns a value to theorder
attribute.void
Assigns a value to thetype
attribute.void
setVersion
(String version) Assigns a value to theversion
attribute.Converts toImmutableMavenProtocPlugin
.toString()
Generates a string representation of thisMavenProtocPlugin
.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.final void
Reset an attribute to its initial value.final boolean
Returnstrue
if the required attributeversion
is set.
-
Constructor Details
-
MavenProtocPluginBean
public MavenProtocPluginBean()
-
-
Method Details
-
getGroupId
- Returns:
- value of
groupId
attribute, may benull
-
getArtifactId
- Returns:
- value of
artifactId
attribute, may benull
-
getVersion
- Returns:
- value of
version
attribute, may benull
-
getType
- Returns:
- value of
type
attribute, may benull
-
getClassifier
- Returns:
- value of
classifier
attribute, may benull
-
getOptions
- Returns:
- value of
options
attribute, may benull
-
getOrder
public int getOrder()- Returns:
- assigned or, otherwise, newly computed, not cached value of
order
attribute
-
isSkip
public boolean isSkip()- Returns:
- assigned or, otherwise, newly computed, not cached value of
isSkip
attribute
-
getDependencyResolutionDepth
- Specified by:
getDependencyResolutionDepth
in interfaceMavenArtifact
- Overrides:
getDependencyResolutionDepth
in classMavenProtocPlugin
- Returns:
- newly computed, not cached value of
dependencyResolutionDepth
attribute
-
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 providedMavenProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedMavenArtifact
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedMavenProtocPlugin
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
-
setArtifactId
Assigns a value to theartifactId
attribute.- Parameters:
artifactId
- The value for artifactId, can benull
-
setVersion
-
setType
-
setClassifier
Assigns a value to theclassifier
attribute.- Parameters:
classifier
- The value for classifier, can benull
-
setOptions
-
setOrder
-
setIsSkip
-
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
-
versionIsSet
public final boolean versionIsSet()Returnstrue
if the required attributeversion
is set.- Returns:
true
if set
-
orderIsSet
public final boolean orderIsSet()Returnstrue
if the default attributeorder
is set.- Returns:
true
if set
-
isSkipIsSet
public final boolean isSkipIsSet()Returnstrue
if the default attributeisSkip
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. -
unsetVersion
public final void unsetVersion()Reset an attribute to its initial value. -
unsetOrder
public final void unsetOrder()Reset an attribute to its initial value. -
unsetIsSkip
public final void unsetIsSkip()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
-
toImmutable
Converts toImmutableMavenProtocPlugin
.- Returns:
- An immutable instance of MavenProtocPlugin
-
equals
-
hashCode
-
toString
-