1   /**
2    * ClonePortlet.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
6    */
7   
8   package oasis.names.tc.wsrp.v1.types;
9   
10  public class ClonePortlet  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12      private oasis.names.tc.wsrp.v1.types.PortletContext portletContext;
13      private oasis.names.tc.wsrp.v1.types.UserContext userContext;
14  
15      public ClonePortlet() {
16      }
17  
18      public ClonePortlet(
19             oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
20             oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
21             oasis.names.tc.wsrp.v1.types.UserContext userContext) {
22             this.registrationContext = registrationContext;
23             this.portletContext = portletContext;
24             this.userContext = userContext;
25      }
26  
27  
28      /**
29       * Gets the registrationContext value for this ClonePortlet.
30       * 
31       * @return registrationContext
32       */
33      public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
34          return registrationContext;
35      }
36  
37  
38      /**
39       * Sets the registrationContext value for this ClonePortlet.
40       * 
41       * @param registrationContext
42       */
43      public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
44          this.registrationContext = registrationContext;
45      }
46  
47  
48      /**
49       * Gets the portletContext value for this ClonePortlet.
50       * 
51       * @return portletContext
52       */
53      public oasis.names.tc.wsrp.v1.types.PortletContext getPortletContext() {
54          return portletContext;
55      }
56  
57  
58      /**
59       * Sets the portletContext value for this ClonePortlet.
60       * 
61       * @param portletContext
62       */
63      public void setPortletContext(oasis.names.tc.wsrp.v1.types.PortletContext portletContext) {
64          this.portletContext = portletContext;
65      }
66  
67  
68      /**
69       * Gets the userContext value for this ClonePortlet.
70       * 
71       * @return userContext
72       */
73      public oasis.names.tc.wsrp.v1.types.UserContext getUserContext() {
74          return userContext;
75      }
76  
77  
78      /**
79       * Sets the userContext value for this ClonePortlet.
80       * 
81       * @param userContext
82       */
83      public void setUserContext(oasis.names.tc.wsrp.v1.types.UserContext userContext) {
84          this.userContext = userContext;
85      }
86  
87      private java.lang.Object __equalsCalc = null;
88      public synchronized boolean equals(java.lang.Object obj) {
89          if (!(obj instanceof ClonePortlet)) return false;
90          ClonePortlet other = (ClonePortlet) obj;
91          if (obj == null) return false;
92          if (this == obj) return true;
93          if (__equalsCalc != null) {
94              return (__equalsCalc == obj);
95          }
96          __equalsCalc = obj;
97          boolean _equals;
98          _equals = true && 
99              ((this.registrationContext==null && other.getRegistrationContext()==null) || 
100              (this.registrationContext!=null &&
101               this.registrationContext.equals(other.getRegistrationContext()))) &&
102             ((this.portletContext==null && other.getPortletContext()==null) || 
103              (this.portletContext!=null &&
104               this.portletContext.equals(other.getPortletContext()))) &&
105             ((this.userContext==null && other.getUserContext()==null) || 
106              (this.userContext!=null &&
107               this.userContext.equals(other.getUserContext())));
108         __equalsCalc = null;
109         return _equals;
110     }
111 
112     private boolean __hashCodeCalc = false;
113     public synchronized int hashCode() {
114         if (__hashCodeCalc) {
115             return 0;
116         }
117         __hashCodeCalc = true;
118         int _hashCode = 1;
119         if (getRegistrationContext() != null) {
120             _hashCode += getRegistrationContext().hashCode();
121         }
122         if (getPortletContext() != null) {
123             _hashCode += getPortletContext().hashCode();
124         }
125         if (getUserContext() != null) {
126             _hashCode += getUserContext().hashCode();
127         }
128         __hashCodeCalc = false;
129         return _hashCode;
130     }
131 
132     // Type metadata
133     private static org.apache.axis.description.TypeDesc typeDesc =
134         new org.apache.axis.description.TypeDesc(ClonePortlet.class, true);
135 
136     static {
137         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">clonePortlet"));
138         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("registrationContext");
140         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
141         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
142         elemField.setNillable(true);
143         typeDesc.addFieldDesc(elemField);
144         elemField = new org.apache.axis.description.ElementDesc();
145         elemField.setFieldName("portletContext");
146         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
147         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
148         typeDesc.addFieldDesc(elemField);
149         elemField = new org.apache.axis.description.ElementDesc();
150         elemField.setFieldName("userContext");
151         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "userContext"));
152         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
153         elemField.setNillable(true);
154         typeDesc.addFieldDesc(elemField);
155     }
156 
157     /**
158      * Return type metadata object
159      */
160     public static org.apache.axis.description.TypeDesc getTypeDesc() {
161         return typeDesc;
162     }
163 
164     /**
165      * Get Custom Serializer
166      */
167     public static org.apache.axis.encoding.Serializer getSerializer(
168            java.lang.String mechType, 
169            java.lang.Class _javaType,  
170            javax.xml.namespace.QName _xmlType) {
171         return 
172           new  org.apache.axis.encoding.ser.BeanSerializer(
173             _javaType, _xmlType, typeDesc);
174     }
175 
176     /**
177      * Get Custom Deserializer
178      */
179     public static org.apache.axis.encoding.Deserializer getDeserializer(
180            java.lang.String mechType, 
181            java.lang.Class _javaType,  
182            javax.xml.namespace.QName _xmlType) {
183         return 
184           new  org.apache.axis.encoding.ser.BeanDeserializer(
185             _javaType, _xmlType, typeDesc);
186     }
187 
188 }
189