Class RestMethodParameter.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.declarative.codegen.model.http.RestMethodParameter.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:
RestMethodParameter.Builder
- Enclosing interface:
RestMethodParameter
public abstract static class RestMethodParameter.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
extends ModelElement.BuilderBase<BUILDER, PROTOTYPE>
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
RestMethodParameter.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrom(RestMethodParameter prototype) Update this builder from an existing prototype instance.from(RestMethodParameter.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intindex()Index of the parameter within the method declaration (zero based).index(int index) Index of the parameter within the method declaration (zero based).method()Owning method.method(TypedElementInfo method) Owning method.method(Consumer<TypedElementInfo.Builder> consumer) Owning method.method(Supplier<? extends TypedElementInfo> supplier) Owning method.name()Name of the parameter.Name of the parameter.Parameter info.parameter(TypedElementInfo parameter) Parameter info.parameter(Consumer<TypedElementInfo.Builder> consumer) Parameter info.parameter(Supplier<? extends TypedElementInfo> supplier) Parameter info.protected voidHandles providers and decorators.toString()typeName()Type of the parameter.Type of the parameter.typeName(Consumer<TypeName.Builder> consumer) Type of the parameter.Type of the parameter.protected voidValidates required properties.Methods inherited from class ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, clearAnnotations, from, from, type, type, type, typeModifier 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.type()Type of this element.Type of this element.type(Consumer<TypeInfo.Builder> consumer) Type of this element.Type of this element.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
typeName
-
typeName
Type of the parameter.- Parameters:
consumer- consumer of builder of parameter type- Returns:
- updated builder instance
- See Also:
-
typeName
-
index
Index of the parameter within the method declaration (zero based).- Parameters:
index- parameter index- Returns:
- updated builder instance
- See Also:
-
method
Owning method.- Parameters:
method- method info- Returns:
- updated builder instance
- See Also:
-
method
Owning method.- Parameters:
consumer- consumer of builder of method info- Returns:
- updated builder instance
- See Also:
-
method
Owning method.- Parameters:
supplier- supplier of method info- Returns:
- updated builder instance
- See Also:
-
parameter
Parameter info.- Parameters:
parameter- parameter info- Returns:
- updated builder instance
- See Also:
-
parameter
Parameter info.- Parameters:
consumer- consumer of builder of parameter info- Returns:
- updated builder instance
- See Also:
-
parameter
Parameter info.- Parameters:
supplier- supplier of parameter info- Returns:
- updated builder instance
- See Also:
-
name
-
typeName
-
index
public int index()Index of the parameter within the method declaration (zero based).- Returns:
- parameter index
-
method
-
parameter
-
toString
- Overrides:
toStringin classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-