001: /**
002: * ResourceList.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 ResourceList implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.Resource[] resources;
010: private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
011:
012: public ResourceList() {
013: }
014:
015: public ResourceList(
016: oasis.names.tc.wsrp.v1.types.Extension[] extensions,
017: oasis.names.tc.wsrp.v1.types.Resource[] resources) {
018: this .resources = resources;
019: this .extensions = extensions;
020: }
021:
022: /**
023: * Gets the resources value for this ResourceList.
024: *
025: * @return resources
026: */
027: public oasis.names.tc.wsrp.v1.types.Resource[] getResources() {
028: return resources;
029: }
030:
031: /**
032: * Sets the resources value for this ResourceList.
033: *
034: * @param resources
035: */
036: public void setResources(
037: oasis.names.tc.wsrp.v1.types.Resource[] resources) {
038: this .resources = resources;
039: }
040:
041: public oasis.names.tc.wsrp.v1.types.Resource getResources(int i) {
042: return this .resources[i];
043: }
044:
045: public void setResources(int i,
046: oasis.names.tc.wsrp.v1.types.Resource _value) {
047: this .resources[i] = _value;
048: }
049:
050: /**
051: * Gets the extensions value for this ResourceList.
052: *
053: * @return extensions
054: */
055: public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
056: return extensions;
057: }
058:
059: /**
060: * Sets the extensions value for this ResourceList.
061: *
062: * @param extensions
063: */
064: public void setExtensions(
065: oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
066: this .extensions = extensions;
067: }
068:
069: public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
070: return this .extensions[i];
071: }
072:
073: public void setExtensions(int i,
074: oasis.names.tc.wsrp.v1.types.Extension _value) {
075: this .extensions[i] = _value;
076: }
077:
078: private java.lang.Object __equalsCalc = null;
079:
080: public synchronized boolean equals(java.lang.Object obj) {
081: if (!(obj instanceof ResourceList))
082: return false;
083: ResourceList other = (ResourceList) obj;
084: if (obj == null)
085: return false;
086: if (this == obj)
087: return true;
088: if (__equalsCalc != null) {
089: return (__equalsCalc == obj);
090: }
091: __equalsCalc = obj;
092: boolean _equals;
093: _equals = true
094: && ((this .resources == null && other.getResources() == null) || (this .resources != null && java.util.Arrays
095: .equals(this .resources, other.getResources())))
096: && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
097: .equals(this .extensions, other.getExtensions())));
098: __equalsCalc = null;
099: return _equals;
100: }
101:
102: private boolean __hashCodeCalc = false;
103:
104: public synchronized int hashCode() {
105: if (__hashCodeCalc) {
106: return 0;
107: }
108: __hashCodeCalc = true;
109: int _hashCode = 1;
110: if (getResources() != null) {
111: for (int i = 0; i < java.lang.reflect.Array
112: .getLength(getResources()); i++) {
113: java.lang.Object obj = java.lang.reflect.Array.get(
114: getResources(), i);
115: if (obj != null && !obj.getClass().isArray()) {
116: _hashCode += obj.hashCode();
117: }
118: }
119: }
120: if (getExtensions() != null) {
121: for (int i = 0; i < java.lang.reflect.Array
122: .getLength(getExtensions()); i++) {
123: java.lang.Object obj = java.lang.reflect.Array.get(
124: getExtensions(), i);
125: if (obj != null && !obj.getClass().isArray()) {
126: _hashCode += obj.hashCode();
127: }
128: }
129: }
130: __hashCodeCalc = false;
131: return _hashCode;
132: }
133:
134: // Type metadata
135: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
136: ResourceList.class, true);
137:
138: static {
139: typeDesc.setXmlType(new javax.xml.namespace.QName(
140: "urn:oasis:names:tc:wsrp:v1:types", "ResourceList"));
141: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
142: elemField.setFieldName("resources");
143: elemField.setXmlName(new javax.xml.namespace.QName(
144: "urn:oasis:names:tc:wsrp:v1:types", "resources"));
145: elemField.setXmlType(new javax.xml.namespace.QName(
146: "urn:oasis:names:tc:wsrp:v1:types", "Resource"));
147: typeDesc.addFieldDesc(elemField);
148: elemField = new org.apache.axis.description.ElementDesc();
149: elemField.setFieldName("extensions");
150: elemField.setXmlName(new javax.xml.namespace.QName(
151: "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
152: elemField.setXmlType(new javax.xml.namespace.QName(
153: "urn:oasis:names:tc:wsrp:v1:types", "Extension"));
154: elemField.setMinOccurs(0);
155: typeDesc.addFieldDesc(elemField);
156: }
157:
158: /**
159: * Return type metadata object
160: */
161: public static org.apache.axis.description.TypeDesc getTypeDesc() {
162: return typeDesc;
163: }
164:
165: /**
166: * Get Custom Serializer
167: */
168: public static org.apache.axis.encoding.Serializer getSerializer(
169: java.lang.String mechType, java.lang.Class _javaType,
170: javax.xml.namespace.QName _xmlType) {
171: return new org.apache.axis.encoding.ser.BeanSerializer(
172: _javaType, _xmlType, typeDesc);
173: }
174:
175: /**
176: * Get Custom Deserializer
177: */
178: public static org.apache.axis.encoding.Deserializer getDeserializer(
179: java.lang.String mechType, java.lang.Class _javaType,
180: javax.xml.namespace.QName _xmlType) {
181: return new org.apache.axis.encoding.ser.BeanDeserializer(
182: _javaType, _xmlType, typeDesc);
183: }
184:
185: }
|