Class MavenProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.MavenProtocPluginBean
- All Implemented Interfaces:
MavenArtifact, MavenProtocPlugin, ProtocPlugin
@Generated(from="MavenProtocPlugin",
generator="Modifiables")
@Generated({"Modifiables.generator","MavenProtocPlugin"})
public class MavenProtocPluginBean
extends Object
implements 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
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 ofMavenProtocPluginBeanthat have equal attribute values.from(MavenArtifact instance) Fill this modifiable instance with attribute values from the providedMavenArtifactinstance.from(MavenProtocPlugin instance) Fill this modifiable instance with attribute values from the providedMavenProtocPlugininstance.from(MavenProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedMavenProtocPlugininstance.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:groupId,artifactId,type,classifier,options,outputDirectory,registerAsCompilationRoot,order,skip,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.Converts toImmutableMavenProtocPlugin.toString()Generates a string representation of thisMavenProtocPlugin.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.
-
Constructor Details
-
MavenProtocPluginBean
public MavenProtocPluginBean()
-
-
Method Details
-
getGroupId
- Specified by:
getGroupIdin interfaceMavenArtifact- Returns:
- value of
groupIdattribute, may benull
-
getArtifactId
- Specified by:
getArtifactIdin interfaceMavenArtifact- Returns:
- value of
artifactIdattribute, may benull
-
getType
- Specified by:
getTypein interfaceMavenArtifact- Returns:
- value of
typeattribute, may benull
-
getClassifier
- Specified by:
getClassifierin interfaceMavenArtifact- Returns:
- value of
classifierattribute, may benull
-
getOptions
- Specified by:
getOptionsin interfaceProtocPlugin- Returns:
- value of
optionsattribute, may benull
-
getOutputDirectory
- Specified by:
getOutputDirectoryin interfaceProtocPlugin- Returns:
- value of
outputDirectoryattribute, may benull
-
isRegisterAsCompilationRoot
- Specified by:
isRegisterAsCompilationRootin interfaceProtocPlugin- Returns:
- value of
registerAsCompilationRootattribute, may benull
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceProtocPlugin- Returns:
- assigned or, otherwise, newly computed, not cached value of
orderattribute
-
isSkip
public boolean isSkip()- Specified by:
isSkipin interfaceProtocPlugin- Returns:
- assigned or, otherwise, newly computed, not cached value of
skipattribute
-
getVersion
- Specified by:
getVersionin interfaceMavenArtifact- Specified by:
getVersionin interfaceMavenProtocPlugin- Returns:
- value of
versionattribute, may benull
-
getJvmArgs
- Specified by:
getJvmArgsin interfaceMavenProtocPlugin- Returns:
- modifiable list
jvmArgs
-
getJvmConfigArgs
- Specified by:
getJvmConfigArgsin interfaceMavenProtocPlugin- Returns:
- modifiable list
jvmConfigArgs
-
getMainClass
- Specified by:
getMainClassin interfaceMavenProtocPlugin- 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 providedMavenProtocPlugininstance.- 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 providedMavenArtifactinstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedMavenProtocPlugininstance. 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
-
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
-
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
-
setVersion
-
addJvmArgs
-
addJvmArgs
-
setJvmArgs
-
addAllJvmArgs
-
addJvmConfigArgs
Adds one element tojvmConfigArgslist.- Parameters:
element- The jvmConfigArgs element
-
addJvmConfigArgs
Adds elements tojvmConfigArgslist.- Parameters:
elements- An array of jvmConfigArgs elements
-
setJvmConfigArgs
Sets or replaces all elements forjvmConfigArgslist.- Parameters:
elements- An iterable of jvmConfigArgs elements, can benull
-
addAllJvmConfigArgs
Adds elements tojvmConfigArgslist.- Parameters:
elements- An iterable of jvmConfigArgs elements
-
setMainClass
-
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
-
toImmutable
Converts toImmutableMavenProtocPlugin.- Returns:
- An immutable instance of MavenProtocPlugin
-
equals
-
hashCode
-
toString
-