Class Property.BuilderBase<BUILDER extends Property.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Property>

java.lang.Object
io.helidon.data.codegen.query.Property.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:
Property.Builder
Enclosing interface:
Property

public abstract static class Property.BuilderBase<BUILDER extends Property.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Property> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for Property.
  • Constructor Details

    • BuilderBase

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

    • from

      public BUILDER from(Property 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(Property.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
    • nameParts

      public BUILDER nameParts(List<? extends CharSequence> nameParts)
      List of property name elements. Property name consists of individual elements separated by '.' character, e.g. person.name.
      Parameters:
      nameParts - List of property name elements
      Returns:
      updated builder instance
      See Also:
    • addNameParts

      public BUILDER addNameParts(List<? extends CharSequence> nameParts)
      List of property name elements. Property name consists of individual elements separated by '.' character, e.g. person.name.
      Parameters:
      nameParts - List of property name elements
      Returns:
      updated builder instance
      See Also:
    • addNamePart

      public BUILDER addNamePart(CharSequence namePart)
      List of property name elements. Property name consists of individual elements separated by '.' character, e.g. person.name.
      Parameters:
      namePart - List of property name elements
      Returns:
      updated builder instance
      See Also:
    • nameParts

      public List<CharSequence> nameParts()
      List of property name elements. Property name consists of individual elements separated by '.' character, e.g. person.name.
      Returns:
      the name parts
    • preBuildPrototype

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

      protected void validatePrototype()
      Validates required properties.