Class JvmMavenProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
io.github.ascopes.protobufmavenplugin.plugins.JvmMavenProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.JvmMavenProtocPluginBean
- All Implemented Interfaces:
ProtocPlugin
@Generated(from="JvmMavenProtocPlugin",
generator="Modifiables")
@Generated({"Modifiables.generator","JvmMavenProtocPlugin"})
public class JvmMavenProtocPluginBean
extends JvmMavenProtocPlugin
A modifiable implementation of the
JvmMavenProtocPlugin 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.
JvmMavenProtocPluginBean is not thread-safe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllJvmArgs(@Nullable Iterable<@Nullable String> elements) Adds elements tojvmArgslist.voidaddAllJvmConfigArgs(@Nullable Iterable<@Nullable String> elements) Adds elements tojvmConfigArgslist.final voidaddJvmArgs(@Nullable String... elements) Adds elements tojvmArgslist.voidaddJvmArgs(String element) Adds one element tojvmArgslist.final voidaddJvmConfigArgs(@Nullable String... elements) Adds elements tojvmConfigArgslist.voidaddJvmConfigArgs(String element) Adds one element tojvmConfigArgslist.final booleanReturnstrueif the required attributeartifactIdis set.voidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofJvmMavenProtocPluginBeanthat have equal attribute values.from(MavenArtifact instance) Fill this modifiable instance with attribute values from the providedMavenArtifactinstance.from(JvmMavenProtocPlugin instance) Fill this modifiable instance with attribute values from the providedJvmMavenProtocPlugininstance.from(JvmMavenProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedJvmMavenProtocPlugininstance.from(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugininstance.@Nullable String@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,jvmArgs,jvmConfigArgs,mainClass.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.@Nullable BooleanbooleanisSkip()final booleanReturnstrueif thejvmArgshas not been initialized and will default to an empty list.final booleanReturnstrueif thejvmConfigArgshas not been initialized and will default to an empty list.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.voidsetJvmArgs(@Nullable List<String> elements) Sets or replaces all elements forjvmArgslist.voidsetJvmConfigArgs(@Nullable List<String> elements) Sets or replaces all elements forjvmConfigArgslist.voidsetMainClass(@Nullable String mainClass) Assigns a value to themainClassattribute.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.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 JvmMavenProtocPlugin
toString
-
Constructor Details
-
JvmMavenProtocPluginBean
public JvmMavenProtocPluginBean()
-
-
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 classJvmMavenProtocPlugin- Returns:
- value of
versionattribute, may benull
-
getJvmArgs
- Specified by:
getJvmArgsin classJvmMavenProtocPlugin- Returns:
- modifiable list
jvmArgs
-
getJvmConfigArgs
- Specified by:
getJvmConfigArgsin classJvmMavenProtocPlugin- Returns:
- modifiable list
jvmConfigArgs
-
getMainClass
- Specified by:
getMainClassin classJvmMavenProtocPlugin- Returns:
- value of
mainClassattribute, 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 providedJvmMavenProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedJvmMavenProtocPlugininstance. 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). Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
setOptions
Assigns a value to theoptionsattribute.- Parameters:
options- The value for options, can benull
-
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
public void setOrder(int order) Assigns a value to theorderattribute.If not set, this attribute will have a default value returned by the initializer of
order.- Parameters:
order- The value for order
-
setSkip
public void setSkip(boolean skip) Assigns a value to theskipattribute.If not set, this attribute will have a default value returned by the initializer of
skip.- Parameters:
skip- The value for skip
-
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
-
setType
Assigns a value to thetypeattribute.- Parameters:
type- The value for type, can benull
-
setClassifier
Assigns a value to theclassifierattribute.- Parameters:
classifier- The value for classifier, can benull
-
setVersion
Assigns a value to theversionattribute.- Parameters:
version- The value for version, can benull
-
addJvmArgs
Adds one element tojvmArgslist.- Parameters:
element- The jvmArgs element
-
addJvmArgs
Adds elements tojvmArgslist.- Parameters:
elements- An array of jvmArgs elements
-
setJvmArgs
-
addAllJvmArgs
-
addJvmConfigArgs
Adds one element tojvmConfigArgslist.- Parameters:
element- The jvmConfigArgs element
-
addJvmConfigArgs
Adds elements tojvmConfigArgslist.- Parameters:
elements- An array of jvmConfigArgs elements
-
setJvmConfigArgs
-
addAllJvmConfigArgs
-
setMainClass
Assigns a value to themainClassattribute.- Parameters:
mainClass- The value for mainClass, can benull
-
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
-
jvmArgsIsSet
public final boolean jvmArgsIsSet()Returnstrueif thejvmArgshas not been initialized and will default to an empty list.- Returns:
trueif set
-
jvmConfigArgsIsSet
public final boolean jvmConfigArgsIsSet()Returnstrueif thejvmConfigArgshas not been initialized and will default to an empty list.- 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
-
equals
-
hashCode
-