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 class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImpl
-
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.int
index()
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 void
Handles 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 void
Validates required properties.Methods inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, from, from, type, type, type, type
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
-
name
Name of the parameter.- Parameters:
name
- parameter name- Returns:
- updated builder instance
- See Also:
-
typeName
Type of the parameter.- Parameters:
typeName
- parameter type- Returns:
- updated builder instance
- See Also:
-
typeName
Type of the parameter.- Parameters:
consumer
- consumer of builder for parameter type- Returns:
- updated builder instance
- See Also:
-
typeName
Type of the parameter.- Parameters:
supplier
- supplier of parameter type- Returns:
- updated builder instance
- See Also:
-
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 for 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 for parameter info- Returns:
- updated builder instance
- See Also:
-
parameter
Parameter info.- Parameters:
supplier
- supplier of parameter info- Returns:
- updated builder instance
- See Also:
-
name
Name of the parameter.- Returns:
- the name
-
typeName
Type of the parameter.- Returns:
- the type name
-
index
public int index()Index of the parameter within the method declaration (zero based).- Returns:
- the index
-
method
Owning method.- Returns:
- the method
-
parameter
Parameter info.- Returns:
- the parameter
-
toString
- Overrides:
toString
in classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classModelElement.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestMethodParameter>
-