1 7 8 package org.alfresco.example.webservice.types; 9 10 public class QueryLanguageEnum implements java.io.Serializable { 11 private java.lang.String _value_; 12 private static java.util.HashMap _table_ = new java.util.HashMap (); 13 14 protected QueryLanguageEnum(java.lang.String value) { 16 _value_ = value; 17 _table_.put(_value_,this); 18 } 19 20 public static final java.lang.String _lucene = "lucene"; 21 public static final java.lang.String _xpath = "xpath"; 22 public static final java.lang.String _cql = "cql"; 23 public static final QueryLanguageEnum lucene = new QueryLanguageEnum(_lucene); 24 public static final QueryLanguageEnum xpath = new QueryLanguageEnum(_xpath); 25 public static final QueryLanguageEnum cql = new QueryLanguageEnum(_cql); 26 public java.lang.String getValue() { return _value_;} 27 public static QueryLanguageEnum fromValue(java.lang.String value) 28 throws java.lang.IllegalArgumentException { 29 QueryLanguageEnum enumeration = (QueryLanguageEnum) 30 _table_.get(value); 31 if (enumeration==null) throw new java.lang.IllegalArgumentException (); 32 return enumeration; 33 } 34 public static QueryLanguageEnum fromString(java.lang.String value) 35 throws java.lang.IllegalArgumentException { 36 return fromValue(value); 37 } 38 public boolean equals(java.lang.Object obj) {return (obj == this);} 39 public int hashCode() { return toString().hashCode();} 40 public java.lang.String toString() { return _value_;} 41 public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} 42 public static org.apache.axis.encoding.Serializer getSerializer( 43 java.lang.String mechType, 44 java.lang.Class _javaType, 45 javax.xml.namespace.QName _xmlType) { 46 return 47 new org.apache.axis.encoding.ser.EnumSerializer( 48 _javaType, _xmlType); 49 } 50 public static org.apache.axis.encoding.Deserializer getDeserializer( 51 java.lang.String mechType, 52 java.lang.Class _javaType, 53 javax.xml.namespace.QName _xmlType) { 54 return 55 new org.apache.axis.encoding.ser.EnumDeserializer( 56 _javaType, _xmlType); 57 } 58 private static org.apache.axis.description.TypeDesc typeDesc = 60 new org.apache.axis.description.TypeDesc(QueryLanguageEnum.class); 61 62 static { 63 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum")); 64 } 65 68 public static org.apache.axis.description.TypeDesc getTypeDesc() { 69 return typeDesc; 70 } 71 72 } 73 | Popular Tags |