KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ExistsResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.content;
9
10 public class ExistsResult implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference content;
12     private boolean exists;
13     private long length;
14
15     public ExistsResult() {
16     }
17
18     public ExistsResult(
19            org.alfresco.repo.webservice.types.Reference content,
20            boolean exists,
21            long length) {
22            this.content = content;
23            this.exists = exists;
24            this.length = length;
25     }
26
27
28     /**
29      * Gets the content value for this ExistsResult.
30      *
31      * @return content
32      */

33     public org.alfresco.repo.webservice.types.Reference getContent() {
34         return content;
35     }
36
37
38     /**
39      * Sets the content value for this ExistsResult.
40      *
41      * @param content
42      */

43     public void setContent(org.alfresco.repo.webservice.types.Reference content) {
44         this.content = content;
45     }
46
47
48     /**
49      * Gets the exists value for this ExistsResult.
50      *
51      * @return exists
52      */

53     public boolean isExists() {
54         return exists;
55     }
56
57
58     /**
59      * Sets the exists value for this ExistsResult.
60      *
61      * @param exists
62      */

63     public void setExists(boolean exists) {
64         this.exists = exists;
65     }
66
67
68     /**
69      * Gets the length value for this ExistsResult.
70      *
71      * @return length
72      */

73     public long getLength() {
74         return length;
75     }
76
77
78     /**
79      * Sets the length value for this ExistsResult.
80      *
81      * @param length
82      */

83     public void setLength(long length) {
84         this.length = length;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
89         if (!(obj instanceof ExistsResult)) return false;
90         ExistsResult other = (ExistsResult) obj;
91         if (obj == null) return false;
92         if (this == obj) return true;
93         if (__equalsCalc != null) {
94             return (__equalsCalc == obj);
95         }
96         __equalsCalc = obj;
97         boolean _equals;
98         _equals = true &&
99             ((this.content==null && other.getContent()==null) ||
100              (this.content!=null &&
101               this.content.equals(other.getContent()))) &&
102             this.exists == other.isExists() &&
103             this.length == other.getLength();
104         __equalsCalc = null;
105         return _equals;
106     }
107
108     private boolean __hashCodeCalc = false;
109     public synchronized int hashCode() {
110         if (__hashCodeCalc) {
111             return 0;
112         }
113         __hashCodeCalc = true;
114         int _hashCode = 1;
115         if (getContent() != null) {
116             _hashCode += getContent().hashCode();
117         }
118         _hashCode += (isExists() ? Boolean.TRUE : Boolean.FALSE).hashCode();
119         _hashCode += new Long JavaDoc(getLength()).hashCode();
120         __hashCodeCalc = false;
121         return _hashCode;
122     }
123
124     // Type metadata
125
private static org.apache.axis.description.TypeDesc typeDesc =
126         new org.apache.axis.description.TypeDesc(ExistsResult.class, true);
127
128     static {
129         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ExistsResult"));
130         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
131         elemField.setFieldName("content");
132         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "content"));
133         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
134         elemField.setNillable(false);
135         typeDesc.addFieldDesc(elemField);
136         elemField = new org.apache.axis.description.ElementDesc();
137         elemField.setFieldName("exists");
138         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "exists"));
139         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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("length");
144         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "length"));
145         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "long"));
146         elemField.setNillable(false);
147         typeDesc.addFieldDesc(elemField);
148     }
149
150     /**
151      * Return type metadata object
152      */

153     public static org.apache.axis.description.TypeDesc getTypeDesc() {
154         return typeDesc;
155     }
156
157     /**
158      * Get Custom Serializer
159      */

160     public static org.apache.axis.encoding.Serializer getSerializer(
161            java.lang.String JavaDoc mechType,
162            java.lang.Class JavaDoc _javaType,
163            javax.xml.namespace.QName JavaDoc _xmlType) {
164         return
165           new org.apache.axis.encoding.ser.BeanSerializer(
166             _javaType, _xmlType, typeDesc);
167     }
168
169     /**
170      * Get Custom Deserializer
171      */

172     public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
178             _javaType, _xmlType, typeDesc);
179     }
180
181 }
182
Popular Tags