1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class TDirOption implements java.io.Serializable {
11 private boolean isSourceADirectory;
12
13 private java.lang.Boolean allLevelRecursive;
14
15 private java.lang.Integer numOfLevels;
16
17 public TDirOption() {
18 }
19
20 public TDirOption(
21 boolean isSourceADirectory,
22 java.lang.Boolean allLevelRecursive,
23 java.lang.Integer numOfLevels) {
24 this.isSourceADirectory = isSourceADirectory;
25 this.allLevelRecursive = allLevelRecursive;
26 this.numOfLevels = numOfLevels;
27 }
28
29
30
31
32
33
34
35 public boolean isIsSourceADirectory() {
36 return isSourceADirectory;
37 }
38
39
40
41
42
43
44
45 public void setIsSourceADirectory(boolean isSourceADirectory) {
46 this.isSourceADirectory = isSourceADirectory;
47 }
48
49
50
51
52
53
54
55 public java.lang.Boolean getAllLevelRecursive() {
56 return allLevelRecursive;
57 }
58
59
60
61
62
63
64
65 public void setAllLevelRecursive(java.lang.Boolean allLevelRecursive) {
66 this.allLevelRecursive = allLevelRecursive;
67 }
68
69
70
71
72
73
74
75 public java.lang.Integer getNumOfLevels() {
76 return numOfLevels;
77 }
78
79
80
81
82
83
84
85 public void setNumOfLevels(java.lang.Integer numOfLevels) {
86 this.numOfLevels = numOfLevels;
87 }
88
89 private java.lang.Object __equalsCalc = null;
90 public synchronized boolean equals(java.lang.Object obj) {
91 if (!(obj instanceof TDirOption)) return false;
92 TDirOption other = (TDirOption) obj;
93 if (obj == null) return false;
94 if (this == obj) return true;
95 if (__equalsCalc != null) {
96 return (__equalsCalc == obj);
97 }
98 __equalsCalc = obj;
99 boolean _equals;
100 _equals = true &&
101 this.isSourceADirectory == other.isIsSourceADirectory() &&
102 ((this.allLevelRecursive==null && other.getAllLevelRecursive()==null) ||
103 (this.allLevelRecursive!=null &&
104 this.allLevelRecursive.equals(other.getAllLevelRecursive()))) &&
105 ((this.numOfLevels==null && other.getNumOfLevels()==null) ||
106 (this.numOfLevels!=null &&
107 this.numOfLevels.equals(other.getNumOfLevels())));
108 __equalsCalc = null;
109 return _equals;
110 }
111
112 private boolean __hashCodeCalc = false;
113 public synchronized int hashCode() {
114 if (__hashCodeCalc) {
115 return 0;
116 }
117 __hashCodeCalc = true;
118 int _hashCode = 1;
119 _hashCode += (isIsSourceADirectory() ? Boolean.TRUE : Boolean.FALSE).hashCode();
120 if (getAllLevelRecursive() != null) {
121 _hashCode += getAllLevelRecursive().hashCode();
122 }
123 if (getNumOfLevels() != null) {
124 _hashCode += getNumOfLevels().hashCode();
125 }
126 __hashCodeCalc = false;
127 return _hashCode;
128 }
129
130
131 private static org.apache.axis.description.TypeDesc typeDesc =
132 new org.apache.axis.description.TypeDesc(TDirOption.class, true);
133
134 static {
135 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TDirOption"));
136 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
137 elemField.setFieldName("isSourceADirectory");
138 elemField.setXmlName(new javax.xml.namespace.QName("", "isSourceADirectory"));
139 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
140 elemField.setNillable(false);
141 typeDesc.addFieldDesc(elemField);
142 elemField = new org.apache.axis.description.ElementDesc();
143 elemField.setFieldName("allLevelRecursive");
144 elemField.setXmlName(new javax.xml.namespace.QName("", "allLevelRecursive"));
145 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
146 elemField.setMinOccurs(0);
147 elemField.setNillable(true);
148 typeDesc.addFieldDesc(elemField);
149 elemField = new org.apache.axis.description.ElementDesc();
150 elemField.setFieldName("numOfLevels");
151 elemField.setXmlName(new javax.xml.namespace.QName("", "numOfLevels"));
152 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
153 elemField.setMinOccurs(0);
154 elemField.setNillable(true);
155 typeDesc.addFieldDesc(elemField);
156 }
157
158
159
160
161 public static org.apache.axis.description.TypeDesc getTypeDesc() {
162 return typeDesc;
163 }
164
165
166
167
168 public static org.apache.axis.encoding.Serializer getSerializer(
169 java.lang.String mechType,
170 java.lang.Class _javaType,
171 javax.xml.namespace.QName _xmlType) {
172 return
173 new org.apache.axis.encoding.ser.BeanSerializer(
174 _javaType, _xmlType, typeDesc);
175 }
176
177
178
179
180 public static org.apache.axis.encoding.Deserializer getDeserializer(
181 java.lang.String mechType,
182 java.lang.Class _javaType,
183 javax.xml.namespace.QName _xmlType) {
184 return
185 new org.apache.axis.encoding.ser.BeanDeserializer(
186 _javaType, _xmlType, typeDesc);
187 }
188
189 }