Package eu.europa.ec.taxud.cesop.domain
Enum MessageTypeEnum
- java.lang.Object
-
- java.lang.Enum<MessageTypeEnum>
-
- eu.europa.ec.taxud.cesop.domain.MessageTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<MessageTypeEnum>
public enum MessageTypeEnum extends Enum<MessageTypeEnum>
Enum for the CESOP payment data message types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageTypeEnum
findByLabel(String label)
Find aMessageTypeEnum
by its label.String
getLabel()
Gets label.static MessageTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static MessageTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PMT
public static final MessageTypeEnum PMT
The message type is 'Payment data' (or 'No Payment data').
-
VLD
public static final MessageTypeEnum VLD
The message type is 'Validation result message'.
-
-
Method Detail
-
values
public static MessageTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageTypeEnum c : MessageTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageTypeEnum valueOf(String name)
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
-
getLabel
public String getLabel()
Gets label.- Returns:
- the label
-
findByLabel
public static MessageTypeEnum findByLabel(String label)
Find aMessageTypeEnum
by its label.- Parameters:
label
- the label- Returns:
- the
MessageTypeEnum
- Throws:
IllegalArgumentException
- if there is no value for the label
-
-