Class TypeDateTime

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

public final class TypeDateTime extends Object implements Type
Special type for handing date-time schema.
  • Method Details

    • get

      public static TypeDateTime get(TypeDateTime.DateTimeVariant variant)
      Returns the type object representing a date-time.
      Parameters:
      variant - the desired variant
      Returns:
      the type object representing a date-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
    • isDateTime

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