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 builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.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.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(OptionSingular prototype)
      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

      public BUILDER from(OptionSingular.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • name

      public BUILDER name(String name)
      Singular form of the option name. For lines, this would be line. For properties, this should be property, so we allow customization by the user.
      Parameters:
      name - singular name
      Returns:
      updated builder instance
      See Also:
    • methodName

      public BUILDER methodName(String methodName)
      Name of the singular setter method.
      Parameters:
      methodName - method name
      Returns:
      updated builder instance
      See Also:
    • name

      public Optional<String> name()
      Singular form of the option name. For lines, this would be line. For properties, this should be property, so we allow customization by the user.
      Returns:
      singular name
    • methodName

      public Optional<String> methodName()
      Name of the singular setter method.
      Returns:
      method name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.