Package eu.europa.ec.taxud.cesop.domain
Enum MessageTypeIndicEnum
- java.lang.Object
-
- java.lang.Enum<MessageTypeIndicEnum>
-
- eu.europa.ec.taxud.cesop.domain.MessageTypeIndicEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<MessageTypeIndicEnum>
public enum MessageTypeIndicEnum extends Enum<MessageTypeIndicEnum>
Enum for Message Type Indic.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageTypeIndicEnum
findByLabel(String label)
Find aMessageTypeIndicEnum
by its label.String
getLabel()
Gets label.static MessageTypeIndicEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static MessageTypeIndicEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CESOP100
public static final MessageTypeIndicEnum CESOP100
Cesop 100 message type for new data.
-
CESOP101
public static final MessageTypeIndicEnum CESOP101
Cesop 101 message type for corrections.
-
CESOP102
public static final MessageTypeIndicEnum CESOP102
Cesop 102 message type for no data.
-
-
Method Detail
-
values
public static MessageTypeIndicEnum[] 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 (MessageTypeIndicEnum c : MessageTypeIndicEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageTypeIndicEnum 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 MessageTypeIndicEnum findByLabel(String label)
Find aMessageTypeIndicEnum
by its label.- Parameters:
label
- the label- Returns:
- the
MessageTypeIndicEnum
- Throws:
IllegalArgumentException
- if there is no value for the label
-
-