Class UriProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.UriProtocPluginBean
- All Implemented Interfaces:
OptionalProtocPlugin
,ProtocPlugin
,UriProtocPlugin
@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 TypeMethodDescriptionvoid
clear()
Clears the object by setting all attributes to their initial values.boolean
This instance is equal to all instances ofUriProtocPluginBean
that have equal attribute values.from
(OptionalProtocPlugin instance) Fill this modifiable instance with attribute values from the providedOptionalProtocPlugin
instance.from
(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugin
instance.from
(UriProtocPlugin instance) Fill this modifiable instance with attribute values from the providedUriProtocPlugin
instance.from
(UriProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedUriProtocPlugin
instance.@Nullable String
int
getOrder()
@Nullable Path
getUrl()
int
hashCode()
Computes a hash code from attributes:options
,outputDirectory
,registerAsCompilationRoot
,order
,skip
,optional
,url
.final boolean
Returnstrue
if all required attributes are set, indicating that the object is initialized.boolean
@Nullable Boolean
boolean
isSkip()
final boolean
Returnstrue
if the default attributeoptional
is set.final boolean
Returnstrue
if the default attributeorder
is set.void
setOptional
(boolean optional) Assigns a value to theoptional
attribute.void
setOptions
(@Nullable String options) Assigns a value to theoptions
attribute.void
setOrder
(int order) Assigns a value to theorder
attribute.void
setOutputDirectory
(@Nullable Path outputDirectory) Assigns a value to theoutputDirectory
attribute.void
setRegisterAsCompilationRoot
(@Nullable Boolean registerAsCompilationRoot) Assigns a value to theregisterAsCompilationRoot
attribute.void
setSkip
(boolean skip) Assigns a value to theskip
attribute.void
Assigns a value to theurl
attribute.final boolean
Returnstrue
if the default attributeskip
is set.toString()
Generates a string representation of thisUriProtocPlugin
.final void
Reset an attribute to its initial value.final void
Reset an attribute to its initial value.final void
Reset an attribute to its initial value.final void
unsetUrl()
Reset an attribute to its initial value.final boolean
urlIsSet()
Returnstrue
if the required attributeurl
is set.
-
Constructor Details
-
UriProtocPluginBean
public UriProtocPluginBean()
-
-
Method Details
-
getOptions
- Specified by:
getOptions
in interfaceProtocPlugin
- Returns:
- value of
options
attribute, may benull
-
getOutputDirectory
- Specified by:
getOutputDirectory
in interfaceProtocPlugin
- Returns:
- value of
outputDirectory
attribute, may benull
-
isRegisterAsCompilationRoot
- Specified by:
isRegisterAsCompilationRoot
in interfaceProtocPlugin
- Returns:
- value of
registerAsCompilationRoot
attribute, may benull
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceProtocPlugin
- Returns:
- assigned or, otherwise, newly computed, not cached value of
order
attribute
-
isSkip
public boolean isSkip()- Specified by:
isSkip
in interfaceProtocPlugin
- Returns:
- assigned or, otherwise, newly computed, not cached value of
skip
attribute
-
isOptional
public boolean isOptional()- Specified by:
isOptional
in interfaceOptionalProtocPlugin
- Returns:
- assigned or, otherwise, newly computed, not cached value of
optional
attribute
-
getUrl
- Specified by:
getUrl
in interfaceUriProtocPlugin
- Returns:
- value of
url
attribute, 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 providedProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedOptionalProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedUriProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedUriProtocPlugin
instance. 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:
this
for use in a chained invocation
-
setOptions
Assigns a value to theoptions
attribute.- Parameters:
options
- The value for options, can benull
-
setOutputDirectory
Assigns a value to theoutputDirectory
attribute.- Parameters:
outputDirectory
- The value for outputDirectory, can benull
-
setRegisterAsCompilationRoot
Assigns a value to theregisterAsCompilationRoot
attribute.- Parameters:
registerAsCompilationRoot
- The value for registerAsCompilationRoot, can benull
-
setOrder
public void setOrder(int order) Assigns a value to theorder
attribute.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 theskip
attribute.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 theoptional
attribute.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 theurl
attribute.- Parameters:
url
- The value for url, can benull
-
urlIsSet
public final boolean urlIsSet()Returnstrue
if the required attributeurl
is set.- Returns:
true
if set
-
orderIsSet
public final boolean orderIsSet()Returnstrue
if the default attributeorder
is set.- Returns:
true
if set
-
skipIsSet
public final boolean skipIsSet()Returnstrue
if the default attributeskip
is set.- Returns:
true
if set
-
optionalIsSet
public final boolean optionalIsSet()Returnstrue
if the default attributeoptional
is set.- Returns:
true
if 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()Returnstrue
if all required attributes are set, indicating that the object is initialized.- Returns:
true
if set
-
equals
-
hashCode
-
toString
-