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
Modifier and TypeFieldDescriptionstatic final String
The OpenApi custom format used for this type. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeLocalTime
get()
Returns the type object representing local-time.boolean
isTime()
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, wait
Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isUUID, isValidation, isVoid, wrapperTypeName
-
Field Details
-
OPENAPI_CUSTOM_FORMAT
The OpenApi custom format used for this type.- See Also:
-
-
Method Details
-
get
Returns the type object representing local-time.- Returns:
- the type object representing local-time
-
typeName
Description copied from interface:Type
Returns the type name. -
neededImports
Description copied from interface:Type
Returns the set of imports needed to use this type in a DTO.- Specified by:
neededImports
in interfaceType
- 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.
-