Class BinaryMavenProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
io.github.ascopes.protobufmavenplugin.plugins.BinaryMavenProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.BinaryMavenProtocPluginBean
- All Implemented Interfaces:
ProtocPlugin
@Generated(from="BinaryMavenProtocPlugin",
generator="Modifiables")
@Generated({"Modifiables.generator","BinaryMavenProtocPlugin"})
public class BinaryMavenProtocPluginBean
extends BinaryMavenProtocPlugin
A modifiable implementation of the
BinaryMavenProtocPlugin 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.
BinaryMavenProtocPluginBean is not thread-safe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif the required attributeartifactIdis set.voidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofBinaryMavenProtocPluginBeanthat have equal attribute values.from(MavenArtifact instance) Fill this modifiable instance with attribute values from the providedMavenArtifactinstance.from(BinaryMavenProtocPlugin instance) Fill this modifiable instance with attribute values from the providedBinaryMavenProtocPlugininstance.from(BinaryMavenProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedBinaryMavenProtocPlugininstance.from(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugininstance.@Nullable String@Nullable StringintgetOrder()@Nullable Path@Nullable StringgetType()@NonNull Stringfinal booleanReturnstrueif the required attributegroupIdis set.inthashCode()Computes a hash code from attributes:options,outputDirectory,registerAsCompilationRoot,order,skip,groupId,artifactId,type,classifier,version.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.@Nullable BooleanbooleanisSkip()final booleanReturnstrueif the default attributeorderis set.voidsetArtifactId(String artifactId) Assigns a value to theartifactIdattribute.voidsetClassifier(@Nullable String classifier) Assigns a value to theclassifierattribute.voidsetGroupId(String groupId) Assigns a value to thegroupIdattribute.voidsetOptions(@Nullable String options) Assigns a value to theoptionsattribute.voidsetOrder(int order) Assigns a value to theorderattribute.voidsetOutputDirectory(@Nullable Path outputDirectory) Assigns a value to theoutputDirectoryattribute.voidsetRegisterAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Assigns a value to theregisterAsCompilationRootattribute.voidsetSkip(boolean skip) Assigns a value to theskipattribute.voidAssigns a value to thetypeattribute.voidsetVersion(@NonNull String version) Assigns a value to theversionattribute.final booleanReturnstrueif the default attributeskipis set.Converts toImmutableBinaryMavenProtocPlugin.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.final voidReset an attribute to its initial value.final booleanReturnstrueif the required attributeversionis set.Methods inherited from class BinaryMavenProtocPlugin
toString
-
Constructor Details
-
BinaryMavenProtocPluginBean
public BinaryMavenProtocPluginBean()
-
-
Method Details
-
getOptions
- Returns:
- value of
optionsattribute, may benull
-
getOutputDirectory
- Returns:
- value of
outputDirectoryattribute, may benull
-
isRegisterAsCompilationRoot
- Returns:
- value of
registerAsCompilationRootattribute, may benull
-
getOrder
public int getOrder()- Returns:
- assigned or, otherwise, newly computed, not cached value of
orderattribute
-
isSkip
public boolean isSkip()- Returns:
- assigned or, otherwise, newly computed, not cached value of
skipattribute
-
getGroupId
- Specified by:
getGroupIdin classMavenArtifact- Returns:
- value of
groupIdattribute, may benull
-
getArtifactId
- Specified by:
getArtifactIdin classMavenArtifact- Returns:
- value of
artifactIdattribute, may benull
-
getType
- Specified by:
getTypein classMavenArtifact- Returns:
- value of
typeattribute, may benull
-
getClassifier
- Specified by:
getClassifierin classMavenArtifact- Returns:
- value of
classifierattribute, may benull
-
getVersion
- Specified by:
getVersionin classBinaryMavenProtocPlugin- Returns:
- value of
versionattribute, may benull
-
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 providedMavenArtifactinstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedBinaryMavenProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedBinaryMavenProtocPlugininstance. 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
-
setOptions
-
setOutputDirectory
Assigns a value to theoutputDirectoryattribute.- Parameters:
outputDirectory- The value for outputDirectory, can benull
-
setRegisterAsCompilationRoot
Assigns a value to theregisterAsCompilationRootattribute.- Parameters:
registerAsCompilationRoot- The value for registerAsCompilationRoot, can benull
-
setOrder
-
setSkip
-
setGroupId
-
setArtifactId
Assigns a value to theartifactIdattribute.- Parameters:
artifactId- The value for artifactId, can benull
-
setType
-
setClassifier
Assigns a value to theclassifierattribute.- Parameters:
classifier- The value for classifier, can benull
-
setVersion
-
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
-
versionIsSet
public final boolean versionIsSet()Returnstrueif the required attributeversionis set.- Returns:
trueif set
-
orderIsSet
public final boolean orderIsSet()Returnstrueif the default attributeorderis set.- Returns:
trueif set
-
skipIsSet
public final boolean skipIsSet()Returnstrueif the default attributeskipis 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. -
unsetVersion
public final void unsetVersion()Reset an attribute to its initial value. -
unsetOrder
public final void unsetOrder()Reset an attribute to its initial value. -
unsetSkip
public final void unsetSkip()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
-
toImmutable
Converts toImmutableBinaryMavenProtocPlugin.- Returns:
- An immutable instance of BinaryMavenProtocPlugin
-
equals
-
hashCode
-