PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib-imola/cics-bc/jbi4cics/src/main/java/it/imolinfo/jbi4cics/jbi/wsdl/Jbi4CicsBinding.java

https://bitbucket.org/openesb/openesb-components
Java | 251 lines | 73 code | 30 blank | 148 comment | 0 complexity | 8aaef2134abfa2dab172106e2f45a56c MD5 | raw file
Possible License(s): AGPL-3.0
  1. /*
  2. * Copyright (c) 2005, 2006, 2007 Imola Informatica.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the LGPL License v2.1
  5. * which accompanies this distribution, and is available at
  6. * http://www.gnu.org/licenses/lgpl.html
  7. */
  8. package it.imolinfo.jbi4cics.jbi.wsdl;
  9. import java.io.Serializable;
  10. import javax.wsdl.extensions.ExtensibilityElement;
  11. import javax.xml.namespace.QName;
  12. import org.apache.commons.lang.builder.EqualsBuilder;
  13. import org.apache.commons.lang.builder.HashCodeBuilder;
  14. import org.apache.commons.lang.builder.ReflectionToStringBuilder;
  15. /**
  16. * The bean representing the WSDL binding extension.
  17. *
  18. * @author amedeocannone
  19. * @author marcopiraccini
  20. * @author <a href="mailto:mcimatti@imolinfo.it">Marco Cimatti</a>
  21. */
  22. public class Jbi4CicsBinding implements ExtensibilityElement, Serializable {
  23. /**
  24. * The generated serial version UID.
  25. */
  26. private static final long serialVersionUID = 538349432116207249L;
  27. /**
  28. * The element type.
  29. */
  30. private QName elementType;
  31. /**
  32. * The required flag.
  33. */
  34. private Boolean required;
  35. /**
  36. * The input copy Cobol. May be the same as the output copy Cobol or it may
  37. * be a different one.
  38. */
  39. private String copyCobol;
  40. /**
  41. * The output copy Cobol. May be the same as the input copy Cobol or it may
  42. * be a different one.
  43. */
  44. private String outputCopyCobol;
  45. /**
  46. * Flag indicating if the input copy Cobol and the output copy Cobol are the
  47. * same. If set to <code>Boolean.FALSE</code>, then also the
  48. * {@link #outputCopyCobol} is used.
  49. */
  50. private Boolean sameCopyCobol;
  51. /**
  52. * The code page.
  53. */
  54. private String codePage;
  55. /**
  56. * The service package name.
  57. */
  58. private String svcPackageName;
  59. /**
  60. * Does nothing.
  61. */
  62. public Jbi4CicsBinding() {
  63. }
  64. /**
  65. * Returns a string representation of this object, showing all internal
  66. * values.
  67. *
  68. * @return a string representation of this object.
  69. */
  70. @Override
  71. public String toString() { // Overridden
  72. return ReflectionToStringBuilder.toString(this);
  73. }
  74. /**
  75. * Indicates whether some other object is "equal to" this one, comparing its
  76. * internal values.
  77. *
  78. * @param obj the reference object with which to compare.
  79. * @return <code>true</code> if this object is the same class as the obj
  80. * argument and contains the same internal values;
  81. * <code>false</code> otherwise.
  82. */
  83. @Override
  84. public boolean equals(Object obj) { // Overridden
  85. return EqualsBuilder.reflectionEquals(this, obj);
  86. }
  87. /**
  88. * Returns a hash code value for this object, based on internal values.
  89. *
  90. * @return a hash code value for this object.
  91. */
  92. @Override
  93. public int hashCode() { // Overridden
  94. return HashCodeBuilder.reflectionHashCode(this);
  95. }
  96. /**
  97. * Get the type of this extensibility element.
  98. *
  99. * @return the type of this extensibility element.
  100. */
  101. public QName getElementType() {
  102. return elementType;
  103. }
  104. /**
  105. * Set the type of this extensibility element.
  106. *
  107. * @param elementType the type.
  108. */
  109. public void setElementType(QName elementType) {
  110. this.elementType = elementType;
  111. }
  112. /**
  113. * Get whether or not the semantics of this extension are required. Relates
  114. * to the <i>wsdl:required</i> attribute.
  115. *
  116. * @return whether or not the semantics of this extension are required.
  117. */
  118. public Boolean getRequired() {
  119. return required;
  120. }
  121. /**
  122. * Set whether or not the semantics of this extension are required. Relates
  123. * to the <i>wsdl:required</i> attribute.
  124. *
  125. * @param required the required flag.
  126. */
  127. public void setRequired(Boolean required) {
  128. this.required = required;
  129. }
  130. /**
  131. * Returns the input copy Cobol. May be the same as the output copy Cobol or
  132. * it may be a different one.
  133. *
  134. * @return the input copy Cobol.
  135. */
  136. public String getCopyCobol() {
  137. return copyCobol;
  138. }
  139. /**
  140. * Sets the input copy Cobol.
  141. *
  142. * @param copyCobol the new input copy Cobol to set.
  143. */
  144. public void setCopyCobol(String copyCobol) {
  145. this.copyCobol = copyCobol;
  146. }
  147. /**
  148. * Returns the service package name.
  149. *
  150. * @return the service package name.
  151. */
  152. public String getServicePackageName() {
  153. return svcPackageName;
  154. }
  155. /**
  156. * Sets the service package name.
  157. *
  158. * @param svcPackageName the new service package name to set.
  159. */
  160. public void setServicePackageName(String svcPackageName) {
  161. this.svcPackageName = svcPackageName;
  162. }
  163. /**
  164. * Gets the code page.
  165. *
  166. * @return the code page.
  167. */
  168. public String getCodePage() {
  169. return codePage;
  170. }
  171. /**
  172. * Sets the code page.
  173. *
  174. * @param codePage the new code page to set.
  175. */
  176. public void setCodePage(String codePage) {
  177. this.codePage = codePage;
  178. }
  179. /**
  180. * Gets the output copy Cobol. May be the same as the input copy Cobol or it
  181. * may be a different one.
  182. *
  183. * @return the output copy Cobol.
  184. */
  185. public String getOutputCopyCobol() {
  186. return outputCopyCobol;
  187. }
  188. /**
  189. * Sets the output copy Cobol. May be the same as the input copy Cobol or it
  190. * may be a different one.
  191. *
  192. * @param outputCopyCobol the new output copy Cobol to set.
  193. */
  194. public void setOutputCopyCobol(String outputCopyCobol) {
  195. this.outputCopyCobol = outputCopyCobol;
  196. }
  197. /**
  198. * Gets the flag indicating if the input copy Cobol and the output copy
  199. * Cobol are the same.
  200. *
  201. * @return <code>true</code> if the copy Cobol used for the input is used
  202. * also for the output; <code>false</code> if the input copy Cobol
  203. * differs from the output copy Cobol.
  204. * @see #getCopyCobol()
  205. * @see #getOutputCopyCobol()
  206. */
  207. public Boolean getSameCopyCobol() {
  208. return sameCopyCobol;
  209. }
  210. /**
  211. * Sets the flag indicating if the input copy Cobol and the output copy
  212. * Cobol are the same.
  213. *
  214. * @param sameCopyCobol the new flag value to set.
  215. * @see #setCopyCobol(String)
  216. * @see #setOutputCopyCobol(String)
  217. */
  218. public void setSameCopyCobol(Boolean sameCopyCobol) {
  219. this.sameCopyCobol = sameCopyCobol;
  220. }
  221. }