001: /**
002: * ClonePortlet.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006: */package oasis.names.tc.wsrp.v1.types;
007:
008: public class ClonePortlet implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
010: private oasis.names.tc.wsrp.v1.types.PortletContext portletContext;
011: private oasis.names.tc.wsrp.v1.types.UserContext userContext;
012:
013: public ClonePortlet() {
014: }
015:
016: public ClonePortlet(
017: oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
018: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
019: oasis.names.tc.wsrp.v1.types.UserContext userContext) {
020: this .registrationContext = registrationContext;
021: this .portletContext = portletContext;
022: this .userContext = userContext;
023: }
024:
025: /**
026: * Gets the registrationContext value for this ClonePortlet.
027: *
028: * @return registrationContext
029: */
030: public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
031: return registrationContext;
032: }
033:
034: /**
035: * Sets the registrationContext value for this ClonePortlet.
036: *
037: * @param registrationContext
038: */
039: public void setRegistrationContext(
040: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
041: this .registrationContext = registrationContext;
042: }
043:
044: /**
045: * Gets the portletContext value for this ClonePortlet.
046: *
047: * @return portletContext
048: */
049: public oasis.names.tc.wsrp.v1.types.PortletContext getPortletContext() {
050: return portletContext;
051: }
052:
053: /**
054: * Sets the portletContext value for this ClonePortlet.
055: *
056: * @param portletContext
057: */
058: public void setPortletContext(
059: oasis.names.tc.wsrp.v1.types.PortletContext portletContext) {
060: this .portletContext = portletContext;
061: }
062:
063: /**
064: * Gets the userContext value for this ClonePortlet.
065: *
066: * @return userContext
067: */
068: public oasis.names.tc.wsrp.v1.types.UserContext getUserContext() {
069: return userContext;
070: }
071:
072: /**
073: * Sets the userContext value for this ClonePortlet.
074: *
075: * @param userContext
076: */
077: public void setUserContext(
078: oasis.names.tc.wsrp.v1.types.UserContext userContext) {
079: this .userContext = userContext;
080: }
081:
082: private java.lang.Object __equalsCalc = null;
083:
084: public synchronized boolean equals(java.lang.Object obj) {
085: if (!(obj instanceof ClonePortlet))
086: return false;
087: ClonePortlet other = (ClonePortlet) obj;
088: if (obj == null)
089: return false;
090: if (this == obj)
091: return true;
092: if (__equalsCalc != null) {
093: return (__equalsCalc == obj);
094: }
095: __equalsCalc = obj;
096: boolean _equals;
097: _equals = true
098: && ((this .registrationContext == null && other
099: .getRegistrationContext() == null) || (this .registrationContext != null && this .registrationContext
100: .equals(other.getRegistrationContext())))
101: && ((this .portletContext == null && other
102: .getPortletContext() == null) || (this .portletContext != null && this .portletContext
103: .equals(other.getPortletContext())))
104: && ((this .userContext == null && other.getUserContext() == null) || (this .userContext != null && this .userContext
105: .equals(other.getUserContext())));
106: __equalsCalc = null;
107: return _equals;
108: }
109:
110: private boolean __hashCodeCalc = false;
111:
112: public synchronized int hashCode() {
113: if (__hashCodeCalc) {
114: return 0;
115: }
116: __hashCodeCalc = true;
117: int _hashCode = 1;
118: if (getRegistrationContext() != null) {
119: _hashCode += getRegistrationContext().hashCode();
120: }
121: if (getPortletContext() != null) {
122: _hashCode += getPortletContext().hashCode();
123: }
124: if (getUserContext() != null) {
125: _hashCode += getUserContext().hashCode();
126: }
127: __hashCodeCalc = false;
128: return _hashCode;
129: }
130:
131: // Type metadata
132: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
133: ClonePortlet.class, true);
134:
135: static {
136: typeDesc.setXmlType(new javax.xml.namespace.QName(
137: "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(
141: "urn:oasis:names:tc:wsrp:v1:types",
142: "registrationContext"));
143: elemField.setXmlType(new javax.xml.namespace.QName(
144: "urn:oasis:names:tc:wsrp:v1:types",
145: "RegistrationContext"));
146: elemField.setNillable(true);
147: typeDesc.addFieldDesc(elemField);
148: elemField = new org.apache.axis.description.ElementDesc();
149: elemField.setFieldName("portletContext");
150: elemField.setXmlName(new javax.xml.namespace.QName(
151: "urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
152: elemField.setXmlType(new javax.xml.namespace.QName(
153: "urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
154: typeDesc.addFieldDesc(elemField);
155: elemField = new org.apache.axis.description.ElementDesc();
156: elemField.setFieldName("userContext");
157: elemField.setXmlName(new javax.xml.namespace.QName(
158: "urn:oasis:names:tc:wsrp:v1:types", "userContext"));
159: elemField.setXmlType(new javax.xml.namespace.QName(
160: "urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
161: elemField.setNillable(true);
162: typeDesc.addFieldDesc(elemField);
163: }
164:
165: /**
166: * Return type metadata object
167: */
168: public static org.apache.axis.description.TypeDesc getTypeDesc() {
169: return typeDesc;
170: }
171:
172: /**
173: * Get Custom Serializer
174: */
175: public static org.apache.axis.encoding.Serializer getSerializer(
176: java.lang.String mechType, java.lang.Class _javaType,
177: javax.xml.namespace.QName _xmlType) {
178: return new org.apache.axis.encoding.ser.BeanSerializer(
179: _javaType, _xmlType, typeDesc);
180: }
181:
182: /**
183: * Get Custom Deserializer
184: */
185: public static org.apache.axis.encoding.Deserializer getDeserializer(
186: java.lang.String mechType, java.lang.Class _javaType,
187: javax.xml.namespace.QName _xmlType) {
188: return new org.apache.axis.encoding.ser.BeanDeserializer(
189: _javaType, _xmlType, typeDesc);
190: }
191:
192: }
|