1 /***
2 * SAMLRequestType.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package org.opensciencegrid.authz.stubs;
9
10 public class SAMLRequestType implements java.io.Serializable {
11 private org.apache.axis.message.MessageElement [] _any;
12
13 public SAMLRequestType() {
14 }
15
16 public org.apache.axis.message.MessageElement [] get_any() {
17 return _any;
18 }
19
20 public void set_any(org.apache.axis.message.MessageElement [] _any) {
21 this._any = _any;
22 }
23
24 private java.lang.Object __equalsCalc = null;
25 public synchronized boolean equals(java.lang.Object obj) {
26 if (!(obj instanceof SAMLRequestType)) return false;
27 SAMLRequestType other = (SAMLRequestType) obj;
28 if (obj == null) return false;
29 if (this == obj) return true;
30 if (__equalsCalc != null) {
31 return (__equalsCalc == obj);
32 }
33 __equalsCalc = obj;
34 boolean _equals;
35 _equals = true &&
36 ((this._any==null && other.get_any()==null) ||
37 (this._any!=null &&
38 java.util.Arrays.equals(this._any, other.get_any())));
39 __equalsCalc = null;
40 return _equals;
41 }
42
43 private boolean __hashCodeCalc = false;
44 public synchronized int hashCode() {
45 if (__hashCodeCalc) {
46 return 0;
47 }
48 __hashCodeCalc = true;
49 int _hashCode = 1;
50 if (get_any() != null) {
51 for (int i=0;
52 i<java.lang.reflect.Array.getLength(get_any());
53 i++) {
54 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
55 if (obj != null &&
56 !obj.getClass().isArray()) {
57 _hashCode += obj.hashCode();
58 }
59 }
60 }
61 __hashCodeCalc = false;
62 return _hashCode;
63 }
64
65
66 private static org.apache.axis.description.TypeDesc typeDesc =
67 new org.apache.axis.description.TypeDesc(SAMLRequestType.class);
68
69 static {
70 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.gridforum.org/namespaces/2004/03/ogsa-authz/saml", "SAMLRequestType"));
71 }
72
73 /***
74 * Return type metadata object
75 */
76 public static org.apache.axis.description.TypeDesc getTypeDesc() {
77 return typeDesc;
78 }
79
80 /***
81 * Get Custom Serializer
82 */
83 public static org.apache.axis.encoding.Serializer getSerializer(
84 java.lang.String mechType,
85 java.lang.Class _javaType,
86 javax.xml.namespace.QName _xmlType) {
87 return
88 new org.apache.axis.encoding.ser.BeanSerializer(
89 _javaType, _xmlType, typeDesc);
90 }
91
92 /***
93 * Get Custom Deserializer
94 */
95 public static org.apache.axis.encoding.Deserializer getDeserializer(
96 java.lang.String mechType,
97 java.lang.Class _javaType,
98 javax.xml.namespace.QName _xmlType) {
99 return
100 new org.apache.axis.encoding.ser.BeanDeserializer(
101 _javaType, _xmlType, typeDesc);
102 }
103
104 }