View Javadoc

1   /**
2    * TRetentionPolicyInfo.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 TRetentionPolicyInfo  implements java.io.Serializable {
11      private org.ogf.srm22.TRetentionPolicy retentionPolicy;
12  
13      private org.ogf.srm22.TAccessLatency accessLatency;
14  
15      public TRetentionPolicyInfo() {
16      }
17  
18      public TRetentionPolicyInfo(
19             org.ogf.srm22.TRetentionPolicy retentionPolicy,
20             org.ogf.srm22.TAccessLatency accessLatency) {
21             this.retentionPolicy = retentionPolicy;
22             this.accessLatency = accessLatency;
23      }
24  
25  
26      /**
27       * Gets the retentionPolicy value for this TRetentionPolicyInfo.
28       * 
29       * @return retentionPolicy
30       */
31      public org.ogf.srm22.TRetentionPolicy getRetentionPolicy() {
32          return retentionPolicy;
33      }
34  
35  
36      /**
37       * Sets the retentionPolicy value for this TRetentionPolicyInfo.
38       * 
39       * @param retentionPolicy
40       */
41      public void setRetentionPolicy(org.ogf.srm22.TRetentionPolicy retentionPolicy) {
42          this.retentionPolicy = retentionPolicy;
43      }
44  
45  
46      /**
47       * Gets the accessLatency value for this TRetentionPolicyInfo.
48       * 
49       * @return accessLatency
50       */
51      public org.ogf.srm22.TAccessLatency getAccessLatency() {
52          return accessLatency;
53      }
54  
55  
56      /**
57       * Sets the accessLatency value for this TRetentionPolicyInfo.
58       * 
59       * @param accessLatency
60       */
61      public void setAccessLatency(org.ogf.srm22.TAccessLatency accessLatency) {
62          this.accessLatency = accessLatency;
63      }
64  
65      private java.lang.Object __equalsCalc = null;
66      public synchronized boolean equals(java.lang.Object obj) {
67          if (!(obj instanceof TRetentionPolicyInfo)) return false;
68          TRetentionPolicyInfo other = (TRetentionPolicyInfo) obj;
69          if (obj == null) return false;
70          if (this == obj) return true;
71          if (__equalsCalc != null) {
72              return (__equalsCalc == obj);
73          }
74          __equalsCalc = obj;
75          boolean _equals;
76          _equals = true && 
77              ((this.retentionPolicy==null && other.getRetentionPolicy()==null) || 
78               (this.retentionPolicy!=null &&
79                this.retentionPolicy.equals(other.getRetentionPolicy()))) &&
80              ((this.accessLatency==null && other.getAccessLatency()==null) || 
81               (this.accessLatency!=null &&
82                this.accessLatency.equals(other.getAccessLatency())));
83          __equalsCalc = null;
84          return _equals;
85      }
86  
87      private boolean __hashCodeCalc = false;
88      public synchronized int hashCode() {
89          if (__hashCodeCalc) {
90              return 0;
91          }
92          __hashCodeCalc = true;
93          int _hashCode = 1;
94          if (getRetentionPolicy() != null) {
95              _hashCode += getRetentionPolicy().hashCode();
96          }
97          if (getAccessLatency() != null) {
98              _hashCode += getAccessLatency().hashCode();
99          }
100         __hashCodeCalc = false;
101         return _hashCode;
102     }
103 
104     // Type metadata
105     private static org.apache.axis.description.TypeDesc typeDesc =
106         new org.apache.axis.description.TypeDesc(TRetentionPolicyInfo.class, true);
107 
108     static {
109         typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicyInfo"));
110         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
111         elemField.setFieldName("retentionPolicy");
112         elemField.setXmlName(new javax.xml.namespace.QName("", "retentionPolicy"));
113         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicy"));
114         elemField.setNillable(false);
115         typeDesc.addFieldDesc(elemField);
116         elemField = new org.apache.axis.description.ElementDesc();
117         elemField.setFieldName("accessLatency");
118         elemField.setXmlName(new javax.xml.namespace.QName("", "accessLatency"));
119         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TAccessLatency"));
120         elemField.setMinOccurs(0);
121         elemField.setNillable(true);
122         typeDesc.addFieldDesc(elemField);
123     }
124 
125     /**
126      * Return type metadata object
127      */
128     public static org.apache.axis.description.TypeDesc getTypeDesc() {
129         return typeDesc;
130     }
131 
132     /**
133      * Get Custom Serializer
134      */
135     public static org.apache.axis.encoding.Serializer getSerializer(
136            java.lang.String mechType, 
137            java.lang.Class _javaType,  
138            javax.xml.namespace.QName _xmlType) {
139         return 
140           new  org.apache.axis.encoding.ser.BeanSerializer(
141             _javaType, _xmlType, typeDesc);
142     }
143 
144     /**
145      * Get Custom Deserializer
146      */
147     public static org.apache.axis.encoding.Deserializer getDeserializer(
148            java.lang.String mechType, 
149            java.lang.Class _javaType,  
150            javax.xml.namespace.QName _xmlType) {
151         return 
152           new  org.apache.axis.encoding.ser.BeanDeserializer(
153             _javaType, _xmlType, typeDesc);
154     }
155 
156 }