This project has retired. For details please refer to its Attic page.
RelatedBusinessInfo xref
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.XmlElement;
24  import javax.xml.bind.annotation.XmlType;
25  
26  
27  /**
28   * <p>Java class for relatedBusinessInfo complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType name="relatedBusinessInfo">
34   *   &lt;complexContent>
35   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
36   *       &lt;sequence>
37   *         &lt;element ref="{urn:uddi-org:api_v2}businessKey"/>
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}sharedRelationships" maxOccurs="2"/>
41   *       &lt;/sequence>
42   *     &lt;/restriction>
43   *   &lt;/complexContent>
44   * &lt;/complexType>
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "relatedBusinessInfo", propOrder = {
51      "businessKey",
52      "name",
53      "description",
54      "sharedRelationships"
55  })
56  public class RelatedBusinessInfo {
57  
58      @XmlElement(required = true)
59      protected String businessKey;
60      @XmlElement(required = true)
61      protected List<Name> name;
62      protected List<Description> description;
63      @XmlElement(required = true)
64      protected List<SharedRelationships> sharedRelationships;
65  
66      /**
67       * Gets the value of the businessKey property.
68       * 
69       * @return
70       *     possible object is
71       *     {@link String }
72       *     
73       */
74      public String getBusinessKey() {
75          return businessKey;
76      }
77  
78      /**
79       * Sets the value of the businessKey property.
80       * 
81       * @param value
82       *     allowed object is
83       *     {@link String }
84       *     
85       */
86      public void setBusinessKey(String value) {
87          this.businessKey = value;
88      }
89  
90      /**
91       * Gets the value of the name property.
92       * 
93       * <p>
94       * This accessor method returns a reference to the live list,
95       * not a snapshot. Therefore any modification you make to the
96       * returned list will be present inside the JAXB object.
97       * This is why there is not a <CODE>set</CODE> method for the name property.
98       * 
99       * <p>
100      * For example, to add a new item, do as follows:
101      * <pre>
102      *    getName().add(newItem);
103      * </pre>
104      * 
105      * 
106      * <p>
107      * Objects of the following type(s) are allowed in the list
108      * {@link Name }
109      * 
110      * 
111      */
112     public List<Name> getName() {
113         if (name == null) {
114             name = new ArrayList<Name>();
115         }
116         return this.name;
117     }
118 
119     /**
120      * Gets the value of the description property.
121      * 
122      * <p>
123      * This accessor method returns a reference to the live list,
124      * not a snapshot. Therefore any modification you make to the
125      * returned list will be present inside the JAXB object.
126      * This is why there is not a <CODE>set</CODE> method for the description property.
127      * 
128      * <p>
129      * For example, to add a new item, do as follows:
130      * <pre>
131      *    getDescription().add(newItem);
132      * </pre>
133      * 
134      * 
135      * <p>
136      * Objects of the following type(s) are allowed in the list
137      * {@link Description }
138      * 
139      * 
140      */
141     public List<Description> getDescription() {
142         if (description == null) {
143             description = new ArrayList<Description>();
144         }
145         return this.description;
146     }
147 
148     /**
149      * Gets the value of the sharedRelationships property.
150      * 
151      * <p>
152      * This accessor method returns a reference to the live list,
153      * not a snapshot. Therefore any modification you make to the
154      * returned list will be present inside the JAXB object.
155      * This is why there is not a <CODE>set</CODE> method for the sharedRelationships property.
156      * 
157      * <p>
158      * For example, to add a new item, do as follows:
159      * <pre>
160      *    getSharedRelationships().add(newItem);
161      * </pre>
162      * 
163      * 
164      * <p>
165      * Objects of the following type(s) are allowed in the list
166      * {@link SharedRelationships }
167      * 
168      * 
169      */
170     public List<SharedRelationships> getSharedRelationships() {
171         if (sharedRelationships == null) {
172             sharedRelationships = new ArrayList<SharedRelationships>();
173         }
174         return this.sharedRelationships;
175     }
176 
177 }