Package be.recipe.services.core
Enum CommunicationChannelSpecification
- java.lang.Object
-
- java.lang.Enum<CommunicationChannelSpecification>
-
- be.recipe.services.core.CommunicationChannelSpecification
-
- All Implemented Interfaces:
Serializable,Comparable<CommunicationChannelSpecification>
public enum CommunicationChannelSpecification extends Enum<CommunicationChannelSpecification>
Java class for communicationChannelSpecification.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="communicationChannelSpecification"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="any"/> <enumeration value="e-mail"/> <enumeration value="phone number"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYEMAILPHONE_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommunicationChannelSpecificationfromValue(String v)Stringvalue()static CommunicationChannelSpecificationvalueOf(String name)Returns the enum constant of this type with the specified name.static CommunicationChannelSpecification[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final CommunicationChannelSpecification ANY
-
EMAIL
public static final CommunicationChannelSpecification EMAIL
-
PHONE_NUMBER
public static final CommunicationChannelSpecification PHONE_NUMBER
-
-
Method Detail
-
values
public static CommunicationChannelSpecification[] 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 (CommunicationChannelSpecification c : CommunicationChannelSpecification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommunicationChannelSpecification 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
-
value
public String value()
-
fromValue
public static CommunicationChannelSpecification fromValue(String v)
-
-