Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class OptionSingular.BuilderBase<BUILDER extends OptionSingular.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionSingular>
java.lang.Object
io.helidon.builder.codegen.OptionSingular.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OptionSingular.Builder
- Enclosing interface:
OptionSingular
public abstract static class OptionSingular.BuilderBase<BUILDER extends OptionSingular.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionSingular>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
OptionSingular.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrom(OptionSingular prototype) Update this builder from an existing prototype instance.from(OptionSingular.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Name of the singular setter method.methodName(String methodName) Name of the singular setter method.name()Singular form of the option name.Singular form of the option name.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
name
Singular form of the option name. Forlines, this would beline. Forproperties, this should beproperty, so we allow customization by the user.- Parameters:
name- singular name- Returns:
- updated builder instance
- See Also:
-
methodName
Name of the singular setter method.- Parameters:
methodName- method name- Returns:
- updated builder instance
- See Also:
-
name
Singular form of the option name. Forlines, this would beline. Forproperties, this should beproperty, so we allow customization by the user.- Returns:
- singular name
-
methodName
Name of the singular setter method.- Returns:
- method name
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-