Interface CtxApiParam
- All Known Implementing Classes:
ImmutableCtxApiParam
@Immutable
public interface CtxApiParam
Template data for an API operation parameter.
-
Method Summary
Modifier and TypeMethodDescriptionbaseName()
Returns base name of a path parameter.static ImmutableCtxApiParam.Builder
builder()
Returns a builder for this type.dataType()
Returns the java type of the parameter.Returns an optional default value for the parameter.Returns an optional description of the parameter.boolean
Returns true if this is the body parameter, otherwise false.boolean
Returns true if the parameter is a container.boolean
Returns true if this is a form parameter, otherwise false.boolean
Returns true if this is a header parameter, otherwise false.boolean
Returns true if this is a multipart form body, otherwise false.boolean
Returns true if this parameter is nullable.boolean
Returns true if this is a path parameter, otherwise false.boolean
Returns true if this is a query parameter, otherwise false.Returns the name given to the parameter in the function.Returns context for bean validation if relevant for this parameter.
-
Method Details
-
builder
Returns a builder for this type.- Returns:
- a builder for this type
-
isContainer
boolean isContainer()Returns true if the parameter is a container.- Returns:
- true if the parameter is a container
-
description
Returns an optional description of the parameter.- Returns:
- an optional description of the parameter
-
defaultValue
Returns an optional default value for the parameter.- Returns:
- an optional default value for the parameter
-
baseName
String baseName()Returns base name of a path parameter.- Returns:
- base name of a path parameter
-
paramName
String paramName()Returns the name given to the parameter in the function.- Returns:
- the name given to the parameter in the function
-
dataType
String dataType()Returns the java type of the parameter.- Returns:
- the java type of the parameter
-
isBodyParam
boolean isBodyParam()Returns true if this is the body parameter, otherwise false.- Returns:
- true if this is the body parameter, otherwise false
-
isHeaderParam
boolean isHeaderParam()Returns true if this is a header parameter, otherwise false.- Returns:
- true if this is a header parameter, otherwise false
-
isPathParam
boolean isPathParam()Returns true if this is a path parameter, otherwise false.- Returns:
- true if this is a path parameter, otherwise false
-
isQueryParam
boolean isQueryParam()Returns true if this is a query parameter, otherwise false.- Returns:
- true if this is a query parameter, otherwise false
-
isFormParam
boolean isFormParam()Returns true if this is a form parameter, otherwise false.- Returns:
- true if this is a form parameter, otherwise false
-
validation
Optional<CtxValidation> validation()Returns context for bean validation if relevant for this parameter.- Returns:
- context for bean validation if relevant for this parameter
-
isMultipartForm
boolean isMultipartForm()Returns true if this is a multipart form body, otherwise false.- Returns:
- true if this is a multipart form body, otherwise false
-
isNullable
boolean isNullable()Returns true if this parameter is nullable.- Returns:
- true if this parameter is nullable
-