Class UriProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.UriProtocPluginBean
- All Implemented Interfaces:
OptionalProtocPlugin, ProtocPlugin, UriProtocPlugin
@Generated(from="UriProtocPlugin",
generator="Modifiables")
@Generated({"Modifiables.generator","UriProtocPlugin"})
public class UriProtocPluginBean
extends Object
implements UriProtocPlugin
A modifiable implementation of the
UriProtocPlugin 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.
UriProtocPluginBean 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 ofUriProtocPluginBeanthat have equal attribute values.from(OptionalProtocPlugin instance) Fill this modifiable instance with attribute values from the providedOptionalProtocPlugininstance.from(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugininstance.from(UriProtocPlugin instance) Fill this modifiable instance with attribute values from the providedUriProtocPlugininstance.from(UriProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedUriProtocPlugininstance.@Nullable Digest@Nullable StringintgetOrder()@Nullable PathgetUrl()inthashCode()Computes a hash code from attributes:options,outputDirectory,registerAsCompilationRoot,order,skip,optional,url,digest.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.boolean@Nullable BooleanbooleanisSkip()final booleanReturnstrueif the default attributeoptionalis set.final booleanReturnstrueif the default attributeorderis set.voidAssigns a value to thedigestattribute.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.voidAssigns a value to theurlattribute.final booleanReturnstrueif the default attributeskipis set.toString()Generates a string representation of thisUriProtocPlugin.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 voidunsetUrl()Reset an attribute to its initial value.final booleanurlIsSet()Returnstrueif the required attributeurlis set.
-
Constructor Details
-
UriProtocPluginBean
public UriProtocPluginBean()
-
-
Method Details
-
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
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceOptionalProtocPlugin- Returns:
- assigned or, otherwise, newly computed, not cached value of
optionalattribute
-
getUrl
- Specified by:
getUrlin interfaceUriProtocPlugin- Returns:
- value of
urlattribute, may benull
-
getDigest
- Specified by:
getDigestin interfaceUriProtocPlugin- Returns:
- value of
digestattribute, 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 providedProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedOptionalProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedUriProtocPlugininstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedUriProtocPlugininstance. 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
-
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
-
setUrl
Assigns a value to theurlattribute.- Parameters:
url- The value for url, can benull
-
setDigest
Assigns a value to thedigestattribute.- Parameters:
digest- The value for digest, can benull
-
urlIsSet
public final boolean urlIsSet()Returnstrueif the required attributeurlis 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
-
unsetUrl
public final void unsetUrl()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
-
toString
-