/** * AttributesState.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package net.conselldemallorca.helium.wsintegraciones.indra.portafirmasmcgdws.mcgdws; import net.conselldemallorca.helium.wsintegraciones.indra.portafirmasmcgdws.mcgdws.AttributesState; public class AttributesState implements java.io.Serializable { private int _value_; private static java.util.HashMap _table_ = new java.util.HashMap(); // Constructor protected AttributesState(int value) { _value_ = value; _table_.put(new java.lang.Integer(_value_),this); } public static final int _value1 = 0; public static final int _value2 = 1; public static final int _value3 = 2; public static final int _value4 = 3; public static final AttributesState value1 = new AttributesState(_value1); public static final AttributesState value2 = new AttributesState(_value2); public static final AttributesState value3 = new AttributesState(_value3); public static final AttributesState value4 = new AttributesState(_value4); public int getValue() { return _value_;} public static AttributesState fromValue(int value) throws java.lang.IllegalArgumentException { AttributesState enumeration = (AttributesState) _table_.get(new java.lang.Integer(value)); if (enumeration==null) throw new java.lang.IllegalArgumentException(); return enumeration; } public static AttributesState fromString(java.lang.String value) throws java.lang.IllegalArgumentException { try { return fromValue(java.lang.Integer.parseInt(value)); } catch (Exception e) { throw new java.lang.IllegalArgumentException(); } } public boolean equals(java.lang.Object obj) {return (obj == this);} public int hashCode() { return toString().hashCode();} public java.lang.String toString() { return java.lang.String.valueOf(_value_);} public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumSerializer( _javaType, _xmlType); } public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumDeserializer( _javaType, _xmlType); } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(AttributesState.class); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.indra.es/portafirmasmcgdws/mcgdws", ">Attributes>state")); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } }