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