Package com.xero.models.accounting
Enum AddressForOrganisation.AddressTypeEnum
- java.lang.Object
-
- java.lang.Enum<AddressForOrganisation.AddressTypeEnum>
-
- com.xero.models.accounting.AddressForOrganisation.AddressTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<AddressForOrganisation.AddressTypeEnum>
- Enclosing class:
- AddressForOrganisation
public static enum AddressForOrganisation.AddressTypeEnum extends Enum<AddressForOrganisation.AddressTypeEnum>
define the type of address
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressForOrganisation.AddressTypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic AddressForOrganisation.AddressTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static AddressForOrganisation.AddressTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POBOX
public static final AddressForOrganisation.AddressTypeEnum POBOX
POBOX
-
STREET
public static final AddressForOrganisation.AddressTypeEnum STREET
STREET
-
DELIVERY
public static final AddressForOrganisation.AddressTypeEnum DELIVERY
DELIVERY
-
-
Method Detail
-
values
public static AddressForOrganisation.AddressTypeEnum[] 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 (AddressForOrganisation.AddressTypeEnum c : AddressForOrganisation.AddressTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressForOrganisation.AddressTypeEnum 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<AddressForOrganisation.AddressTypeEnum>- Returns:
- String value
-
fromValue
public static AddressForOrganisation.AddressTypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-