KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > action > ActionItemDefinitionType


1 /**
2  * ActionItemDefinitionType.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.action;
9
10 public class ActionItemDefinitionType 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 ActionItemDefinitionType(java.lang.String JavaDoc value) {
16         _value_ = value;
17         _table_.put(_value_,this);
18     }
19
20     public static final java.lang.String JavaDoc _action = "action";
21     public static final java.lang.String JavaDoc _condition = "condition";
22     public static final ActionItemDefinitionType action = new ActionItemDefinitionType(_action);
23     public static final ActionItemDefinitionType condition = new ActionItemDefinitionType(_condition);
24     public java.lang.String JavaDoc getValue() { return _value_;}
25     public static ActionItemDefinitionType fromValue(java.lang.String JavaDoc value)
26           throws java.lang.IllegalArgumentException JavaDoc {
27         ActionItemDefinitionType enumeration = (ActionItemDefinitionType)
28             _table_.get(value);
29         if (enumeration==null) throw new java.lang.IllegalArgumentException JavaDoc();
30         return enumeration;
31     }
32     public static ActionItemDefinitionType fromString(java.lang.String JavaDoc value)
33           throws java.lang.IllegalArgumentException JavaDoc {
34         return fromValue(value);
35     }
36     public boolean equals(java.lang.Object JavaDoc obj) {return (obj == this);}
37     public int hashCode() { return toString().hashCode();}
38     public java.lang.String JavaDoc toString() { return _value_;}
39     public java.lang.Object JavaDoc readResolve() throws java.io.ObjectStreamException JavaDoc { return fromValue(_value_);}
40     public static org.apache.axis.encoding.Serializer getSerializer(
41            java.lang.String JavaDoc mechType,
42            java.lang.Class JavaDoc _javaType,
43            javax.xml.namespace.QName JavaDoc _xmlType) {
44         return
45           new org.apache.axis.encoding.ser.EnumSerializer(
46             _javaType, _xmlType);
47     }
48     public static org.apache.axis.encoding.Deserializer getDeserializer(
49            java.lang.String JavaDoc mechType,
50            java.lang.Class JavaDoc _javaType,
51            javax.xml.namespace.QName JavaDoc _xmlType) {
52         return
53           new org.apache.axis.encoding.ser.EnumDeserializer(
54             _javaType, _xmlType);
55     }
56     // Type metadata
57
private static org.apache.axis.description.TypeDesc typeDesc =
58         new org.apache.axis.description.TypeDesc(ActionItemDefinitionType.class);
59
60     static {
61         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ActionItemDefinitionType"));
62     }
63     /**
64      * Return type metadata object
65      */

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