Package dk.mada.jaxrs.model.types
Class TypeNames
java.lang.Object
dk.mada.jaxrs.model.types.TypeNames
Contains all declared type names in the model.
The primitive types and a number of customary types are predefined.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeNameThe type name for a BigDecimal.static final TypeNameThe type name of boolean.static final TypeNameThe type name of Boolean.static final TypeNameThe type name of byte.static final TypeNameThe type name for a byte array.static final TypeNameThe type name of Byte.static final TypeNameThe type name of double.static final TypeNameThe type name of Double.static final TypeNameThe type name of float.static final TypeNameThe type name of Float.static final TypeNameThe type name for InputStream.static final TypeNameThe type name of int.static final TypeNameThe type name of Integer.static final TypeNameThe type name of LocalDate.static final TypeNameThe type name of LocalDateTime.static final TypeNameThe type name of LocalTime.static final TypeNameThe type name of long.static final TypeNameThe type name of Long.static final TypeNameThe type name marking an integer of unknown format/size.static final TypeNameThe type name marking an number of unknown format/size.static final TypeNameThe type name for an unknown type at parse time - not a real type.static final TypeNameThe type name for a validation marker - not a real type.static final TypeNameThe type name of Object.static final TypeNameThe type name of OffsetDateTime.static final TypeNameThe type name of short.static final TypeNameThe type name of Short.static final TypeNameThe type name of String.static final TypeNameThe type name for a UUID.static final TypeNameThe type name of void.static final TypeNameThe type name of ZonedDateTime. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BOOLEAN
The type name of boolean. -
BOOLEAN_WRAPPER
The type name of Boolean. -
BYTE
The type name of byte. -
BYTE_WRAPPER
The type name of Byte. -
SHORT
The type name of short. -
SHORT_WRAPPER
The type name of Short. -
INTEGER
The type name of int. -
INTEGER_WRAPPER
The type name of Integer. -
LONG
The type name of long. -
LONG_WRAPPER
The type name of Long. -
FLOAT
The type name of float. -
FLOAT_WRAPPER
The type name of Float. -
DOUBLE
The type name of double. -
DOUBLE_WRAPPER
The type name of Double. -
STRING
The type name of String. -
VOID
The type name of void. -
OBJECT
The type name of Object. -
LOCAL_DATE
The type name of LocalDate. -
LOCAL_TIME
The type name of LocalTime. -
LOCAL_DATE_TIME
The type name of LocalDateTime. -
OFFSET_DATE_TIME
The type name of OffsetDateTime. -
ZONED_DATE_TIME
The type name of ZonedDateTime. -
BIG_DECIMAL
The type name for a BigDecimal. -
BYTE_ARRAY
The type name for a byte array. -
INPUT_STREAM
The type name for InputStream. -
UUID
The type name for a UUID. -
MARKER_VALIDATION
The type name for a validation marker - not a real type. -
MARKER_UNKNOWN
The type name for an unknown type at parse time - not a real type. -
MARKER_NOFORMAT_INT
The type name marking an integer of unknown format/size. -
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
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
Creates a new type name.- Parameters:
name- name of the type- Returns:
- a new TypeName instance
-
info
Returns information about the type names.- Returns:
- information about the type names
-