package ibilling.classifiers;
 
public class AssetTransactionClassifier 
    implements java.io.Serializable, iapp.services.Classifier {
 
    public static final AssetTransactionClassifier ALLOWANCE = new AssetTransactionClassifier("L");
    public static final AssetTransactionClassifier CASH = new AssetTransactionClassifier("K");
    public static final AssetTransactionClassifier CHECK = new AssetTransactionClassifier("H");
    public static final AssetTransactionClassifier EXTERNAL = new AssetTransactionClassifier("E");
    public static final AssetTransactionClassifier PAYMENT_PLAN = new AssetTransactionClassifier("P");
    public static final AssetTransactionClassifier SETTLEMENT = new AssetTransactionClassifier("T");
    public static final AssetTransactionClassifier WRITE_OFF = new AssetTransactionClassifier("W");
    public static final AssetTransactionClassifier AMEX = new AssetTransactionClassifier("AC");
    public static final AssetTransactionClassifier DISCOVER_CREDIT = new AssetTransactionClassifier("DC");
    public static final AssetTransactionClassifier DISCOVER_DEBIT = new AssetTransactionClassifier("DD");
    public static final AssetTransactionClassifier MASTER_CARD_CREDIT = new AssetTransactionClassifier("MC");
    public static final AssetTransactionClassifier MASTER_CARD_DEBIT = new AssetTransactionClassifier("MD");
    public static final AssetTransactionClassifier VISA_CREDIT = new AssetTransactionClassifier("VC");
    public static final AssetTransactionClassifier VISA_DEBIT = new AssetTransactionClassifier("VD");
    public static final AssetTransactionClassifier CHECKING = new AssetTransactionClassifier("BC");
    public static final AssetTransactionClassifier SAVINGS = new AssetTransactionClassifier("BS");
    public static final AssetTransactionClassifier MONEY_ORDER = new AssetTransactionClassifier("M");
    public static final AssetTransactionClassifier MASTER_CARD_PREPAID = new AssetTransactionClassifier("MP");
    public static final AssetTransactionClassifier VISA_PREPAID = new AssetTransactionClassifier("VP");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_CREDIT = new AssetTransactionClassifier("UC");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_DEBIT = new AssetTransactionClassifier("UD");
    public static final AssetTransactionClassifier ALLOWANCE = new AssetTransactionClassifier("L");
    public static final AssetTransactionClassifier CASH = new AssetTransactionClassifier("K");
    public static final AssetTransactionClassifier CHECK = new AssetTransactionClassifier("H");
    public static final AssetTransactionClassifier EXTERNAL = new AssetTransactionClassifier("E");
    public static final AssetTransactionClassifier PAYMENT_PLAN = new AssetTransactionClassifier("P");
    public static final AssetTransactionClassifier SETTLEMENT = new AssetTransactionClassifier("T");
    public static final AssetTransactionClassifier WRITE_OFF = new AssetTransactionClassifier("W");
    public static final AssetTransactionClassifier AMEX = new AssetTransactionClassifier("AC");
    public static final AssetTransactionClassifier DISCOVER_CREDIT = new AssetTransactionClassifier("DC");
    public static final AssetTransactionClassifier DISCOVER_DEBIT = new AssetTransactionClassifier("DD");
    public static final AssetTransactionClassifier MASTER_CARD_CREDIT = new AssetTransactionClassifier("MC");
    public static final AssetTransactionClassifier MASTER_CARD_DEBIT = new AssetTransactionClassifier("MD");
    public static final AssetTransactionClassifier VISA_CREDIT = new AssetTransactionClassifier("VC");
    public static final AssetTransactionClassifier VISA_DEBIT = new AssetTransactionClassifier("VD");
    public static final AssetTransactionClassifier CHECKING = new AssetTransactionClassifier("BC");
    public static final AssetTransactionClassifier SAVINGS = new AssetTransactionClassifier("BS");
    public static final AssetTransactionClassifier MONEY_ORDER = new AssetTransactionClassifier("M");
    public static final AssetTransactionClassifier MASTER_CARD_PREPAID = new AssetTransactionClassifier("MP");
    public static final AssetTransactionClassifier VISA_PREPAID = new AssetTransactionClassifier("VP");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_CREDIT = new AssetTransactionClassifier("UC");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_DEBIT = new AssetTransactionClassifier("UD");
    public static final AssetTransactionClassifier ALLOWANCE = new AssetTransactionClassifier("L");
    public static final AssetTransactionClassifier CASH = new AssetTransactionClassifier("K");
    public static final AssetTransactionClassifier CHECK = new AssetTransactionClassifier("H");
    public static final AssetTransactionClassifier EXTERNAL = new AssetTransactionClassifier("E");
    public static final AssetTransactionClassifier PAYMENT_PLAN = new AssetTransactionClassifier("P");
    public static final AssetTransactionClassifier SETTLEMENT = new AssetTransactionClassifier("T");
    public static final AssetTransactionClassifier WRITE_OFF = new AssetTransactionClassifier("W");
    public static final AssetTransactionClassifier AMEX = new AssetTransactionClassifier("AC");
    public static final AssetTransactionClassifier DISCOVER_CREDIT = new AssetTransactionClassifier("DC");
    public static final AssetTransactionClassifier DISCOVER_DEBIT = new AssetTransactionClassifier("DD");
    public static final AssetTransactionClassifier MASTER_CARD_CREDIT = new AssetTransactionClassifier("MC");
    public static final AssetTransactionClassifier MASTER_CARD_DEBIT = new AssetTransactionClassifier("MD");
    public static final AssetTransactionClassifier VISA_CREDIT = new AssetTransactionClassifier("VC");
    public static final AssetTransactionClassifier VISA_DEBIT = new AssetTransactionClassifier("VD");
    public static final AssetTransactionClassifier CHECKING = new AssetTransactionClassifier("BC");
    public static final AssetTransactionClassifier SAVINGS = new AssetTransactionClassifier("BS");
    public static final AssetTransactionClassifier MONEY_ORDER = new AssetTransactionClassifier("M");
    public static final AssetTransactionClassifier MASTER_CARD_PREPAID = new AssetTransactionClassifier("MP");
    public static final AssetTransactionClassifier VISA_PREPAID = new AssetTransactionClassifier("VP");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_CREDIT = new AssetTransactionClassifier("UC");
    public static final AssetTransactionClassifier CHINA_UNION_PAY_DEBIT = new AssetTransactionClassifier("UD");
    public static final AssetTransactionClassifier MADA = new AssetTransactionClassifier("ND");
    public static final AssetTransactionClassifier MADA = new AssetTransactionClassifier("ND");
    public static final AssetTransactionClassifier MADA = new AssetTransactionClassifier("ND");
 
    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(ALLOWANCE.value, ALLOWANCE);
	literals.add(ALLOWANCE.value);
	ALLOWANCE.setName("ALLOWANCE");
        names.add("ALLOWANCE");
        values.put(CASH.value, CASH);
	literals.add(CASH.value);
	CASH.setName("CASH");
        names.add("CASH");
        values.put(CHECK.value, CHECK);
	literals.add(CHECK.value);
	CHECK.setName("CHECK");
        names.add("CHECK");
        values.put(EXTERNAL.value, EXTERNAL);
	literals.add(EXTERNAL.value);
	EXTERNAL.setName("EXTERNAL");
        names.add("EXTERNAL");
        values.put(PAYMENT_PLAN.value, PAYMENT_PLAN);
	literals.add(PAYMENT_PLAN.value);
	PAYMENT_PLAN.setName("PAYMENT_PLAN");
        names.add("PAYMENT_PLAN");
        values.put(SETTLEMENT.value, SETTLEMENT);
	literals.add(SETTLEMENT.value);
	SETTLEMENT.setName("SETTLEMENT");
        names.add("SETTLEMENT");
        values.put(WRITE_OFF.value, WRITE_OFF);
	literals.add(WRITE_OFF.value);
	WRITE_OFF.setName("WRITE_OFF");
        names.add("WRITE_OFF");
        values.put(AMEX.value, AMEX);
	literals.add(AMEX.value);
	AMEX.setName("AMEX");
        names.add("AMEX");
        values.put(DISCOVER_CREDIT.value, DISCOVER_CREDIT);
	literals.add(DISCOVER_CREDIT.value);
	DISCOVER_CREDIT.setName("DISCOVER_CREDIT");
        names.add("DISCOVER_CREDIT");
        values.put(DISCOVER_DEBIT.value, DISCOVER_DEBIT);
	literals.add(DISCOVER_DEBIT.value);
	DISCOVER_DEBIT.setName("DISCOVER_DEBIT");
        names.add("DISCOVER_DEBIT");
        values.put(MASTER_CARD_CREDIT.value, MASTER_CARD_CREDIT);
	literals.add(MASTER_CARD_CREDIT.value);
	MASTER_CARD_CREDIT.setName("MASTER_CARD_CREDIT");
        names.add("MASTER_CARD_CREDIT");
        values.put(MASTER_CARD_DEBIT.value, MASTER_CARD_DEBIT);
	literals.add(MASTER_CARD_DEBIT.value);
	MASTER_CARD_DEBIT.setName("MASTER_CARD_DEBIT");
        names.add("MASTER_CARD_DEBIT");
        values.put(VISA_CREDIT.value, VISA_CREDIT);
	literals.add(VISA_CREDIT.value);
	VISA_CREDIT.setName("VISA_CREDIT");
        names.add("VISA_CREDIT");
        values.put(VISA_DEBIT.value, VISA_DEBIT);
	literals.add(VISA_DEBIT.value);
	VISA_DEBIT.setName("VISA_DEBIT");
        names.add("VISA_DEBIT");
        values.put(CHECKING.value, CHECKING);
	literals.add(CHECKING.value);
	CHECKING.setName("CHECKING");
        names.add("CHECKING");
        values.put(SAVINGS.value, SAVINGS);
	literals.add(SAVINGS.value);
	SAVINGS.setName("SAVINGS");
        names.add("SAVINGS");
        values.put(MONEY_ORDER.value, MONEY_ORDER);
	literals.add(MONEY_ORDER.value);
	MONEY_ORDER.setName("MONEY_ORDER");
        names.add("MONEY_ORDER");
        values.put(MASTER_CARD_PREPAID.value, MASTER_CARD_PREPAID);
	literals.add(MASTER_CARD_PREPAID.value);
	MASTER_CARD_PREPAID.setName("MASTER_CARD_PREPAID");
        names.add("MASTER_CARD_PREPAID");
        values.put(VISA_PREPAID.value, VISA_PREPAID);
	literals.add(VISA_PREPAID.value);
	VISA_PREPAID.setName("VISA_PREPAID");
        names.add("VISA_PREPAID");
        values.put(CHINA_UNION_PAY_CREDIT.value, CHINA_UNION_PAY_CREDIT);
	literals.add(CHINA_UNION_PAY_CREDIT.value);
	CHINA_UNION_PAY_CREDIT.setName("CHINA_UNION_PAY_CREDIT");
        names.add("CHINA_UNION_PAY_CREDIT");
        values.put(CHINA_UNION_PAY_DEBIT.value, CHINA_UNION_PAY_DEBIT);
	literals.add(CHINA_UNION_PAY_DEBIT.value);
	CHINA_UNION_PAY_DEBIT.setName("CHINA_UNION_PAY_DEBIT");
        names.add("CHINA_UNION_PAY_DEBIT");
        values.put(ALLOWANCE.value, ALLOWANCE);
	literals.add(ALLOWANCE.value);
	ALLOWANCE.setName("ALLOWANCE");
        names.add("ALLOWANCE");
        values.put(CASH.value, CASH);
	literals.add(CASH.value);
	CASH.setName("CASH");
        names.add("CASH");
        values.put(CHECK.value, CHECK);
	literals.add(CHECK.value);
	CHECK.setName("CHECK");
        names.add("CHECK");
        values.put(EXTERNAL.value, EXTERNAL);
	literals.add(EXTERNAL.value);
	EXTERNAL.setName("EXTERNAL");
        names.add("EXTERNAL");
        values.put(PAYMENT_PLAN.value, PAYMENT_PLAN);
	literals.add(PAYMENT_PLAN.value);
	PAYMENT_PLAN.setName("PAYMENT_PLAN");
        names.add("PAYMENT_PLAN");
        values.put(SETTLEMENT.value, SETTLEMENT);
	literals.add(SETTLEMENT.value);
	SETTLEMENT.setName("SETTLEMENT");
        names.add("SETTLEMENT");
        values.put(WRITE_OFF.value, WRITE_OFF);
	literals.add(WRITE_OFF.value);
	WRITE_OFF.setName("WRITE_OFF");
        names.add("WRITE_OFF");
        values.put(AMEX.value, AMEX);
	literals.add(AMEX.value);
	AMEX.setName("AMEX");
        names.add("AMEX");
        values.put(DISCOVER_CREDIT.value, DISCOVER_CREDIT);
	literals.add(DISCOVER_CREDIT.value);
	DISCOVER_CREDIT.setName("DISCOVER_CREDIT");
        names.add("DISCOVER_CREDIT");
        values.put(DISCOVER_DEBIT.value, DISCOVER_DEBIT);
	literals.add(DISCOVER_DEBIT.value);
	DISCOVER_DEBIT.setName("DISCOVER_DEBIT");
        names.add("DISCOVER_DEBIT");
        values.put(MASTER_CARD_CREDIT.value, MASTER_CARD_CREDIT);
	literals.add(MASTER_CARD_CREDIT.value);
	MASTER_CARD_CREDIT.setName("MASTER_CARD_CREDIT");
        names.add("MASTER_CARD_CREDIT");
        values.put(MASTER_CARD_DEBIT.value, MASTER_CARD_DEBIT);
	literals.add(MASTER_CARD_DEBIT.value);
	MASTER_CARD_DEBIT.setName("MASTER_CARD_DEBIT");
        names.add("MASTER_CARD_DEBIT");
        values.put(VISA_CREDIT.value, VISA_CREDIT);
	literals.add(VISA_CREDIT.value);
	VISA_CREDIT.setName("VISA_CREDIT");
        names.add("VISA_CREDIT");
        values.put(VISA_DEBIT.value, VISA_DEBIT);
	literals.add(VISA_DEBIT.value);
	VISA_DEBIT.setName("VISA_DEBIT");
        names.add("VISA_DEBIT");
        values.put(CHECKING.value, CHECKING);
	literals.add(CHECKING.value);
	CHECKING.setName("CHECKING");
        names.add("CHECKING");
        values.put(SAVINGS.value, SAVINGS);
	literals.add(SAVINGS.value);
	SAVINGS.setName("SAVINGS");
        names.add("SAVINGS");
        values.put(MONEY_ORDER.value, MONEY_ORDER);
	literals.add(MONEY_ORDER.value);
	MONEY_ORDER.setName("MONEY_ORDER");
        names.add("MONEY_ORDER");
        values.put(MASTER_CARD_PREPAID.value, MASTER_CARD_PREPAID);
	literals.add(MASTER_CARD_PREPAID.value);
	MASTER_CARD_PREPAID.setName("MASTER_CARD_PREPAID");
        names.add("MASTER_CARD_PREPAID");
        values.put(VISA_PREPAID.value, VISA_PREPAID);
	literals.add(VISA_PREPAID.value);
	VISA_PREPAID.setName("VISA_PREPAID");
        names.add("VISA_PREPAID");
        values.put(CHINA_UNION_PAY_CREDIT.value, CHINA_UNION_PAY_CREDIT);
	literals.add(CHINA_UNION_PAY_CREDIT.value);
	CHINA_UNION_PAY_CREDIT.setName("CHINA_UNION_PAY_CREDIT");
        names.add("CHINA_UNION_PAY_CREDIT");
        values.put(CHINA_UNION_PAY_DEBIT.value, CHINA_UNION_PAY_DEBIT);
	literals.add(CHINA_UNION_PAY_DEBIT.value);
	CHINA_UNION_PAY_DEBIT.setName("CHINA_UNION_PAY_DEBIT");
        names.add("CHINA_UNION_PAY_DEBIT");
        values.put(ALLOWANCE.value, ALLOWANCE);
	literals.add(ALLOWANCE.value);
	ALLOWANCE.setName("ALLOWANCE");
        names.add("ALLOWANCE");
        values.put(CASH.value, CASH);
	literals.add(CASH.value);
	CASH.setName("CASH");
        names.add("CASH");
        values.put(CHECK.value, CHECK);
	literals.add(CHECK.value);
	CHECK.setName("CHECK");
        names.add("CHECK");
        values.put(EXTERNAL.value, EXTERNAL);
	literals.add(EXTERNAL.value);
	EXTERNAL.setName("EXTERNAL");
        names.add("EXTERNAL");
        values.put(PAYMENT_PLAN.value, PAYMENT_PLAN);
	literals.add(PAYMENT_PLAN.value);
	PAYMENT_PLAN.setName("PAYMENT_PLAN");
        names.add("PAYMENT_PLAN");
        values.put(SETTLEMENT.value, SETTLEMENT);
	literals.add(SETTLEMENT.value);
	SETTLEMENT.setName("SETTLEMENT");
        names.add("SETTLEMENT");
        values.put(WRITE_OFF.value, WRITE_OFF);
	literals.add(WRITE_OFF.value);
	WRITE_OFF.setName("WRITE_OFF");
        names.add("WRITE_OFF");
        values.put(AMEX.value, AMEX);
	literals.add(AMEX.value);
	AMEX.setName("AMEX");
        names.add("AMEX");
        values.put(DISCOVER_CREDIT.value, DISCOVER_CREDIT);
	literals.add(DISCOVER_CREDIT.value);
	DISCOVER_CREDIT.setName("DISCOVER_CREDIT");
        names.add("DISCOVER_CREDIT");
        values.put(DISCOVER_DEBIT.value, DISCOVER_DEBIT);
	literals.add(DISCOVER_DEBIT.value);
	DISCOVER_DEBIT.setName("DISCOVER_DEBIT");
        names.add("DISCOVER_DEBIT");
        values.put(MASTER_CARD_CREDIT.value, MASTER_CARD_CREDIT);
	literals.add(MASTER_CARD_CREDIT.value);
	MASTER_CARD_CREDIT.setName("MASTER_CARD_CREDIT");
        names.add("MASTER_CARD_CREDIT");
        values.put(MASTER_CARD_DEBIT.value, MASTER_CARD_DEBIT);
	literals.add(MASTER_CARD_DEBIT.value);
	MASTER_CARD_DEBIT.setName("MASTER_CARD_DEBIT");
        names.add("MASTER_CARD_DEBIT");
        values.put(VISA_CREDIT.value, VISA_CREDIT);
	literals.add(VISA_CREDIT.value);
	VISA_CREDIT.setName("VISA_CREDIT");
        names.add("VISA_CREDIT");
        values.put(VISA_DEBIT.value, VISA_DEBIT);
	literals.add(VISA_DEBIT.value);
	VISA_DEBIT.setName("VISA_DEBIT");
        names.add("VISA_DEBIT");
        values.put(CHECKING.value, CHECKING);
	literals.add(CHECKING.value);
	CHECKING.setName("CHECKING");
        names.add("CHECKING");
        values.put(SAVINGS.value, SAVINGS);
	literals.add(SAVINGS.value);
	SAVINGS.setName("SAVINGS");
        names.add("SAVINGS");
        values.put(MONEY_ORDER.value, MONEY_ORDER);
	literals.add(MONEY_ORDER.value);
	MONEY_ORDER.setName("MONEY_ORDER");
        names.add("MONEY_ORDER");
        values.put(MASTER_CARD_PREPAID.value, MASTER_CARD_PREPAID);
	literals.add(MASTER_CARD_PREPAID.value);
	MASTER_CARD_PREPAID.setName("MASTER_CARD_PREPAID");
        names.add("MASTER_CARD_PREPAID");
        values.put(VISA_PREPAID.value, VISA_PREPAID);
	literals.add(VISA_PREPAID.value);
	VISA_PREPAID.setName("VISA_PREPAID");
        names.add("VISA_PREPAID");
        values.put(CHINA_UNION_PAY_CREDIT.value, CHINA_UNION_PAY_CREDIT);
	literals.add(CHINA_UNION_PAY_CREDIT.value);
	CHINA_UNION_PAY_CREDIT.setName("CHINA_UNION_PAY_CREDIT");
        names.add("CHINA_UNION_PAY_CREDIT");
        values.put(CHINA_UNION_PAY_DEBIT.value, CHINA_UNION_PAY_DEBIT);
	literals.add(CHINA_UNION_PAY_DEBIT.value);
	CHINA_UNION_PAY_DEBIT.setName("CHINA_UNION_PAY_DEBIT");
        names.add("CHINA_UNION_PAY_DEBIT");
        values.put(MADA.value, MADA);
	literals.add(MADA.value);
	MADA.setName("MADA");
        names.add("MADA");
        values.put(MADA.value, MADA);
	literals.add(MADA.value);
	MADA.setName("MADA");
        names.add("MADA");
        values.put(MADA.value, MADA);
	literals.add(MADA.value);
	MADA.setName("MADA");
        names.add("MADA");
        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 AssetTransactionClassifier() {}
 
    private AssetTransactionClassifier(java.lang.String value) {
        this.value = value;
    }
 
	public String toString() {
        return java.lang.String.valueOf(value);
    }
 
    /**
     * Creates an instance of AssetTransactionClassifier from <code>value</code>.
     *
     * @param value the value to create the AssetTransactionClassifier from.
     */
    public static AssetTransactionClassifier fromString(java.lang.String value) {
        if(value == null) return null;
		final AssetTransactionClassifier typeValue = (AssetTransactionClassifier) 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 isAssetTransactionClassifier(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(((AssetTransactionClassifier)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 AssetTransactionClassifier && ((AssetTransactionClassifier)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 AssetTransactionClassifier.fromString(this.value);
    }
 
}