Package no.digipost.api.datatypes
Enum DataTypeIdentifier
- All Implemented Interfaces:
Serializable,Comparable<DataTypeIdentifier>,java.lang.constant.Constable
HOWTO: Add new data type
1. Create new data type enum in this class
2. Create the class, annotate, implement the DataType interface (see Appointment.class for example)
3. Add class with relative package name to jaxb.index
4. profit!
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeComplementedBy(DataType successor) static DataTypeIdentifierfromRepresentationType(Class<? extends DataType> representation) static DataTypeIdentifierfromShortName(String shortName) static DataTypeIdentifierReturns the enum constant of this type with the specified name.static DataTypeIdentifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APPOINTMENT
-
RESIDENCE
-
EXTERNAL_LINK
-
BOLIGDETALJER
-
RECEIPT
-
PAYSLIP
-
SIGNED_DOCUMENT
-
PICKUP_NOTICE
-
PICKUP_NOTICE_STATUS
-
EVENT
-
PROOF
-
INKASSO
-
INVOICE
-
INVOICE_PAYMENT
-
SHARE_DOCUMENT_REQUEST
-
SHARE_DOCUMENT_REQUEST_EVENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDataType
-
getShortName
-
fromRepresentationType
-
fromShortName
-
getExample
-
getAllClasses
-
canBeComplementedBy
-