Interface Parameter
- All Known Implementing Classes:
ImmutableParameter
@Immutable
public interface Parameter
Information about a single parameter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableParameter.Builderbuilder()Returns a builder for this type.Returns an optional description of the parameter.booleanReturns true if the parameter is a form parameter, otherwise false.booleanReturns true if the parameter is a header parameter, otherwise false.booleanReturns true if the parameter is a path parameter, otherwise false.booleanReturns true if the parameter is a query parameter, otherwise false.name()Returns parameter name.Returns parameter type.
-
Method Details
-
builder
Returns a builder for this type.- Returns:
- a builder for this type
-
name
-
reference
-
description
-
isHeaderParam
boolean isHeaderParam()Returns true if the parameter is a header parameter, otherwise false.- Returns:
- true if the parameter is a header parameter, otherwise false
-
isPathParam
boolean isPathParam()Returns true if the parameter is a path parameter, otherwise false.- Returns:
- true if the parameter is a path parameter, otherwise false
-
isQueryParam
boolean isQueryParam()Returns true if the parameter is a query parameter, otherwise false.- Returns:
- true if the parameter is a query parameter, otherwise false
-
isFormParam
boolean isFormParam()Returns true if the parameter is a form parameter, otherwise false.- Returns:
- true if the parameter is a form parameter, otherwise false
-