View Javadoc

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   
9   package it.imolinfo.jbi4cics.jbi.wsdl;
10  
11  import java.io.Serializable;
12  
13  import javax.wsdl.extensions.ExtensibilityElement;
14  import javax.xml.namespace.QName;
15  
16  import org.apache.commons.lang.builder.EqualsBuilder;
17  import org.apache.commons.lang.builder.HashCodeBuilder;
18  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
19  
20  /**
21   * The bean represanting the WSDL address extension.
22   * TODO: Add serialVersionUID
23   * 
24   * @author amedeocannone, marcopiraccini
25   */
26  public class Jbi4CicsAddress implements ExtensibilityElement, Serializable {
27  
28  
29  	
30      /** The element type. */
31      private QName elementType;
32  
33      /** The required. */
34      private Boolean required;
35      
36      private String username;
37      
38      private String password;
39      
40      private String connectionType;
41      
42      private String JNDIConnectionName;
43  
44      private String programName;
45      
46      private String transactionName;
47      
48      private Boolean tpn;        
49      
50      /**
51       * void constructor.
52       */
53        public Jbi4CicsAddress(){
54      	  super();
55        }
56  
57      
58      public QName getElementType() {
59          return elementType;
60      }
61  
62      public void setElementType(QName elementType) {
63          this.elementType = elementType;
64      }
65  
66      public Boolean getRequired() {
67          return required;
68      }
69  
70      public void setRequired(Boolean required) {
71          this.required = required;
72      }
73  
74      public String getConnectionType() {
75          return connectionType;
76      }
77  
78      public void setConnectionType(String connectionType) {
79          this.connectionType = connectionType;
80      }
81  
82      public String getJNDIConnectionName() {
83          return JNDIConnectionName;
84      }
85  
86      public void setJNDIConnectionName(String connectionName) {
87          JNDIConnectionName = connectionName;
88      }
89  
90      public String getPassword() {
91          return password;
92      }
93  
94      public void setPassword(String password) {
95          this.password = password;
96      }
97  
98      public String getProgramName() {
99          return programName;
100     }
101 
102     public void setProgramName(String programName) {
103         this.programName = programName;
104     }
105 
106     public Boolean getTpn() {
107         return tpn;
108     }
109 
110     public void setTpn(Boolean tpn) {
111         this.tpn = tpn;
112     }
113 
114     public String getTransactionName() {
115         return transactionName;
116     }
117 
118     public void setTransactionName(String transactionName) {
119         this.transactionName = transactionName;
120     }
121 
122     public String getUsername() {
123         return username;
124     }
125 
126     public void setUsername(String username) {
127         this.username = username;
128     }
129     
130     public String toString() {
131         return ReflectionToStringBuilder.toString(this);
132     }
133     
134     public boolean equals(Object obj) {
135         return EqualsBuilder.reflectionEquals(this, obj);
136     }
137     
138     public int hashCode() {
139         return HashCodeBuilder.reflectionHashCode(17, 37, this);
140     }    
141         
142 
143 }