PageRenderTime 31ms CodeModel.GetById 17ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/projects/sharepoint-proto/source/java/com/google/enterprise/connector/sharepoint/generated/webs/CreateContentType.java

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