Class ModelElement.BuilderBase<BUILDER extends ModelElement.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModelElement>
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.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:
HttpAnnotated.BuilderBase
,ModelElement.Builder
,RestMethodParameter.BuilderBase
- Enclosing interface:
ModelElement
public abstract static class ModelElement.BuilderBase<BUILDER extends ModelElement.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModelElement>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ModelElement
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation
(Annotation annotation) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotation
(Consumer<Annotation.Builder> consumer) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotations
(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.All annotations on this element, and inherited from supertype/interface and annotations.annotations
(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.from
(ModelElement prototype) Update this builder from an existing prototype instance.from
(ModelElement.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.toString()
type()
Type of this element.Type of this element.type
(Consumer<TypeInfo.Builder> consumer) Type of this element.Type of this element.protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
annotations
All annotations on this element, and inherited from supertype/interface and annotations.- Parameters:
annotations
- annotations- Returns:
- updated builder instance
- See Also:
-
addAnnotations
All annotations on this element, and inherited from supertype/interface and annotations.- Parameters:
annotations
- annotations- Returns:
- updated builder instance
- See Also:
-
addAnnotation
All annotations on this element, and inherited from supertype/interface and annotations.- Parameters:
annotation
- annotations- Returns:
- updated builder instance
- See Also:
-
addAnnotation
All annotations on this element, and inherited from supertype/interface and annotations.- Parameters:
consumer
- annotations- Returns:
- updated builder instance
- See Also:
-
type
Type of this element.- Parameters:
type
- type info- Returns:
- updated builder instance
- See Also:
-
type
Type of this element.- Parameters:
consumer
- consumer of builder for type info- Returns:
- updated builder instance
- See Also:
-
type
Type of this element.- Parameters:
supplier
- supplier of type info- Returns:
- updated builder instance
- See Also:
-
annotations
All annotations on this element, and inherited from supertype/interface and annotations.- Returns:
- the annotations
-
type
Type of this element.- Returns:
- the type
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-