Interface RestMethodParameter
- All Superinterfaces:
ModelElement, Prototype.Api
- All Known Implementing Classes:
RestMethodParameter.BuilderBase.RestMethodParameterImpl
A single REST method parameter.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forRestMethodParameter.static classRestMethodParameter.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethodParameter>Fluent API builder base forRestMethodParameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestMethodParameter.Builderbuilder()Create a new fluent API builder to customize configuration.static RestMethodParameter.Builderbuilder(RestMethodParameter instance) Create a new fluent API builder from an existing instance.intindex()Index of the parameter within the method declaration (zero based).method()Owning method.name()Name of the parameter.Parameter info.typeName()Type of the parameter.Methods inherited from interface ModelElement
annotations, typeModifier and TypeMethodDescriptionAll annotations on this element, and inherited from supertype/interface and annotations.type()Type of this element.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
name
-
typeName
-
index
int index()Index of the parameter within the method declaration (zero based).- Returns:
- parameter index
-
method
-
parameter
-