KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > types > CMLRemoveAspect


1 /**
2  * CMLRemoveAspect.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.types;
9
10 public class CMLRemoveAspect implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc aspect;
12
13     private org.alfresco.repo.webservice.types.Predicate where;
14
15     private java.lang.String JavaDoc where_id;
16
17     public CMLRemoveAspect() {
18     }
19
20     public CMLRemoveAspect(
21            java.lang.String JavaDoc aspect,
22            org.alfresco.repo.webservice.types.Predicate where,
23            java.lang.String JavaDoc where_id) {
24            this.aspect = aspect;
25            this.where = where;
26            this.where_id = where_id;
27     }
28
29
30     /**
31      * Gets the aspect value for this CMLRemoveAspect.
32      *
33      * @return aspect
34      */

35     public java.lang.String JavaDoc getAspect() {
36         return aspect;
37     }
38
39
40     /**
41      * Sets the aspect value for this CMLRemoveAspect.
42      *
43      * @param aspect
44      */

45     public void setAspect(java.lang.String JavaDoc aspect) {
46         this.aspect = aspect;
47     }
48
49
50     /**
51      * Gets the where value for this CMLRemoveAspect.
52      *
53      * @return where
54      */

55     public org.alfresco.repo.webservice.types.Predicate getWhere() {
56         return where;
57     }
58
59
60     /**
61      * Sets the where value for this CMLRemoveAspect.
62      *
63      * @param where
64      */

65     public void setWhere(org.alfresco.repo.webservice.types.Predicate where) {
66         this.where = where;
67     }
68
69
70     /**
71      * Gets the where_id value for this CMLRemoveAspect.
72      *
73      * @return where_id
74      */

75     public java.lang.String JavaDoc getWhere_id() {
76         return where_id;
77     }
78
79
80     /**
81      * Sets the where_id value for this CMLRemoveAspect.
82      *
83      * @param where_id
84      */

85     public void setWhere_id(java.lang.String JavaDoc where_id) {
86         this.where_id = where_id;
87     }
88
89     private java.lang.Object JavaDoc __equalsCalc = null;
90     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
91         if (!(obj instanceof CMLRemoveAspect)) return false;
92         CMLRemoveAspect other = (CMLRemoveAspect) 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.aspect==null && other.getAspect()==null) ||
102              (this.aspect!=null &&
103               this.aspect.equals(other.getAspect()))) &&
104             ((this.where==null && other.getWhere()==null) ||
105              (this.where!=null &&
106               this.where.equals(other.getWhere()))) &&
107             ((this.where_id==null && other.getWhere_id()==null) ||
108              (this.where_id!=null &&
109               this.where_id.equals(other.getWhere_id())));
110         __equalsCalc = null;
111         return _equals;
112     }
113
114     private boolean __hashCodeCalc = false;
115     public synchronized int hashCode() {
116         if (__hashCodeCalc) {
117             return 0;
118         }
119         __hashCodeCalc = true;
120         int _hashCode = 1;
121         if (getAspect() != null) {
122             _hashCode += getAspect().hashCode();
123         }
124         if (getWhere() != null) {
125             _hashCode += getWhere().hashCode();
126         }
127         if (getWhere_id() != null) {
128             _hashCode += getWhere_id().hashCode();
129         }
130         __hashCodeCalc = false;
131         return _hashCode;
132     }
133
134     // Type metadata
135
private static org.apache.axis.description.TypeDesc typeDesc =
136         new org.apache.axis.description.TypeDesc(CMLRemoveAspect.class, true);
137
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAspect"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("aspect");
142         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "aspect"));
143         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
144         elemField.setNillable(false);
145         typeDesc.addFieldDesc(elemField);
146         elemField = new org.apache.axis.description.ElementDesc();
147         elemField.setFieldName("where");
148         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
149         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
150         elemField.setMinOccurs(0);
151         elemField.setNillable(false);
152         typeDesc.addFieldDesc(elemField);
153         elemField = new org.apache.axis.description.ElementDesc();
154         elemField.setFieldName("where_id");
155         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
156         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
157         elemField.setMinOccurs(0);
158         elemField.setNillable(false);
159         typeDesc.addFieldDesc(elemField);
160     }
161
162     /**
163      * Return type metadata object
164      */

165     public static org.apache.axis.description.TypeDesc getTypeDesc() {
166         return typeDesc;
167     }
168
169     /**
170      * Get Custom Serializer
171      */

172     public static org.apache.axis.encoding.Serializer getSerializer(
173            java.lang.String JavaDoc mechType,
174            java.lang.Class JavaDoc _javaType,
175            javax.xml.namespace.QName JavaDoc _xmlType) {
176         return
177           new org.apache.axis.encoding.ser.BeanSerializer(
178             _javaType, _xmlType, typeDesc);
179     }
180
181     /**
182      * Get Custom Deserializer
183      */

184     public static org.apache.axis.encoding.Deserializer getDeserializer(
185            java.lang.String JavaDoc mechType,
186            java.lang.Class JavaDoc _javaType,
187            javax.xml.namespace.QName JavaDoc _xmlType) {
188         return
189           new org.apache.axis.encoding.ser.BeanDeserializer(
190             _javaType, _xmlType, typeDesc);
191     }
192
193 }
194
Popular Tags