View Javadoc

1   /**
2    * SrmExtendFileLifeTimeRequest.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.ogf.srm22;
9   
10  public class SrmExtendFileLifeTimeRequest  implements java.io.Serializable {
11      private java.lang.String authorizationID;
12  
13      private java.lang.String requestToken;
14  
15      private org.ogf.srm22.ArrayOfAnyURI arrayOfSURLs;
16  
17      private java.lang.Integer newFileLifeTime;
18  
19      private java.lang.Integer newPinLifeTime;
20  
21      public SrmExtendFileLifeTimeRequest() {
22      }
23  
24      public SrmExtendFileLifeTimeRequest(
25             java.lang.String authorizationID,
26             java.lang.String requestToken,
27             org.ogf.srm22.ArrayOfAnyURI arrayOfSURLs,
28             java.lang.Integer newFileLifeTime,
29             java.lang.Integer newPinLifeTime) {
30             this.authorizationID = authorizationID;
31             this.requestToken = requestToken;
32             this.arrayOfSURLs = arrayOfSURLs;
33             this.newFileLifeTime = newFileLifeTime;
34             this.newPinLifeTime = newPinLifeTime;
35      }
36  
37  
38      /**
39       * Gets the authorizationID value for this SrmExtendFileLifeTimeRequest.
40       * 
41       * @return authorizationID
42       */
43      public java.lang.String getAuthorizationID() {
44          return authorizationID;
45      }
46  
47  
48      /**
49       * Sets the authorizationID value for this SrmExtendFileLifeTimeRequest.
50       * 
51       * @param authorizationID
52       */
53      public void setAuthorizationID(java.lang.String authorizationID) {
54          this.authorizationID = authorizationID;
55      }
56  
57  
58      /**
59       * Gets the requestToken value for this SrmExtendFileLifeTimeRequest.
60       * 
61       * @return requestToken
62       */
63      public java.lang.String getRequestToken() {
64          return requestToken;
65      }
66  
67  
68      /**
69       * Sets the requestToken value for this SrmExtendFileLifeTimeRequest.
70       * 
71       * @param requestToken
72       */
73      public void setRequestToken(java.lang.String requestToken) {
74          this.requestToken = requestToken;
75      }
76  
77  
78      /**
79       * Gets the arrayOfSURLs value for this SrmExtendFileLifeTimeRequest.
80       * 
81       * @return arrayOfSURLs
82       */
83      public org.ogf.srm22.ArrayOfAnyURI getArrayOfSURLs() {
84          return arrayOfSURLs;
85      }
86  
87  
88      /**
89       * Sets the arrayOfSURLs value for this SrmExtendFileLifeTimeRequest.
90       * 
91       * @param arrayOfSURLs
92       */
93      public void setArrayOfSURLs(org.ogf.srm22.ArrayOfAnyURI arrayOfSURLs) {
94          this.arrayOfSURLs = arrayOfSURLs;
95      }
96  
97  
98      /**
99       * Gets the newFileLifeTime value for this SrmExtendFileLifeTimeRequest.
100      * 
101      * @return newFileLifeTime
102      */
103     public java.lang.Integer getNewFileLifeTime() {
104         return newFileLifeTime;
105     }
106 
107 
108     /**
109      * Sets the newFileLifeTime value for this SrmExtendFileLifeTimeRequest.
110      * 
111      * @param newFileLifeTime
112      */
113     public void setNewFileLifeTime(java.lang.Integer newFileLifeTime) {
114         this.newFileLifeTime = newFileLifeTime;
115     }
116 
117 
118     /**
119      * Gets the newPinLifeTime value for this SrmExtendFileLifeTimeRequest.
120      * 
121      * @return newPinLifeTime
122      */
123     public java.lang.Integer getNewPinLifeTime() {
124         return newPinLifeTime;
125     }
126 
127 
128     /**
129      * Sets the newPinLifeTime value for this SrmExtendFileLifeTimeRequest.
130      * 
131      * @param newPinLifeTime
132      */
133     public void setNewPinLifeTime(java.lang.Integer newPinLifeTime) {
134         this.newPinLifeTime = newPinLifeTime;
135     }
136 
137     private java.lang.Object __equalsCalc = null;
138     public synchronized boolean equals(java.lang.Object obj) {
139         if (!(obj instanceof SrmExtendFileLifeTimeRequest)) return false;
140         SrmExtendFileLifeTimeRequest other = (SrmExtendFileLifeTimeRequest) obj;
141         if (obj == null) return false;
142         if (this == obj) return true;
143         if (__equalsCalc != null) {
144             return (__equalsCalc == obj);
145         }
146         __equalsCalc = obj;
147         boolean _equals;
148         _equals = true && 
149             ((this.authorizationID==null && other.getAuthorizationID()==null) || 
150              (this.authorizationID!=null &&
151               this.authorizationID.equals(other.getAuthorizationID()))) &&
152             ((this.requestToken==null && other.getRequestToken()==null) || 
153              (this.requestToken!=null &&
154               this.requestToken.equals(other.getRequestToken()))) &&
155             ((this.arrayOfSURLs==null && other.getArrayOfSURLs()==null) || 
156              (this.arrayOfSURLs!=null &&
157               this.arrayOfSURLs.equals(other.getArrayOfSURLs()))) &&
158             ((this.newFileLifeTime==null && other.getNewFileLifeTime()==null) || 
159              (this.newFileLifeTime!=null &&
160               this.newFileLifeTime.equals(other.getNewFileLifeTime()))) &&
161             ((this.newPinLifeTime==null && other.getNewPinLifeTime()==null) || 
162              (this.newPinLifeTime!=null &&
163               this.newPinLifeTime.equals(other.getNewPinLifeTime())));
164         __equalsCalc = null;
165         return _equals;
166     }
167 
168     private boolean __hashCodeCalc = false;
169     public synchronized int hashCode() {
170         if (__hashCodeCalc) {
171             return 0;
172         }
173         __hashCodeCalc = true;
174         int _hashCode = 1;
175         if (getAuthorizationID() != null) {
176             _hashCode += getAuthorizationID().hashCode();
177         }
178         if (getRequestToken() != null) {
179             _hashCode += getRequestToken().hashCode();
180         }
181         if (getArrayOfSURLs() != null) {
182             _hashCode += getArrayOfSURLs().hashCode();
183         }
184         if (getNewFileLifeTime() != null) {
185             _hashCode += getNewFileLifeTime().hashCode();
186         }
187         if (getNewPinLifeTime() != null) {
188             _hashCode += getNewPinLifeTime().hashCode();
189         }
190         __hashCodeCalc = false;
191         return _hashCode;
192     }
193 
194     // Type metadata
195     private static org.apache.axis.description.TypeDesc typeDesc =
196         new org.apache.axis.description.TypeDesc(SrmExtendFileLifeTimeRequest.class, true);
197 
198     static {
199         typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmExtendFileLifeTimeRequest"));
200         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201         elemField.setFieldName("authorizationID");
202         elemField.setXmlName(new javax.xml.namespace.QName("", "authorizationID"));
203         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
204         elemField.setMinOccurs(0);
205         elemField.setNillable(true);
206         typeDesc.addFieldDesc(elemField);
207         elemField = new org.apache.axis.description.ElementDesc();
208         elemField.setFieldName("requestToken");
209         elemField.setXmlName(new javax.xml.namespace.QName("", "requestToken"));
210         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
211         elemField.setMinOccurs(0);
212         elemField.setNillable(true);
213         typeDesc.addFieldDesc(elemField);
214         elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("arrayOfSURLs");
216         elemField.setXmlName(new javax.xml.namespace.QName("", "arrayOfSURLs"));
217         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfAnyURI"));
218         elemField.setNillable(false);
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("newFileLifeTime");
222         elemField.setXmlName(new javax.xml.namespace.QName("", "newFileLifeTime"));
223         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
224         elemField.setMinOccurs(0);
225         elemField.setNillable(true);
226         typeDesc.addFieldDesc(elemField);
227         elemField = new org.apache.axis.description.ElementDesc();
228         elemField.setFieldName("newPinLifeTime");
229         elemField.setXmlName(new javax.xml.namespace.QName("", "newPinLifeTime"));
230         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
231         elemField.setMinOccurs(0);
232         elemField.setNillable(true);
233         typeDesc.addFieldDesc(elemField);
234     }
235 
236     /**
237      * Return type metadata object
238      */
239     public static org.apache.axis.description.TypeDesc getTypeDesc() {
240         return typeDesc;
241     }
242 
243     /**
244      * Get Custom Serializer
245      */
246     public static org.apache.axis.encoding.Serializer getSerializer(
247            java.lang.String mechType, 
248            java.lang.Class _javaType,  
249            javax.xml.namespace.QName _xmlType) {
250         return 
251           new  org.apache.axis.encoding.ser.BeanSerializer(
252             _javaType, _xmlType, typeDesc);
253     }
254 
255     /**
256      * Get Custom Deserializer
257      */
258     public static org.apache.axis.encoding.Deserializer getDeserializer(
259            java.lang.String mechType, 
260            java.lang.Class _javaType,  
261            javax.xml.namespace.QName _xmlType) {
262         return 
263           new  org.apache.axis.encoding.ser.BeanDeserializer(
264             _javaType, _xmlType, typeDesc);
265     }
266 
267 }