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

    • CUSTOM_TIME_FORMAT_QUARKUS

      public static final String CUSTOM_TIME_FORMAT_QUARKUS
      The custom format from Quarkus.
      See Also:
    • TIME_FORMAT_OPENAPI

      public static final String TIME_FORMAT_OPENAPI
      The OpenApi (not yet spec?) format from https://spec.openapis.org/registry/format/
      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