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  import java.util.Properties;
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 Class Jbi4CorbaAddress, according with JWSDL specs (see JSR 110).
22   * 
23   * @author <a href="mailto:mpiraccini@imolinfo.it">Marco Piraccini</a>
24   */
25  public class Jbi4CorbaAddress implements ExtensibilityElement, Serializable {
26  
27      /** serialVersionUID. */
28      private static final long serialVersionUID = 6856599663215008314L;
29      /** The element type. */
30      private QName elementType;
31      /** The required. */
32      private Boolean required;
33      /** The name of the corba service. */
34      private String name;
35      /** How to locate the corba service. */
36      private String localizationType;
37      /** The ORB properties */
38      private Properties orbProperties;
39      /** whether the IOR is persistent */
40      private Boolean peristent=false;
41  
42      /**
43       * The default constructor.
44       */
45      public Jbi4CorbaAddress() {
46          // NOP
47      }
48  
49      // getter and setter
50      /**
51       * @return The return
52       */
53      public QName getElementType() {
54          return elementType;
55      }
56  
57      /**
58       * @param elementType
59       *            The element type
60       */
61      public void setElementType(QName elementType) {
62          this.elementType = elementType;
63      }
64  
65      /**
66       * @return The return
67       */
68      public String getName() {
69          return name;
70      }
71  
72      /**
73       * @param name
74       *            The name
75       */
76      public void setName(String name) {
77          this.name = name;
78      }
79  
80      /**
81       * @return The return
82       */
83      public Boolean getRequired() {
84          return required;
85      }
86  
87      /**
88       * @param required
89       *            The required
90       */
91      public void setRequired(Boolean required) {
92          this.required = required;
93      }
94  
95      /**
96       * @return The return
97       */
98      public String getLocalizationType() {
99          return localizationType;
100     }
101 
102     /**
103      * 
104      * @param localizationType
105      *            The localization type
106      */
107     public void setLocalizationType(String localizationType) {
108         this.localizationType = localizationType;
109     }
110 
111     /**
112      * @return The return
113      */
114     public String toString() {
115         return ReflectionToStringBuilder.toString(this);
116     }
117 
118     /**
119      * @param obj
120      *            The object
121      * @return The return
122      */
123     public boolean equals(Object obj) {
124         return EqualsBuilder.reflectionEquals(this, obj);
125     }
126 
127     /**
128      * @return The return
129      */
130     public int hashCode() {
131         return HashCodeBuilder.reflectionHashCode(17, 37, this);
132     }
133 
134     /**
135      * @return The return
136      */
137     public Properties getOrbProperties() {
138         return orbProperties;
139     }
140 
141     /**
142      * @param orbProperties
143      *            The orb properties
144      */
145     public void setOrbProperties(Properties orbProperties) {
146         this.orbProperties = orbProperties;
147     }
148 
149     public Boolean isPeristent() {
150         return peristent;
151     }
152 
153     public void setPeristent(Boolean peristent) {
154         this.peristent = peristent;
155     }
156 }