Class PathProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.PathProtocPlugin
io.github.ascopes.protobufmavenplugin.plugins.PathProtocPluginBean
- All Implemented Interfaces:
ProtocPlugin
@Generated(from="PathProtocPlugin",
generator="Modifiables")
@Generated({"Modifiables.generator","PathProtocPlugin"})
public class PathProtocPluginBean
extends PathProtocPlugin
A modifiable implementation of the
PathProtocPlugin 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.
PathProtocPluginBean is not thread-safe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofPathProtocPluginBeanthat have equal attribute values.from(PathProtocPlugin instance) Fill this modifiable instance with attribute values from the providedPathProtocPlugininstance.from(PathProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedPathProtocPlugininstance.from(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugininstance.getName()@Nullable StringintgetOrder()@Nullable PathinthashCode()Computes a hash code from attributes:options,outputDirectory,registerAsCompilationRoot,order,skip,name,optional.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.boolean@Nullable BooleanbooleanisSkip()final booleanReturnstrueif the required attributenameis set.final booleanReturnstrueif the default attributeoptionalis set.final booleanReturnstrueif the default attributeorderis set.voidAssigns a value to thenameattribute.voidsetOptional(boolean optional) Assigns a value to theoptionalattribute.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.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.Methods inherited from class PathProtocPlugin
toString
-
Constructor Details
-
PathProtocPluginBean
public PathProtocPluginBean()
-
-
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
-
getName
- Specified by:
getNamein classPathProtocPlugin- Returns:
- value of
nameattribute, may benull
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin classPathProtocPlugin- Returns:
- assigned or, otherwise, newly computed, not cached value of
optionalattribute
-
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 providedProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedPathProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedPathProtocPlugininstance. 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
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
-
setName
Assigns a value to thenameattribute.- Parameters:
name- The value for name, can benull
-
setOptional
public void setOptional(boolean optional) Assigns a value to theoptionalattribute.If not set, this attribute will have a default value returned by the initializer of
optional.- Parameters:
optional- The value for optional
-
nameIsSet
public final boolean nameIsSet()Returnstrueif the required attributenameis 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
-
optionalIsSet
public final boolean optionalIsSet()Returnstrueif the default attributeoptionalis set.- Returns:
trueif set
-
unsetName
public final void unsetName()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. -
unsetOptional
public final void unsetOptional()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
-