Package com.xero.models.accounting
Enum Phone.PhoneTypeEnum
- java.lang.Object
-
- java.lang.Enum<Phone.PhoneTypeEnum>
-
- com.xero.models.accounting.Phone.PhoneTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Phone.PhoneTypeEnum>
- Enclosing class:
- Phone
public static enum Phone.PhoneTypeEnum extends Enum<Phone.PhoneTypeEnum>
Gets or Sets phoneType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Phone.PhoneTypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Phone.PhoneTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Phone.PhoneTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final Phone.PhoneTypeEnum DEFAULT
DEFAULT
-
DDI
public static final Phone.PhoneTypeEnum DDI
DDI
-
MOBILE
public static final Phone.PhoneTypeEnum MOBILE
MOBILE
-
FAX
public static final Phone.PhoneTypeEnum FAX
FAX
-
OFFICE
public static final Phone.PhoneTypeEnum OFFICE
OFFICE
-
-
Method Detail
-
values
public static Phone.PhoneTypeEnum[] 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 (Phone.PhoneTypeEnum c : Phone.PhoneTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Phone.PhoneTypeEnum 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
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<Phone.PhoneTypeEnum>- Returns:
- String value
-
fromValue
public static Phone.PhoneTypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-