Package com.xero.models.accounting
Enum Organisation.PropertyClassEnum
- java.lang.Object
-
- java.lang.Enum<Organisation.PropertyClassEnum>
-
- com.xero.models.accounting.Organisation.PropertyClassEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Organisation.PropertyClassEnum>
- Enclosing class:
- Organisation
public static enum Organisation.PropertyClassEnum extends Enum<Organisation.PropertyClassEnum>
Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEMODEMOGST_CASHBOOKGST_CASHBOOKLEDGERLEDGERNON_GST_CASHBOOKNON_GST_CASHBOOKPREMIUMPREMIUMPREMIUM_100PREMIUM_100PREMIUM_20PREMIUM_20PREMIUM_50PREMIUM_50STANDARDSTANDARDSTARTERSTARTERTRIALTRIAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Organisation.PropertyClassEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Organisation.PropertyClassEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Organisation.PropertyClassEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEMO
public static final Organisation.PropertyClassEnum DEMO
DEMO
-
TRIAL
public static final Organisation.PropertyClassEnum TRIAL
TRIAL
-
STARTER
public static final Organisation.PropertyClassEnum STARTER
STARTER
-
STANDARD
public static final Organisation.PropertyClassEnum STANDARD
STANDARD
-
PREMIUM
public static final Organisation.PropertyClassEnum PREMIUM
PREMIUM
-
PREMIUM_20
public static final Organisation.PropertyClassEnum PREMIUM_20
PREMIUM_20
-
PREMIUM_50
public static final Organisation.PropertyClassEnum PREMIUM_50
PREMIUM_50
-
PREMIUM_100
public static final Organisation.PropertyClassEnum PREMIUM_100
PREMIUM_100
-
LEDGER
public static final Organisation.PropertyClassEnum LEDGER
LEDGER
-
GST_CASHBOOK
public static final Organisation.PropertyClassEnum GST_CASHBOOK
GST_CASHBOOK
-
NON_GST_CASHBOOK
public static final Organisation.PropertyClassEnum NON_GST_CASHBOOK
NON_GST_CASHBOOK
-
-
Method Detail
-
values
public static Organisation.PropertyClassEnum[] 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 (Organisation.PropertyClassEnum c : Organisation.PropertyClassEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Organisation.PropertyClassEnum 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<Organisation.PropertyClassEnum>- Returns:
- String value
-
fromValue
public static Organisation.PropertyClassEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-