KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > content > Content


1 /**
2  * Content.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.content;
9
10 public class Content implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference node;
12
13     private java.lang.String JavaDoc property;
14
15     private long length;
16
17     private org.alfresco.repo.webservice.types.ContentFormat format;
18
19     private java.lang.String JavaDoc url;
20
21     public Content() {
22     }
23
24     public Content(
25            org.alfresco.repo.webservice.types.Reference node,
26            java.lang.String JavaDoc property,
27            long length,
28            org.alfresco.repo.webservice.types.ContentFormat format,
29            java.lang.String JavaDoc url) {
30            this.node = node;
31            this.property = property;
32            this.length = length;
33            this.format = format;
34            this.url = url;
35     }
36
37
38     /**
39      * Gets the node value for this Content.
40      *
41      * @return node
42      */

43     public org.alfresco.repo.webservice.types.Reference getNode() {
44         return node;
45     }
46
47
48     /**
49      * Sets the node value for this Content.
50      *
51      * @param node
52      */

53     public void setNode(org.alfresco.repo.webservice.types.Reference node) {
54         this.node = node;
55     }
56
57
58     /**
59      * Gets the property value for this Content.
60      *
61      * @return property
62      */

63     public java.lang.String JavaDoc getProperty() {
64         return property;
65     }
66
67
68     /**
69      * Sets the property value for this Content.
70      *
71      * @param property
72      */

73     public void setProperty(java.lang.String JavaDoc property) {
74         this.property = property;
75     }
76
77
78     /**
79      * Gets the length value for this Content.
80      *
81      * @return length
82      */

83     public long getLength() {
84         return length;
85     }
86
87
88     /**
89      * Sets the length value for this Content.
90      *
91      * @param length
92      */

93     public void setLength(long length) {
94         this.length = length;
95     }
96
97
98     /**
99      * Gets the format value for this Content.
100      *
101      * @return format
102      */

103     public org.alfresco.repo.webservice.types.ContentFormat getFormat() {
104         return format;
105     }
106
107
108     /**
109      * Sets the format value for this Content.
110      *
111      * @param format
112      */

113     public void setFormat(org.alfresco.repo.webservice.types.ContentFormat format) {
114         this.format = format;
115     }
116
117
118     /**
119      * Gets the url value for this Content.
120      *
121      * @return url
122      */

123     public java.lang.String JavaDoc getUrl() {
124         return url;
125     }
126
127
128     /**
129      * Sets the url value for this Content.
130      *
131      * @param url
132      */

133     public void setUrl(java.lang.String JavaDoc url) {
134         this.url = url;
135     }
136
137     private java.lang.Object JavaDoc __equalsCalc = null;
138     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
139         if (!(obj instanceof Content)) return false;
140         Content other = (Content) 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.node==null && other.getNode()==null) ||
150              (this.node!=null &&
151               this.node.equals(other.getNode()))) &&
152             ((this.property==null && other.getProperty()==null) ||
153              (this.property!=null &&
154               this.property.equals(other.getProperty()))) &&
155             this.length == other.getLength() &&
156             ((this.format==null && other.getFormat()==null) ||
157              (this.format!=null &&
158               this.format.equals(other.getFormat()))) &&
159             ((this.url==null && other.getUrl()==null) ||
160              (this.url!=null &&
161               this.url.equals(other.getUrl())));
162         __equalsCalc = null;
163         return _equals;
164     }
165
166     private boolean __hashCodeCalc = false;
167     public synchronized int hashCode() {
168         if (__hashCodeCalc) {
169             return 0;
170         }
171         __hashCodeCalc = true;
172         int _hashCode = 1;
173         if (getNode() != null) {
174             _hashCode += getNode().hashCode();
175         }
176         if (getProperty() != null) {
177             _hashCode += getProperty().hashCode();
178         }
179         _hashCode += new Long JavaDoc(getLength()).hashCode();
180         if (getFormat() != null) {
181             _hashCode += getFormat().hashCode();
182         }
183         if (getUrl() != null) {
184             _hashCode += getUrl().hashCode();
185         }
186         __hashCodeCalc = false;
187         return _hashCode;
188     }
189
190     // Type metadata
191
private static org.apache.axis.description.TypeDesc typeDesc =
192         new org.apache.axis.description.TypeDesc(Content.class, true);
193
194     static {
195         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "Content"));
196         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("node");
198         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "node"));
199         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
200         elemField.setNillable(false);
201         typeDesc.addFieldDesc(elemField);
202         elemField = new org.apache.axis.description.ElementDesc();
203         elemField.setFieldName("property");
204         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "property"));
205         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
206         elemField.setNillable(false);
207         typeDesc.addFieldDesc(elemField);
208         elemField = new org.apache.axis.description.ElementDesc();
209         elemField.setFieldName("length");
210         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "length"));
211         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "long"));
212         elemField.setNillable(false);
213         typeDesc.addFieldDesc(elemField);
214         elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("format");
216         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "format"));
217         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"));
218         elemField.setNillable(true);
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("url");
222         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "url"));
223         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
224         elemField.setNillable(true);
225         typeDesc.addFieldDesc(elemField);
226     }
227
228     /**
229      * Return type metadata object
230      */

231     public static org.apache.axis.description.TypeDesc getTypeDesc() {
232         return typeDesc;
233     }
234
235     /**
236      * Get Custom Serializer
237      */

238     public static org.apache.axis.encoding.Serializer getSerializer(
239            java.lang.String JavaDoc mechType,
240            java.lang.Class JavaDoc _javaType,
241            javax.xml.namespace.QName JavaDoc _xmlType) {
242         return
243           new org.apache.axis.encoding.ser.BeanSerializer(
244             _javaType, _xmlType, typeDesc);
245     }
246
247     /**
248      * Get Custom Deserializer
249      */

250     public static org.apache.axis.encoding.Deserializer getDeserializer(
251            java.lang.String JavaDoc mechType,
252            java.lang.Class JavaDoc _javaType,
253            javax.xml.namespace.QName JavaDoc _xmlType) {
254         return
255           new org.apache.axis.encoding.ser.BeanDeserializer(
256             _javaType, _xmlType, typeDesc);
257     }
258
259 }
260
Popular Tags