Package com.xero.models.accounting
Enum LinkedTransaction.TypeEnum
- java.lang.Object
-
- java.lang.Enum<LinkedTransaction.TypeEnum>
-
- com.xero.models.accounting.LinkedTransaction.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LinkedTransaction.TypeEnum>
- Enclosing class:
- LinkedTransaction
public static enum LinkedTransaction.TypeEnum extends Enum<LinkedTransaction.TypeEnum>
This will always be BILLABLEEXPENSE. More types may be added in future.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BILLABLEEXPENSEBILLABLEEXPENSE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkedTransaction.TypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic LinkedTransaction.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LinkedTransaction.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BILLABLEEXPENSE
public static final LinkedTransaction.TypeEnum BILLABLEEXPENSE
BILLABLEEXPENSE
-
-
Method Detail
-
values
public static LinkedTransaction.TypeEnum[] 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 (LinkedTransaction.TypeEnum c : LinkedTransaction.TypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkedTransaction.TypeEnum 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<LinkedTransaction.TypeEnum>- Returns:
- String value
-
fromValue
public static LinkedTransaction.TypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-