Class TypeLocalTime

java.lang.Object
dk.mada.jaxrs.model.types.TypeLocalTime
All Implemented Interfaces:
Type

public final class TypeLocalTime extends Object implements Type
Special type for optional special handing of types named LocalTime as if they are LocalTime. This is an (invalid, and thus not properly passed through) example from the Quarkus openapi extension: LocalTime: format: local-time type: string externalDocs: description: As defined by 'partial-time' in RFC3339 url: https://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14 example: 13:45.30.123456789
  • Field Details

    • OPENAPI_CUSTOM_FORMAT

      public static final String OPENAPI_CUSTOM_FORMAT
      The OpenApi custom format used for this type.
      See Also:
  • Method Details

    • get

      public static TypeLocalTime get()
      Returns the type object representing local-time.
      Returns:
      the type object representing local-time
    • typeName

      public TypeName typeName()
      Description copied from interface: Type
      Returns the type name.
      Specified by:
      typeName in interface Type
      Returns:
      the type name
    • neededImports

      public Set<String> neededImports()
      Description copied from interface: Type
      Returns the set of imports needed to use this type in a DTO.
      Specified by:
      neededImports in interface Type
      Returns:
      the set of imports needed to use this type in a DTO
    • isTime

      public boolean isTime()
      Description copied from interface: Type
      Returns true if this type represents time.
      Specified by:
      isTime in interface Type
      Returns:
      true if this type represents time