Class TypeNames

java.lang.Object
dk.mada.jaxrs.model.types.TypeNames

public final class TypeNames extends Object
Contains all declared type names in the model. The primitive types and a number of customary types are predefined.
  • Field Details

    • BOOLEAN

      public static final TypeName BOOLEAN
      The type name of boolean.
    • BOOLEAN_WRAPPER

      public static final TypeName BOOLEAN_WRAPPER
      The type name of Boolean.
    • BYTE

      public static final TypeName BYTE
      The type name of byte.
    • BYTE_WRAPPER

      public static final TypeName BYTE_WRAPPER
      The type name of Byte.
    • SHORT

      public static final TypeName SHORT
      The type name of short.
    • SHORT_WRAPPER

      public static final TypeName SHORT_WRAPPER
      The type name of Short.
    • INTEGER

      public static final TypeName INTEGER
      The type name of int.
    • INTEGER_WRAPPER

      public static final TypeName INTEGER_WRAPPER
      The type name of Integer.
    • LONG

      public static final TypeName LONG
      The type name of long.
    • LONG_WRAPPER

      public static final TypeName LONG_WRAPPER
      The type name of Long.
    • FLOAT

      public static final TypeName FLOAT
      The type name of float.
    • FLOAT_WRAPPER

      public static final TypeName FLOAT_WRAPPER
      The type name of Float.
    • DOUBLE

      public static final TypeName DOUBLE
      The type name of double.
    • DOUBLE_WRAPPER

      public static final TypeName DOUBLE_WRAPPER
      The type name of Double.
    • STRING

      public static final TypeName STRING
      The type name of String.
    • VOID

      public static final TypeName VOID
      The type name of void.
    • OBJECT

      public static final TypeName OBJECT
      The type name of Object.
    • LOCAL_DATE

      public static final TypeName LOCAL_DATE
      The type name of LocalDate.
    • LOCAL_TIME

      public static final TypeName LOCAL_TIME
      The type name of LocalTime.
    • LOCAL_DATE_TIME

      public static final TypeName LOCAL_DATE_TIME
      The type name of LocalDateTime.
    • OFFSET_DATE_TIME

      public static final TypeName OFFSET_DATE_TIME
      The type name of OffsetDateTime.
    • ZONED_DATE_TIME

      public static final TypeName ZONED_DATE_TIME
      The type name of ZonedDateTime.
    • BIG_DECIMAL

      public static final TypeName BIG_DECIMAL
      The type name for a BigDecimal.
    • BYTE_ARRAY

      public static final TypeName BYTE_ARRAY
      The type name for a byte array.
    • INPUT_STREAM

      public static final TypeName INPUT_STREAM
      The type name for InputStream.
    • UUID

      public static final TypeName UUID
      The type name for a UUID.
    • MARKER_VALIDATION

      public static final TypeName MARKER_VALIDATION
      The type name for a validation marker - not a real type.
    • MARKER_UNKNOWN

      public static final TypeName MARKER_UNKNOWN
      The type name for an unknown type at parse time - not a real type.
    • MARKER_NOFORMAT_INT

      public static final TypeName MARKER_NOFORMAT_INT
      The type name marking an integer of unknown format/size.
    • MARKER_NOFORMAT_NUMBER

      public static final TypeName MARKER_NOFORMAT_NUMBER
      The type name marking an number of unknown format/size.
  • Constructor Details

    • TypeNames

      public TypeNames()
      Constructs a new instance.
  • Method Details

    • find

      public @Nullable TypeName find(String name)
      Returns the TypeName with the given name, if it exists. Otherwise null.
      Parameters:
      name - the TypeName to look for
      Returns:
      the TypeName with the given name, if it exists. Otherwise null
    • of

      public TypeName of(String name)
      Creates a new type name.
      Parameters:
      name - name of the type
      Returns:
      a new TypeName instance
    • info

      public String info()
      Returns information about the type names.
      Returns:
      information about the type names