001: /**
002: * RuntimeContext.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 RuntimeContext implements java.io.Serializable {
009: private java.lang.String userAuthentication;
010: private java.lang.String portletInstanceKey;
011: private java.lang.String namespacePrefix;
012: private oasis.names.tc.wsrp.v1.types.Templates templates;
013: private java.lang.String sessionID;
014: private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
015:
016: public RuntimeContext() {
017: }
018:
019: public RuntimeContext(
020: oasis.names.tc.wsrp.v1.types.Extension[] extensions,
021: java.lang.String namespacePrefix,
022: java.lang.String portletInstanceKey,
023: java.lang.String sessionID,
024: oasis.names.tc.wsrp.v1.types.Templates templates,
025: java.lang.String userAuthentication) {
026: this .userAuthentication = userAuthentication;
027: this .portletInstanceKey = portletInstanceKey;
028: this .namespacePrefix = namespacePrefix;
029: this .templates = templates;
030: this .sessionID = sessionID;
031: this .extensions = extensions;
032: }
033:
034: /**
035: * Gets the userAuthentication value for this RuntimeContext.
036: *
037: * @return userAuthentication
038: */
039: public java.lang.String getUserAuthentication() {
040: return userAuthentication;
041: }
042:
043: /**
044: * Sets the userAuthentication value for this RuntimeContext.
045: *
046: * @param userAuthentication
047: */
048: public void setUserAuthentication(
049: java.lang.String userAuthentication) {
050: this .userAuthentication = userAuthentication;
051: }
052:
053: /**
054: * Gets the portletInstanceKey value for this RuntimeContext.
055: *
056: * @return portletInstanceKey
057: */
058: public java.lang.String getPortletInstanceKey() {
059: return portletInstanceKey;
060: }
061:
062: /**
063: * Sets the portletInstanceKey value for this RuntimeContext.
064: *
065: * @param portletInstanceKey
066: */
067: public void setPortletInstanceKey(
068: java.lang.String portletInstanceKey) {
069: this .portletInstanceKey = portletInstanceKey;
070: }
071:
072: /**
073: * Gets the namespacePrefix value for this RuntimeContext.
074: *
075: * @return namespacePrefix
076: */
077: public java.lang.String getNamespacePrefix() {
078: return namespacePrefix;
079: }
080:
081: /**
082: * Sets the namespacePrefix value for this RuntimeContext.
083: *
084: * @param namespacePrefix
085: */
086: public void setNamespacePrefix(java.lang.String namespacePrefix) {
087: this .namespacePrefix = namespacePrefix;
088: }
089:
090: /**
091: * Gets the templates value for this RuntimeContext.
092: *
093: * @return templates
094: */
095: public oasis.names.tc.wsrp.v1.types.Templates getTemplates() {
096: return templates;
097: }
098:
099: /**
100: * Sets the templates value for this RuntimeContext.
101: *
102: * @param templates
103: */
104: public void setTemplates(
105: oasis.names.tc.wsrp.v1.types.Templates templates) {
106: this .templates = templates;
107: }
108:
109: /**
110: * Gets the sessionID value for this RuntimeContext.
111: *
112: * @return sessionID
113: */
114: public java.lang.String getSessionID() {
115: return sessionID;
116: }
117:
118: /**
119: * Sets the sessionID value for this RuntimeContext.
120: *
121: * @param sessionID
122: */
123: public void setSessionID(java.lang.String sessionID) {
124: this .sessionID = sessionID;
125: }
126:
127: /**
128: * Gets the extensions value for this RuntimeContext.
129: *
130: * @return extensions
131: */
132: public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
133: return extensions;
134: }
135:
136: /**
137: * Sets the extensions value for this RuntimeContext.
138: *
139: * @param extensions
140: */
141: public void setExtensions(
142: oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
143: this .extensions = extensions;
144: }
145:
146: public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
147: return this .extensions[i];
148: }
149:
150: public void setExtensions(int i,
151: oasis.names.tc.wsrp.v1.types.Extension _value) {
152: this .extensions[i] = _value;
153: }
154:
155: private java.lang.Object __equalsCalc = null;
156:
157: public synchronized boolean equals(java.lang.Object obj) {
158: if (!(obj instanceof RuntimeContext))
159: return false;
160: RuntimeContext other = (RuntimeContext) obj;
161: if (obj == null)
162: return false;
163: if (this == obj)
164: return true;
165: if (__equalsCalc != null) {
166: return (__equalsCalc == obj);
167: }
168: __equalsCalc = obj;
169: boolean _equals;
170: _equals = true
171: && ((this .userAuthentication == null && other
172: .getUserAuthentication() == null) || (this .userAuthentication != null && this .userAuthentication
173: .equals(other.getUserAuthentication())))
174: && ((this .portletInstanceKey == null && other
175: .getPortletInstanceKey() == null) || (this .portletInstanceKey != null && this .portletInstanceKey
176: .equals(other.getPortletInstanceKey())))
177: && ((this .namespacePrefix == null && other
178: .getNamespacePrefix() == null) || (this .namespacePrefix != null && this .namespacePrefix
179: .equals(other.getNamespacePrefix())))
180: && ((this .templates == null && other.getTemplates() == null) || (this .templates != null && this .templates
181: .equals(other.getTemplates())))
182: && ((this .sessionID == null && other.getSessionID() == null) || (this .sessionID != null && this .sessionID
183: .equals(other.getSessionID())))
184: && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
185: .equals(this .extensions, other.getExtensions())));
186: __equalsCalc = null;
187: return _equals;
188: }
189:
190: private boolean __hashCodeCalc = false;
191:
192: public synchronized int hashCode() {
193: if (__hashCodeCalc) {
194: return 0;
195: }
196: __hashCodeCalc = true;
197: int _hashCode = 1;
198: if (getUserAuthentication() != null) {
199: _hashCode += getUserAuthentication().hashCode();
200: }
201: if (getPortletInstanceKey() != null) {
202: _hashCode += getPortletInstanceKey().hashCode();
203: }
204: if (getNamespacePrefix() != null) {
205: _hashCode += getNamespacePrefix().hashCode();
206: }
207: if (getTemplates() != null) {
208: _hashCode += getTemplates().hashCode();
209: }
210: if (getSessionID() != null) {
211: _hashCode += getSessionID().hashCode();
212: }
213: if (getExtensions() != null) {
214: for (int i = 0; i < java.lang.reflect.Array
215: .getLength(getExtensions()); i++) {
216: java.lang.Object obj = java.lang.reflect.Array.get(
217: getExtensions(), i);
218: if (obj != null && !obj.getClass().isArray()) {
219: _hashCode += obj.hashCode();
220: }
221: }
222: }
223: __hashCodeCalc = false;
224: return _hashCode;
225: }
226:
227: // Type metadata
228: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
229: RuntimeContext.class, true);
230:
231: static {
232: typeDesc.setXmlType(new javax.xml.namespace.QName(
233: "urn:oasis:names:tc:wsrp:v1:types", "RuntimeContext"));
234: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
235: elemField.setFieldName("userAuthentication");
236: elemField.setXmlName(new javax.xml.namespace.QName(
237: "urn:oasis:names:tc:wsrp:v1:types",
238: "userAuthentication"));
239: elemField.setXmlType(new javax.xml.namespace.QName(
240: "http://www.w3.org/2001/XMLSchema", "string"));
241: typeDesc.addFieldDesc(elemField);
242: elemField = new org.apache.axis.description.ElementDesc();
243: elemField.setFieldName("portletInstanceKey");
244: elemField.setXmlName(new javax.xml.namespace.QName(
245: "urn:oasis:names:tc:wsrp:v1:types",
246: "portletInstanceKey"));
247: elemField.setXmlType(new javax.xml.namespace.QName(
248: "http://www.w3.org/2001/XMLSchema", "string"));
249: elemField.setMinOccurs(0);
250: typeDesc.addFieldDesc(elemField);
251: elemField = new org.apache.axis.description.ElementDesc();
252: elemField.setFieldName("namespacePrefix");
253: elemField.setXmlName(new javax.xml.namespace.QName(
254: "urn:oasis:names:tc:wsrp:v1:types", "namespacePrefix"));
255: elemField.setXmlType(new javax.xml.namespace.QName(
256: "http://www.w3.org/2001/XMLSchema", "string"));
257: elemField.setMinOccurs(0);
258: typeDesc.addFieldDesc(elemField);
259: elemField = new org.apache.axis.description.ElementDesc();
260: elemField.setFieldName("templates");
261: elemField.setXmlName(new javax.xml.namespace.QName(
262: "urn:oasis:names:tc:wsrp:v1:types", "templates"));
263: elemField.setXmlType(new javax.xml.namespace.QName(
264: "urn:oasis:names:tc:wsrp:v1:types", "Templates"));
265: elemField.setMinOccurs(0);
266: typeDesc.addFieldDesc(elemField);
267: elemField = new org.apache.axis.description.ElementDesc();
268: elemField.setFieldName("sessionID");
269: elemField.setXmlName(new javax.xml.namespace.QName(
270: "urn:oasis:names:tc:wsrp:v1:types", "sessionID"));
271: elemField.setXmlType(new javax.xml.namespace.QName(
272: "http://www.w3.org/2001/XMLSchema", "string"));
273: elemField.setMinOccurs(0);
274: typeDesc.addFieldDesc(elemField);
275: elemField = new org.apache.axis.description.ElementDesc();
276: elemField.setFieldName("extensions");
277: elemField.setXmlName(new javax.xml.namespace.QName(
278: "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
279: elemField.setXmlType(new javax.xml.namespace.QName(
280: "urn:oasis:names:tc:wsrp:v1:types", "Extension"));
281: elemField.setMinOccurs(0);
282: typeDesc.addFieldDesc(elemField);
283: }
284:
285: /**
286: * Return type metadata object
287: */
288: public static org.apache.axis.description.TypeDesc getTypeDesc() {
289: return typeDesc;
290: }
291:
292: /**
293: * Get Custom Serializer
294: */
295: public static org.apache.axis.encoding.Serializer getSerializer(
296: java.lang.String mechType, java.lang.Class _javaType,
297: javax.xml.namespace.QName _xmlType) {
298: return new org.apache.axis.encoding.ser.BeanSerializer(
299: _javaType, _xmlType, typeDesc);
300: }
301:
302: /**
303: * Get Custom Deserializer
304: */
305: public static org.apache.axis.encoding.Deserializer getDeserializer(
306: java.lang.String mechType, java.lang.Class _javaType,
307: javax.xml.namespace.QName _xmlType) {
308: return new org.apache.axis.encoding.ser.BeanDeserializer(
309: _javaType, _xmlType, typeDesc);
310: }
311:
312: }
|