Package dk.mada.jaxrs.model.types
Class TypeLocalTime
java.lang.Object
dk.mada.jaxrs.model.types.TypeLocalTime
- All Implemented Interfaces:
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeLocalTimeget()Returns the type object representing local-time.booleanisTime()Returns true if this type represents time.Returns the set of imports needed to use this type in a DTO.typeName()Returns the type name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isUUID, isValidation, isVoid, wrapperTypeName
-
Field Details
-
CUSTOM_TIME_FORMAT_QUARKUS
The custom format from Quarkus.- See Also:
-
TIME_FORMAT_OPENAPI
The OpenApi (not yet spec?) format from https://spec.openapis.org/registry/format/- See Also:
-
-
Method Details
-
get
Returns the type object representing local-time.- Returns:
- the type object representing local-time
-
typeName
Description copied from interface:TypeReturns the type name. -
neededImports
Description copied from interface:TypeReturns the set of imports needed to use this type in a DTO.- Specified by:
neededImportsin interfaceType- Returns:
- the set of imports needed to use this type in a DTO
-
isTime
public boolean isTime()Description copied from interface:TypeReturns true if this type represents time.
-