View Javadoc

1   /**
2    * ACLEntry.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.glite.security.voms;
9   
10  public class ACLEntry  implements java.io.Serializable {
11      private java.lang.String adminCA;
12  
13      private java.lang.String adminDN;
14  
15      private boolean allow;
16  
17      private java.lang.String operationName;
18  
19      public ACLEntry() {
20      }
21  
22      public ACLEntry(
23             java.lang.String adminCA,
24             java.lang.String adminDN,
25             boolean allow,
26             java.lang.String operationName) {
27             this.adminCA = adminCA;
28             this.adminDN = adminDN;
29             this.allow = allow;
30             this.operationName = operationName;
31      }
32  
33  
34      /**
35       * Gets the adminCA value for this ACLEntry.
36       * 
37       * @return adminCA
38       */
39      public java.lang.String getAdminCA() {
40          return adminCA;
41      }
42  
43  
44      /**
45       * Sets the adminCA value for this ACLEntry.
46       * 
47       * @param adminCA
48       */
49      public void setAdminCA(java.lang.String adminCA) {
50          this.adminCA = adminCA;
51      }
52  
53  
54      /**
55       * Gets the adminDN value for this ACLEntry.
56       * 
57       * @return adminDN
58       */
59      public java.lang.String getAdminDN() {
60          return adminDN;
61      }
62  
63  
64      /**
65       * Sets the adminDN value for this ACLEntry.
66       * 
67       * @param adminDN
68       */
69      public void setAdminDN(java.lang.String adminDN) {
70          this.adminDN = adminDN;
71      }
72  
73  
74      /**
75       * Gets the allow value for this ACLEntry.
76       * 
77       * @return allow
78       */
79      public boolean isAllow() {
80          return allow;
81      }
82  
83  
84      /**
85       * Sets the allow value for this ACLEntry.
86       * 
87       * @param allow
88       */
89      public void setAllow(boolean allow) {
90          this.allow = allow;
91      }
92  
93  
94      /**
95       * Gets the operationName value for this ACLEntry.
96       * 
97       * @return operationName
98       */
99      public java.lang.String getOperationName() {
100         return operationName;
101     }
102 
103 
104     /**
105      * Sets the operationName value for this ACLEntry.
106      * 
107      * @param operationName
108      */
109     public void setOperationName(java.lang.String operationName) {
110         this.operationName = operationName;
111     }
112 
113     private java.lang.Object __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object obj) {
115         if (!(obj instanceof ACLEntry)) return false;
116         ACLEntry other = (ACLEntry) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true && 
125             ((this.adminCA==null && other.getAdminCA()==null) || 
126              (this.adminCA!=null &&
127               this.adminCA.equals(other.getAdminCA()))) &&
128             ((this.adminDN==null && other.getAdminDN()==null) || 
129              (this.adminDN!=null &&
130               this.adminDN.equals(other.getAdminDN()))) &&
131             this.allow == other.isAllow() &&
132             ((this.operationName==null && other.getOperationName()==null) || 
133              (this.operationName!=null &&
134               this.operationName.equals(other.getOperationName())));
135         __equalsCalc = null;
136         return _equals;
137     }
138 
139     private boolean __hashCodeCalc = false;
140     public synchronized int hashCode() {
141         if (__hashCodeCalc) {
142             return 0;
143         }
144         __hashCodeCalc = true;
145         int _hashCode = 1;
146         if (getAdminCA() != null) {
147             _hashCode += getAdminCA().hashCode();
148         }
149         if (getAdminDN() != null) {
150             _hashCode += getAdminDN().hashCode();
151         }
152         _hashCode += (isAllow() ? Boolean.TRUE : Boolean.FALSE).hashCode();
153         if (getOperationName() != null) {
154             _hashCode += getOperationName().hashCode();
155         }
156         __hashCodeCalc = false;
157         return _hashCode;
158     }
159 
160     // Type metadata
161     private static org.apache.axis.description.TypeDesc typeDesc =
162         new org.apache.axis.description.TypeDesc(ACLEntry.class, true);
163 
164     static {
165         typeDesc.setXmlType(new javax.xml.namespace.QName("http://glite.org/wsdl/services/org.glite.security.voms", "ACLEntry"));
166         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
167         elemField.setFieldName("adminCA");
168         elemField.setXmlName(new javax.xml.namespace.QName("", "adminCA"));
169         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
170         elemField.setNillable(true);
171         typeDesc.addFieldDesc(elemField);
172         elemField = new org.apache.axis.description.ElementDesc();
173         elemField.setFieldName("adminDN");
174         elemField.setXmlName(new javax.xml.namespace.QName("", "adminDN"));
175         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
176         elemField.setNillable(true);
177         typeDesc.addFieldDesc(elemField);
178         elemField = new org.apache.axis.description.ElementDesc();
179         elemField.setFieldName("allow");
180         elemField.setXmlName(new javax.xml.namespace.QName("", "allow"));
181         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
182         elemField.setNillable(false);
183         typeDesc.addFieldDesc(elemField);
184         elemField = new org.apache.axis.description.ElementDesc();
185         elemField.setFieldName("operationName");
186         elemField.setXmlName(new javax.xml.namespace.QName("", "operationName"));
187         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
188         elemField.setNillable(true);
189         typeDesc.addFieldDesc(elemField);
190     }
191 
192     /**
193      * Return type metadata object
194      */
195     public static org.apache.axis.description.TypeDesc getTypeDesc() {
196         return typeDesc;
197     }
198 
199     /**
200      * Get Custom Serializer
201      */
202     public static org.apache.axis.encoding.Serializer getSerializer(
203            java.lang.String mechType, 
204            java.lang.Class _javaType,  
205            javax.xml.namespace.QName _xmlType) {
206         return 
207           new  org.apache.axis.encoding.ser.BeanSerializer(
208             _javaType, _xmlType, typeDesc);
209     }
210 
211     /**
212      * Get Custom Deserializer
213      */
214     public static org.apache.axis.encoding.Deserializer getDeserializer(
215            java.lang.String mechType, 
216            java.lang.Class _javaType,  
217            javax.xml.namespace.QName _xmlType) {
218         return 
219           new  org.apache.axis.encoding.ser.BeanDeserializer(
220             _javaType, _xmlType, typeDesc);
221     }
222 
223 }