Package org.isda.cdm
Enum TelephoneTypeEnum
- java.lang.Object
-
- java.lang.Enum<TelephoneTypeEnum>
-
- org.isda.cdm.TelephoneTypeEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TelephoneTypeEnum>
public enum TelephoneTypeEnum extends java.lang.Enum<TelephoneTypeEnum>
The enumerated values to specify the type of telephone number, e.g. work vs. mobile.- Version:
- 2.5.4
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAX
A number used primarily for work-related facsimile transmissions.MOBILE
A number on a mobile telephone that is often or usually used for work-related calls.PERSONAL
A number used primarily for non work-related calls.WORK
A number used primarily for work-related calls.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static TelephoneTypeEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TelephoneTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WORK
@RosettaSynonym(value="Work", source="FpML_5_10") public static final TelephoneTypeEnum WORK
A number used primarily for work-related calls. Includes home office numbers used primarily for work purposes.
-
MOBILE
@RosettaSynonym(value="Mobile", source="FpML_5_10") public static final TelephoneTypeEnum MOBILE
A number on a mobile telephone that is often or usually used for work-related calls. This type of number can be used for urgent work related business when a work number is not sufficient to contact the person or firm.
-
FAX
@RosettaSynonym(value="Fax", source="FpML_5_10") public static final TelephoneTypeEnum FAX
A number used primarily for work-related facsimile transmissions.
-
PERSONAL
@RosettaSynonym(value="Personal", source="FpML_5_10") public static final TelephoneTypeEnum PERSONAL
A number used primarily for non work-related calls. (Normally this type of number would be used only as an emergency backup number, not as a regular course of business).
-
-
Method Detail
-
values
public static TelephoneTypeEnum[] 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 (TelephoneTypeEnum c : TelephoneTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TelephoneTypeEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<TelephoneTypeEnum>
-
-