KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > QueryLanguageEnum


1 /**
2  * QueryLanguageEnum.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.types;
9
10 public class QueryLanguageEnum implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc _value_;
12     private static java.util.HashMap JavaDoc _table_ = new java.util.HashMap JavaDoc();
13
14     // Constructor
15
protected QueryLanguageEnum(java.lang.String JavaDoc value) {
16         _value_ = value;
17         _table_.put(_value_,this);
18     }
19
20     public static final java.lang.String JavaDoc _lucene = "lucene";
21     public static final java.lang.String JavaDoc _xpath = "xpath";
22     public static final java.lang.String JavaDoc _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 JavaDoc getValue() { return _value_;}
27     public static QueryLanguageEnum fromValue(java.lang.String JavaDoc value)
28           throws java.lang.IllegalArgumentException JavaDoc {
29         QueryLanguageEnum enumeration = (QueryLanguageEnum)
30             _table_.get(value);
31         if (enumeration==null) throw new java.lang.IllegalArgumentException JavaDoc();
32         return enumeration;
33     }
34     public static QueryLanguageEnum fromString(java.lang.String JavaDoc value)
35           throws java.lang.IllegalArgumentException JavaDoc {
36         return fromValue(value);
37     }
38     public boolean equals(java.lang.Object JavaDoc obj) {return (obj == this);}
39     public int hashCode() { return toString().hashCode();}
40     public java.lang.String JavaDoc toString() { return _value_;}
41     public java.lang.Object JavaDoc readResolve() throws java.io.ObjectStreamException JavaDoc { return fromValue(_value_);}
42     public static org.apache.axis.encoding.Serializer getSerializer(
43            java.lang.String JavaDoc mechType,
44            java.lang.Class JavaDoc _javaType,
45            javax.xml.namespace.QName JavaDoc _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 JavaDoc mechType,
52            java.lang.Class JavaDoc _javaType,
53            javax.xml.namespace.QName JavaDoc _xmlType) {
54         return
55           new org.apache.axis.encoding.ser.EnumDeserializer(
56             _javaType, _xmlType);
57     }
58     // Type metadata
59
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 JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum"));
64     }
65     /**
66      * Return type metadata object
67      */

68     public static org.apache.axis.description.TypeDesc getTypeDesc() {
69         return typeDesc;
70     }
71
72 }
73
Popular Tags