Interface Parameter


@Immutable public interface Parameter
Information about a single parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    static dk.mada.jaxrs.model.api.ImmutableParameter.Builder
    Returns a builder for this type.
    Returns an optional description of the parameter.
    boolean
    Returns true if the parameter is a form parameter, otherwise false.
    boolean
    Returns true if the parameter is a header parameter, otherwise false.
    boolean
    Returns true if the parameter is a path parameter, otherwise false.
    boolean
    Returns true if the parameter is a query parameter, otherwise false.
    Returns parameter name.
    Returns parameter type.
  • Method Details

    • builder

      static dk.mada.jaxrs.model.api.ImmutableParameter.Builder builder()
      Returns a builder for this type.
      Returns:
      a builder for this type
    • name

      String name()
      Returns parameter name.
      Returns:
      parameter name
    • reference

      Reference reference()
      Returns parameter type.
      Returns:
      parameter type
    • description

      Optional<String> description()
      Returns an optional description of the parameter.
      Returns:
      an optional description of the parameter
    • 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