Enum AbstractMessage.Cardinality
- java.lang.Object
-
- java.lang.Enum<AbstractMessage.Cardinality>
-
- org.openehealth.ipf.modules.hl7.model.AbstractMessage.Cardinality
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMessage.Cardinality>
- Enclosing class:
- AbstractMessage
protected static enum AbstractMessage.Cardinality extends Enum<AbstractMessage.Cardinality>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIONAL
OPTIONAL_REPEATING
REQUIRED
REQUIRED_REPEATING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMessage.Cardinality
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractMessage.Cardinality[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final AbstractMessage.Cardinality REQUIRED
-
OPTIONAL
public static final AbstractMessage.Cardinality OPTIONAL
-
REQUIRED_REPEATING
public static final AbstractMessage.Cardinality REQUIRED_REPEATING
-
OPTIONAL_REPEATING
public static final AbstractMessage.Cardinality OPTIONAL_REPEATING
-
-
Method Detail
-
values
public static AbstractMessage.Cardinality[] 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 (AbstractMessage.Cardinality c : AbstractMessage.Cardinality.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractMessage.Cardinality 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
-
-