public enum ChargingPlanAccountType extends java.lang.Enum<ChargingPlanAccountType>
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="AccountType"> <xs:restriction base="xs:string"> <xs:enumeration value="postpaid"/> <xs:enumeration value="prepaid"/> </xs:restriction> </xs:simpleType>
| Enum Constant and Description |
|---|
POSTPAID
When an account is a postpaid account.
|
PREPAID
When an account is a prepaid account.
|
| Modifier and Type | Method and Description |
|---|---|
static ChargingPlanAccountType |
getAccountTypeFromId(int accountTypeId)
Gets the ChargingPlanAccountType instance corresponding to the identifier.
|
static ChargingPlanAccountType |
getAccountTypeFromPrettyName(java.lang.String prettyName)
Gets the ChargingPlanAccountType instance corresponding to the pretty name.
|
int |
getId()
Gets the identifier of the account type.
For instance, it is as SQL column value. |
java.lang.String |
getPrettyName()
Gets the name of the account type.
For instance, it is as XML attribute value. |
static ChargingPlanAccountType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChargingPlanAccountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChargingPlanAccountType POSTPAID
public static final ChargingPlanAccountType PREPAID
public static ChargingPlanAccountType[] values()
for (ChargingPlanAccountType c : ChargingPlanAccountType.values()) System.out.println(c);
public static ChargingPlanAccountType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPrettyName()
public int getId()
public static final ChargingPlanAccountType getAccountTypeFromPrettyName(java.lang.String prettyName)
prettyName - the name of the account typenull otherwise.public static final ChargingPlanAccountType getAccountTypeFromId(int accountTypeId)
accountTypeId - the identifier of the account typenull otherwise.