View Javadoc

1   /****************************************************************************
2    * Copyright (c) 2005, 2006, 2007, 2008, 2009 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.jbi4corba.jbi.wsdl;
9   
10  import java.io.Serializable;
11  
12  import java.util.ArrayList;
13  import java.util.List;
14  import javax.wsdl.extensions.ExtensibilityElement;
15  import javax.xml.namespace.QName;
16  
17  import org.apache.commons.lang.builder.EqualsBuilder;
18  import org.apache.commons.lang.builder.HashCodeBuilder;
19  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
20  
21  /**
22   * The Class Jbi4CorbaBinding, according with JWSDL specs (see JSR 110). 
23   * 
24   * @author <a href="mailto:mpiraccini@imolinfo.it">Marco Piraccini</a>
25   */
26  public class Jbi4CorbaBinding implements ExtensibilityElement, Serializable {
27  
28      /** serialVersionUID. */
29      private static final long serialVersionUID = 4322482627377876884L;
30  
31      /** The element type. */
32      private QName elementType;
33  
34      /** The required. */
35      private Boolean required;
36  
37      public List<Jbi4CorbaIDLEntry> getJbi4CorbaDLEntryList() {
38          return Jbi4CorbaDLEntryList;
39      }
40  
41      public void setJbi4CorbaDLEntryList(List<Jbi4CorbaIDLEntry> Jbi4CorbaDLEntryList) {
42          this.Jbi4CorbaDLEntryList = Jbi4CorbaDLEntryList;
43      }
44  
45      /** The Corba idl. */
46      //private String idl;
47  
48      private List<Jbi4CorbaIDLEntry> Jbi4CorbaDLEntryList=new ArrayList<Jbi4CorbaIDLEntry>();
49  
50      /**
51       * Default constructor.
52       */
53      public Jbi4CorbaBinding() {
54      }
55  
56      /**
57       * @return The return
58       */
59      public QName getElementType() {
60          return elementType;
61      }
62  
63      /**
64       * @param elementType
65       *            The element type
66       */
67      public void setElementType(QName elementType) {
68          this.elementType = elementType;
69      }
70  
71      /**
72       * @return The return
73       */
74      public Boolean getRequired() {
75          return required;
76      }
77  
78      /**
79       * @param required
80       *            The required
81       */
82      public void setRequired(Boolean required) {
83          this.required = required;
84      }
85  
86      /**
87       * @return The return
88       */
89      public String toString() {
90          return ReflectionToStringBuilder.toString(this);
91      }
92  
93      /**
94       * @param obj
95       *            The object
96       * @return The return
97       */
98      public boolean equals(Object obj) {
99          return EqualsBuilder.reflectionEquals(this, obj);
100     }
101 
102     /**
103      * @return The return
104      */
105     public int hashCode() {
106         return HashCodeBuilder.reflectionHashCode(17, 37, this);
107     }
108 }