// !DO NOT EDIT THIS FILE!
// This source file is generated by Oracle tools
// Contents may be subject to change
// For reporting problems, use the following
// Version = Oracle WebServices (10.1.3.3.0, build 070610.1800.23513)

package xqueryws.proxy;


public class Null_handling implements java.io.Serializable {
    private java.lang.String value;
    private static final String _DROP_NULLSString = "DROP_NULLS";
    private static final String _NULL_ATTRString = "NULL_ATTR";
    private static final String _EMPTY_TAGString = "EMPTY_TAG";
    
    public static final java.lang.String _DROP_NULLS = new java.lang.String(_DROP_NULLSString);
    public static final java.lang.String _NULL_ATTR = new java.lang.String(_NULL_ATTRString);
    public static final java.lang.String _EMPTY_TAG = new java.lang.String(_EMPTY_TAGString);
    
    public static final Null_handling DROP_NULLS = new Null_handling(_DROP_NULLS);
    public static final Null_handling NULL_ATTR = new Null_handling(_NULL_ATTR);
    public static final Null_handling EMPTY_TAG = new Null_handling(_EMPTY_TAG);
    
    protected Null_handling(java.lang.String value) {
        this.value = value;
    }
    
    public java.lang.String getValue() {
        return value;
    }
    
    public static Null_handling fromValue(java.lang.String value)
        throws java.lang.IllegalStateException {
        if (DROP_NULLS.value.equals(value)) {
            return DROP_NULLS;
        } else if (NULL_ATTR.value.equals(value)) {
            return NULL_ATTR;
        } else if (EMPTY_TAG.value.equals(value)) {
            return EMPTY_TAG;
        }
        throw new IllegalArgumentException();
    }
    
    public static Null_handling fromString(String value)
        throws java.lang.IllegalStateException {
        if (value.equals(_DROP_NULLSString)) {
            return DROP_NULLS;
        } else if (value.equals(_NULL_ATTRString)) {
            return NULL_ATTR;
        } else if (value.equals(_EMPTY_TAGString)) {
            return EMPTY_TAG;
        }
        throw new IllegalArgumentException();
    }
    
    public String toString() {
        return value.toString();
    }
    
    public boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Null_handling)) {
            return false;
        }
        return ((Null_handling)obj).value.equals(value);
    }
    
    public int hashCode() {
        return value.hashCode();
    }
}
