Class ModelElement.Builder
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<ModelElement.Builder, ModelElement>
io.helidon.declarative.codegen.model.http.ModelElement.Builder
- All Implemented Interfaces:
Prototype.Builder<ModelElement.Builder, ModelElement>, Builder<ModelElement.Builder, ModelElement>, Supplier<ModelElement>
- Enclosing interface:
ModelElement
public static class ModelElement.Builder
extends ModelElement.BuilderBase<ModelElement.Builder, ModelElement>
implements Builder<ModelElement.Builder, ModelElement>
Fluent API builder for
ModelElement.-
Nested Class Summary
Nested classes/interfaces inherited from class ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, clearAnnotations, from, from, preBuildPrototype, toString, type, type, type, type, validatePrototypeModifier 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.Clear all 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 voidHandles 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 voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ModelElementget()default ModelElement.Builderidentity()Instance of this builder as the correct type.default ModelElement.Builderupdate(Consumer<ModelElement.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ModelElement.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ModelElement.Builder, ModelElement>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ModelElement.Builder, ModelElement>- Returns:
- instance of the built type
-