View Javadoc
1   /*
2    * Copyright 2001-2008 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  package org.uddi.api_v2;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAttribute;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlType;
26  
27  
28  /**
29   * <p>Java class for businessInfo complex type.
30   * 
31   * <p>The following schema fragment specifies the expected content contained within this class.
32   * 
33   * <pre>
34   * &lt;complexType name="businessInfo">
35   *   &lt;complexContent>
36   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37   *       &lt;sequence>
38   *         &lt;element ref="{urn:uddi-org:api_v2}name" maxOccurs="unbounded"/>
39   *         &lt;element ref="{urn:uddi-org:api_v2}description" maxOccurs="unbounded" minOccurs="0"/>
40   *         &lt;element ref="{urn:uddi-org:api_v2}serviceInfos"/>
41   *       &lt;/sequence>
42   *       &lt;attribute name="businessKey" use="required" type="{urn:uddi-org:api_v2}businessKey" />
43   *     &lt;/restriction>
44   *   &lt;/complexContent>
45   * &lt;/complexType>
46   * </pre>
47   * 
48   * 
49   */
50  @XmlAccessorType(XmlAccessType.FIELD)
51  @XmlType(name = "businessInfo", propOrder = {
52      "name",
53      "description",
54      "serviceInfos"
55  })
56  public class BusinessInfo {
57  
58      @XmlElement(required = true)
59      protected List<Name> name;
60      protected List<Description> description;
61      @XmlElement(required = true)
62      protected ServiceInfos serviceInfos;
63      @XmlAttribute(name = "businessKey", required = true)
64      protected String businessKey;
65  
66      /**
67       * Gets the value of the name property.
68       * 
69       * <p>
70       * This accessor method returns a reference to the live list,
71       * not a snapshot. Therefore any modification you make to the
72       * returned list will be present inside the JAXB object.
73       * This is why there is not a <CODE>set</CODE> method for the name property.
74       * 
75       * <p>
76       * For example, to add a new item, do as follows:
77       * <pre>
78       *    getName().add(newItem);
79       * </pre>
80       * 
81       * 
82       * <p>
83       * Objects of the following type(s) are allowed in the list
84       * {@link Name }
85       * 
86       * 
87       */
88      public List<Name> getName() {
89          if (name == null) {
90              name = new ArrayList<Name>();
91          }
92          return this.name;
93      }
94  
95      /**
96       * Gets the value of the description property.
97       * 
98       * <p>
99       * This accessor method returns a reference to the live list,
100      * not a snapshot. Therefore any modification you make to the
101      * returned list will be present inside the JAXB object.
102      * This is why there is not a <CODE>set</CODE> method for the description property.
103      * 
104      * <p>
105      * For example, to add a new item, do as follows:
106      * <pre>
107      *    getDescription().add(newItem);
108      * </pre>
109      * 
110      * 
111      * <p>
112      * Objects of the following type(s) are allowed in the list
113      * {@link Description }
114      * 
115      * 
116      */
117     public List<Description> getDescription() {
118         if (description == null) {
119             description = new ArrayList<Description>();
120         }
121         return this.description;
122     }
123 
124     /**
125      * Gets the value of the serviceInfos property.
126      * 
127      * @return
128      *     possible object is
129      *     {@link ServiceInfos }
130      *     
131      */
132     public ServiceInfos getServiceInfos() {
133         return serviceInfos;
134     }
135 
136     /**
137      * Sets the value of the serviceInfos property.
138      * 
139      * @param value
140      *     allowed object is
141      *     {@link ServiceInfos }
142      *     
143      */
144     public void setServiceInfos(ServiceInfos value) {
145         this.serviceInfos = value;
146     }
147 
148     /**
149      * Gets the value of the businessKey property.
150      * 
151      * @return
152      *     possible object is
153      *     {@link String }
154      *     
155      */
156     public String getBusinessKey() {
157         return businessKey;
158     }
159 
160     /**
161      * Sets the value of the businessKey property.
162      * 
163      * @param value
164      *     allowed object is
165      *     {@link String }
166      *     
167      */
168     public void setBusinessKey(String value) {
169         this.businessKey = value;
170     }
171 
172 }