// !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 Query_textType implements java.io.Serializable {
    private java.lang.String value;
    private static final String _SQLString = "SQL";
    private static final String _XQUERYString = "XQUERY";
    private static final String _XQUERYXString = "XQUERYX";
    private static final String _PLSQLString = "PLSQL";
    private static final String _TABLEString = "TABLE";
    
    public static final java.lang.String _SQL = new java.lang.String(_SQLString);
    public static final java.lang.String _XQUERY = new java.lang.String(_XQUERYString);
    public static final java.lang.String _XQUERYX = new java.lang.String(_XQUERYXString);
    public static final java.lang.String _PLSQL = new java.lang.String(_PLSQLString);
    public static final java.lang.String _TABLE = new java.lang.String(_TABLEString);
    
    public static final Query_textType SQL = new Query_textType(_SQL);
    public static final Query_textType XQUERY = new Query_textType(_XQUERY);
    public static final Query_textType XQUERYX = new Query_textType(_XQUERYX);
    public static final Query_textType PLSQL = new Query_textType(_PLSQL);
    public static final Query_textType TABLE = new Query_textType(_TABLE);
    
    protected Query_textType(java.lang.String value) {
        this.value = value;
    }
    
    public java.lang.String getValue() {
        return value;
    }
    
    public static Query_textType fromValue(java.lang.String value)
        throws java.lang.IllegalStateException {
        if (SQL.value.equals(value)) {
            return SQL;
        } else if (XQUERY.value.equals(value)) {
            return XQUERY;
        } else if (XQUERYX.value.equals(value)) {
            return XQUERYX;
        } else if (PLSQL.value.equals(value)) {
            return PLSQL;
        } else if (TABLE.value.equals(value)) {
            return TABLE;
        }
        throw new IllegalArgumentException();
    }
    
    public static Query_textType fromString(String value)
        throws java.lang.IllegalStateException {
        if (value.equals(_SQLString)) {
            return SQL;
        } else if (value.equals(_XQUERYString)) {
            return XQUERY;
        } else if (value.equals(_XQUERYXString)) {
            return XQUERYX;
        } else if (value.equals(_PLSQLString)) {
            return PLSQL;
        } else if (value.equals(_TABLEString)) {
            return TABLE;
        }
        throw new IllegalArgumentException();
    }
    
    public String toString() {
        return value.toString();
    }
    
    public boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Query_textType)) {
            return false;
        }
        return ((Query_textType)obj).value.equals(value);
    }
    
    public int hashCode() {
        return value.hashCode();
    }
}
