package ibilling.classifiers;
public class BillingHistoryClassifier
implements java.io.Serializable, iapp.services.Classifier {
public static final BillingHistoryClassifier BILLING = new BillingHistoryClassifier("B");
public static final BillingHistoryClassifier REBILL = new BillingHistoryClassifier("R");
public static final BillingHistoryClassifier BILLING_INACTIVE = new BillingHistoryClassifier("I");
public static final BillingHistoryClassifier REBILL_INACTIVE = new BillingHistoryClassifier("N");
public static final BillingHistoryClassifier FIRST_TIME_CUSTOMER_ACCOUNT = new BillingHistoryClassifier("C");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_PLAN = new BillingHistoryClassifier("P");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_OPTION = new BillingHistoryClassifier("O");
public static final BillingHistoryClassifier LAST_BILLING = new BillingHistoryClassifier("L");
public static final BillingHistoryClassifier BILLING = new BillingHistoryClassifier("B");
public static final BillingHistoryClassifier REBILL = new BillingHistoryClassifier("R");
public static final BillingHistoryClassifier BILLING_INACTIVE = new BillingHistoryClassifier("I");
public static final BillingHistoryClassifier REBILL_INACTIVE = new BillingHistoryClassifier("N");
public static final BillingHistoryClassifier FIRST_TIME_CUSTOMER_ACCOUNT = new BillingHistoryClassifier("C");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_PLAN = new BillingHistoryClassifier("P");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_OPTION = new BillingHistoryClassifier("O");
public static final BillingHistoryClassifier LAST_BILLING = new BillingHistoryClassifier("L");
public static final BillingHistoryClassifier BILLING = new BillingHistoryClassifier("B");
public static final BillingHistoryClassifier REBILL = new BillingHistoryClassifier("R");
public static final BillingHistoryClassifier BILLING_INACTIVE = new BillingHistoryClassifier("I");
public static final BillingHistoryClassifier REBILL_INACTIVE = new BillingHistoryClassifier("N");
public static final BillingHistoryClassifier FIRST_TIME_CUSTOMER_ACCOUNT = new BillingHistoryClassifier("C");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_PLAN = new BillingHistoryClassifier("P");
public static final BillingHistoryClassifier FIRST_TIME_PAYMENT_OPTION = new BillingHistoryClassifier("O");
public static final BillingHistoryClassifier LAST_BILLING = new BillingHistoryClassifier("L");
private static final java.util.Map values = new java.util.TreeMap();
private static java.util.List literals = new java.util.ArrayList(3);
private static java.util.List names = new java.util.ArrayList(3);
/**
* Initializes the values.
*/
static {
values.put(BILLING.value, BILLING);
literals.add(BILLING.value);
BILLING.setName("BILLING");
names.add("BILLING");
values.put(REBILL.value, REBILL);
literals.add(REBILL.value);
REBILL.setName("REBILL");
names.add("REBILL");
values.put(BILLING_INACTIVE.value, BILLING_INACTIVE);
literals.add(BILLING_INACTIVE.value);
BILLING_INACTIVE.setName("BILLING_INACTIVE");
names.add("BILLING_INACTIVE");
values.put(REBILL_INACTIVE.value, REBILL_INACTIVE);
literals.add(REBILL_INACTIVE.value);
REBILL_INACTIVE.setName("REBILL_INACTIVE");
names.add("REBILL_INACTIVE");
values.put(FIRST_TIME_CUSTOMER_ACCOUNT.value, FIRST_TIME_CUSTOMER_ACCOUNT);
literals.add(FIRST_TIME_CUSTOMER_ACCOUNT.value);
FIRST_TIME_CUSTOMER_ACCOUNT.setName("FIRST_TIME_CUSTOMER_ACCOUNT");
names.add("FIRST_TIME_CUSTOMER_ACCOUNT");
values.put(FIRST_TIME_PAYMENT_PLAN.value, FIRST_TIME_PAYMENT_PLAN);
literals.add(FIRST_TIME_PAYMENT_PLAN.value);
FIRST_TIME_PAYMENT_PLAN.setName("FIRST_TIME_PAYMENT_PLAN");
names.add("FIRST_TIME_PAYMENT_PLAN");
values.put(FIRST_TIME_PAYMENT_OPTION.value, FIRST_TIME_PAYMENT_OPTION);
literals.add(FIRST_TIME_PAYMENT_OPTION.value);
FIRST_TIME_PAYMENT_OPTION.setName("FIRST_TIME_PAYMENT_OPTION");
names.add("FIRST_TIME_PAYMENT_OPTION");
values.put(LAST_BILLING.value, LAST_BILLING);
literals.add(LAST_BILLING.value);
LAST_BILLING.setName("LAST_BILLING");
names.add("LAST_BILLING");
values.put(BILLING.value, BILLING);
literals.add(BILLING.value);
BILLING.setName("BILLING");
names.add("BILLING");
values.put(REBILL.value, REBILL);
literals.add(REBILL.value);
REBILL.setName("REBILL");
names.add("REBILL");
values.put(BILLING_INACTIVE.value, BILLING_INACTIVE);
literals.add(BILLING_INACTIVE.value);
BILLING_INACTIVE.setName("BILLING_INACTIVE");
names.add("BILLING_INACTIVE");
values.put(REBILL_INACTIVE.value, REBILL_INACTIVE);
literals.add(REBILL_INACTIVE.value);
REBILL_INACTIVE.setName("REBILL_INACTIVE");
names.add("REBILL_INACTIVE");
values.put(FIRST_TIME_CUSTOMER_ACCOUNT.value, FIRST_TIME_CUSTOMER_ACCOUNT);
literals.add(FIRST_TIME_CUSTOMER_ACCOUNT.value);
FIRST_TIME_CUSTOMER_ACCOUNT.setName("FIRST_TIME_CUSTOMER_ACCOUNT");
names.add("FIRST_TIME_CUSTOMER_ACCOUNT");
values.put(FIRST_TIME_PAYMENT_PLAN.value, FIRST_TIME_PAYMENT_PLAN);
literals.add(FIRST_TIME_PAYMENT_PLAN.value);
FIRST_TIME_PAYMENT_PLAN.setName("FIRST_TIME_PAYMENT_PLAN");
names.add("FIRST_TIME_PAYMENT_PLAN");
values.put(FIRST_TIME_PAYMENT_OPTION.value, FIRST_TIME_PAYMENT_OPTION);
literals.add(FIRST_TIME_PAYMENT_OPTION.value);
FIRST_TIME_PAYMENT_OPTION.setName("FIRST_TIME_PAYMENT_OPTION");
names.add("FIRST_TIME_PAYMENT_OPTION");
values.put(LAST_BILLING.value, LAST_BILLING);
literals.add(LAST_BILLING.value);
LAST_BILLING.setName("LAST_BILLING");
names.add("LAST_BILLING");
values.put(BILLING.value, BILLING);
literals.add(BILLING.value);
BILLING.setName("BILLING");
names.add("BILLING");
values.put(REBILL.value, REBILL);
literals.add(REBILL.value);
REBILL.setName("REBILL");
names.add("REBILL");
values.put(BILLING_INACTIVE.value, BILLING_INACTIVE);
literals.add(BILLING_INACTIVE.value);
BILLING_INACTIVE.setName("BILLING_INACTIVE");
names.add("BILLING_INACTIVE");
values.put(REBILL_INACTIVE.value, REBILL_INACTIVE);
literals.add(REBILL_INACTIVE.value);
REBILL_INACTIVE.setName("REBILL_INACTIVE");
names.add("REBILL_INACTIVE");
values.put(FIRST_TIME_CUSTOMER_ACCOUNT.value, FIRST_TIME_CUSTOMER_ACCOUNT);
literals.add(FIRST_TIME_CUSTOMER_ACCOUNT.value);
FIRST_TIME_CUSTOMER_ACCOUNT.setName("FIRST_TIME_CUSTOMER_ACCOUNT");
names.add("FIRST_TIME_CUSTOMER_ACCOUNT");
values.put(FIRST_TIME_PAYMENT_PLAN.value, FIRST_TIME_PAYMENT_PLAN);
literals.add(FIRST_TIME_PAYMENT_PLAN.value);
FIRST_TIME_PAYMENT_PLAN.setName("FIRST_TIME_PAYMENT_PLAN");
names.add("FIRST_TIME_PAYMENT_PLAN");
values.put(FIRST_TIME_PAYMENT_OPTION.value, FIRST_TIME_PAYMENT_OPTION);
literals.add(FIRST_TIME_PAYMENT_OPTION.value);
FIRST_TIME_PAYMENT_OPTION.setName("FIRST_TIME_PAYMENT_OPTION");
names.add("FIRST_TIME_PAYMENT_OPTION");
values.put(LAST_BILLING.value, LAST_BILLING);
literals.add(LAST_BILLING.value);
LAST_BILLING.setName("LAST_BILLING");
names.add("LAST_BILLING");
literals = java.util.Collections.unmodifiableList(literals);
names = java.util.Collections.unmodifiableList(names);
}
private java.lang.String value;
private java.lang.String name;
/**
* The default constructor allowing super classes to access it.
*/
protected BillingHistoryClassifier() {}
private BillingHistoryClassifier(java.lang.String value) {
this.value = value;
}
public String toString() {
return java.lang.String.valueOf(value);
}
/**
* Creates an instance of BillingHistoryClassifier from <code>value</code>.
*
* @param value the value to create the BillingHistoryClassifier from.
*/
public static BillingHistoryClassifier fromString(java.lang.String value) {
if(value == null) return null;
final BillingHistoryClassifier typeValue = (BillingHistoryClassifier) values.get(value);
if (typeValue == null) {
throw new IllegalArgumentException("invalid value '" + value + "', possible values are: " + literals);
}
return typeValue;
}
/**
* Checks correct value for the classifier
*/
public boolean isBillingHistoryClassifier(java.lang.String value){
return (value == null || values.get(value) != null);
}
/**
* Get/set for value
*/
public java.lang.String getValue() {
return this.value;
}
public java.lang.String getName() {
return this.name;
}
/**
* Get/set for name
*/
private void setName(java.lang.String name) {
this.name = name;
}
/**
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
public int compareTo(Object that)
{
return (this == that) ? 0 : this.getValue().compareTo(((BillingHistoryClassifier)that).getValue());
}
public static java.util.Map getValues() {
return values;
}
/**
* Returns an unmodifiable list containing the literals that are known by this enumeration.
*
* @return A List containing the actual literals defined by this enumeration, this list
* can not be modified.
*/
public static java.util.List literals() {
return literals;
}
/**
* Returns an unmodifiable list containing the names of the literals that are known
* by this enumeration.
*
* @return A List containing the actual names of the literals defined by this
* enumeration, this list can not be modified.
*/
public static java.util.List names() {
return names;
}
/**
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals(Object object) {
return (this == object)
|| (object instanceof BillingHistoryClassifier && ((BillingHistoryClassifier)object).getValue().equals(
this.getValue()));
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return this.getValue().hashCode();
}
/**
* This method allows the deserialization of an instance of this enumeration type to return the actual instance
* that will be the singleton for the JVM in which the current thread is running.
* <p/>
* Doing this will allow users to safely use the equality operator <code>==</code> for enumerations because
* a regular deserialized object is always a newly constructed instance and will therefore never be
* an existing reference; it is this <code>readResolve()</code> method which will intercept the deserialization
* process in order to return the proper singleton reference.
*/
private java.lang.Object readResolve() throws java.io.ObjectStreamException {
return BillingHistoryClassifier.fromString(this.value);
}
}