Class PathProtocPluginBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.PathProtocPluginBean
- All Implemented Interfaces:
OptionalProtocPlugin
,PathProtocPlugin
,ProtocPlugin
@Generated({"Modifiables.generator","PathProtocPlugin"})
public class PathProtocPluginBean
extends Object
implements 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
-
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 ofPathProtocPluginBean
that have equal attribute values.from
(OptionalProtocPlugin instance) Fill this modifiable instance with attribute values from the providedOptionalProtocPlugin
instance.from
(PathProtocPlugin instance) Fill this modifiable instance with attribute values from the providedPathProtocPlugin
instance.from
(PathProtocPluginBean instance) Fill this modifiable instance with attribute values from the providedPathProtocPlugin
instance.from
(ProtocPlugin instance) Fill this modifiable instance with attribute values from the providedProtocPlugin
instance.getName()
@Nullable String
int
getOrder()
int
hashCode()
Computes a hash code from attributes:options
,order
,isSkip
,isOptional
,name
.final boolean
Returnstrue
if all required attributes are set, indicating that the object is initialized.boolean
final boolean
Returnstrue
if the default attributeisOptional
is set.boolean
isSkip()
final boolean
Returnstrue
if the default attributeisSkip
is set.final boolean
Returnstrue
if the required attributename
is set.final boolean
Returnstrue
if the default attributeorder
is set.void
setIsOptional
(boolean isOptional) Assigns a value to theisOptional
attribute.void
setIsSkip
(boolean isSkip) Assigns a value to theisSkip
attribute.void
Assigns a value to thename
attribute.void
setOptions
(@Nullable String options) Assigns a value to theoptions
attribute.void
setOrder
(int order) Assigns a value to theorder
attribute.toString()
Generates a string representation of thisPathProtocPlugin
.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
Reset an attribute to its initial value.
-
Constructor Details
-
PathProtocPluginBean
public PathProtocPluginBean()
-
-
Method Details
-
getOptions
- Specified by:
getOptions
in interfaceProtocPlugin
- Returns:
- value of
options
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
isSkip
attribute
-
isOptional
public boolean isOptional()- Specified by:
isOptional
in interfaceOptionalProtocPlugin
- Returns:
- assigned or, otherwise, newly computed, not cached value of
isOptional
attribute
-
getName
- Specified by:
getName
in interfacePathProtocPlugin
- Returns:
- value of
name
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 providedPathProtocPlugin
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 providedPathProtocPlugin
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
-
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
-
setIsSkip
public void setIsSkip(boolean isSkip) Assigns a value to theisSkip
attribute.If not set, this attribute will have a default value returned by the initializer of
isSkip
.- Parameters:
isSkip
- The value for isSkip
-
setIsOptional
public void setIsOptional(boolean isOptional) Assigns a value to theisOptional
attribute.If not set, this attribute will have a default value returned by the initializer of
isOptional
.- Parameters:
isOptional
- The value for isOptional
-
setName
Assigns a value to thename
attribute.- Parameters:
name
- The value for name, can benull
-
nameIsSet
public final boolean nameIsSet()Returnstrue
if the required attributename
is set.- Returns:
true
if set
-
orderIsSet
public final boolean orderIsSet()Returnstrue
if the default attributeorder
is set.- Returns:
true
if set
-
isSkipIsSet
public final boolean isSkipIsSet()Returnstrue
if the default attributeisSkip
is set.- Returns:
true
if set
-
isOptionalIsSet
public final boolean isOptionalIsSet()Returnstrue
if the default attributeisOptional
is set.- Returns:
true
if 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. -
unsetIsSkip
public final void unsetIsSkip()Reset an attribute to its initial value. -
unsetIsOptional
public final void unsetIsOptional()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
-