Package dk.mada.jaxrs.model.types
Class TypeDateTime
java.lang.Object
dk.mada.jaxrs.model.types.TypeDateTime
- All Implemented Interfaces:
Type
Special type for handing date-time schema.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The Java variants of date-time implementations. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeDateTime
get
(TypeDateTime.DateTimeVariant variant) Returns the type object representing a date-time.boolean
Returns true if this type represents date-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, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, wrapperTypeName
-
Method Details
-
get
Returns the type object representing a date-time.- Parameters:
variant
- the desired variant- Returns:
- the type object representing a date-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
-
isDateTime
public boolean isDateTime()Description copied from interface:Type
Returns true if this type represents date-time.- Specified by:
isDateTime
in interfaceType
- Returns:
- true if this type represents date-time
-