This project has retired. For details please refer to its Attic page.
RelatedBusinessInfo.java

RelatedBusinessInfo.java

  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_v3;

  18. import java.io.Serializable;
  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.XmlTransient;
  25. import javax.xml.bind.annotation.XmlType;


  26. /**
  27.  * <p>Java class for relatedBusinessInfo complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="relatedBusinessInfo">
  33.  *   &lt;complexContent>
  34.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  35.  *       &lt;sequence>
  36.  *         &lt;element ref="{urn:uddi-org:api_v3}businessKey"/>
  37.  *         &lt;element ref="{urn:uddi-org:api_v3}name" maxOccurs="unbounded"/>
  38.  *         &lt;element ref="{urn:uddi-org:api_v3}description" maxOccurs="unbounded" minOccurs="0"/>
  39.  *         &lt;element ref="{urn:uddi-org:api_v3}sharedRelationships" maxOccurs="2"/>
  40.  *       &lt;/sequence>
  41.  *     &lt;/restriction>
  42.  *   &lt;/complexContent>
  43.  * &lt;/complexType>
  44.  * </pre>
  45.  *
  46.  *
  47.  */
  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "relatedBusinessInfo", propOrder = {
  50.     "businessKey",
  51.     "name",
  52.     "description",
  53.     "sharedRelationships"
  54. })
  55. public class RelatedBusinessInfo implements Serializable{
  56.     @XmlTransient
  57.     private static final long serialVersionUID = -8398683613825506892L;
  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.      * Gets the value of the businessKey property.
  67.      *
  68.      * @return
  69.      *     possible object is
  70.      *     {@link String }
  71.      *    
  72.      */
  73.     public String getBusinessKey() {
  74.         return businessKey;
  75.     }

  76.     /**
  77.      * Sets the value of the businessKey property.
  78.      *
  79.      * @param value
  80.      *     allowed object is
  81.      *     {@link String }
  82.      *    
  83.      */
  84.     public void setBusinessKey(String value) {
  85.         this.businessKey = value;
  86.     }

  87.     /**
  88.      * Gets the value of the name property.
  89.      *
  90.      * <p>
  91.      * This accessor method returns a reference to the live list,
  92.      * not a snapshot. Therefore any modification you make to the
  93.      * returned list will be present inside the JAXB object.
  94.      * This is why there is not a <CODE>set</CODE> method for the name property.
  95.      *
  96.      * <p>
  97.      * For example, to add a new item, do as follows:
  98.      * <pre>
  99.      *    getName().add(newItem);
  100.      * </pre>
  101.      *
  102.      *
  103.      * <p>
  104.      * Objects of the following type(s) are allowed in the list
  105.      * {@link Name }
  106.      *
  107.      *
  108.      */
  109.     public List<Name> getName() {
  110.         if (name == null) {
  111.             name = new ArrayList<Name>();
  112.         }
  113.         return this.name;
  114.     }

  115.     /**
  116.      * Gets the value of the description property.
  117.      *
  118.      * <p>
  119.      * This accessor method returns a reference to the live list,
  120.      * not a snapshot. Therefore any modification you make to the
  121.      * returned list will be present inside the JAXB object.
  122.      * This is why there is not a <CODE>set</CODE> method for the description property.
  123.      *
  124.      * <p>
  125.      * For example, to add a new item, do as follows:
  126.      * <pre>
  127.      *    getDescription().add(newItem);
  128.      * </pre>
  129.      *
  130.      *
  131.      * <p>
  132.      * Objects of the following type(s) are allowed in the list
  133.      * {@link Description }
  134.      *
  135.      *
  136.      */
  137.     public List<Description> getDescription() {
  138.         if (description == null) {
  139.             description = new ArrayList<Description>();
  140.         }
  141.         return this.description;
  142.     }

  143.     /**
  144.      * Gets the value of the sharedRelationships property.
  145.      *
  146.      * <p>
  147.      * This accessor method returns a reference to the live list,
  148.      * not a snapshot. Therefore any modification you make to the
  149.      * returned list will be present inside the JAXB object.
  150.      * This is why there is not a <CODE>set</CODE> method for the sharedRelationships property.
  151.      *
  152.      * <p>
  153.      * For example, to add a new item, do as follows:
  154.      * <pre>
  155.      *    getSharedRelationships().add(newItem);
  156.      * </pre>
  157.      *
  158.      *
  159.      * <p>
  160.      * Objects of the following type(s) are allowed in the list
  161.      * {@link SharedRelationships }
  162.      *
  163.      *
  164.      */
  165.     public List<SharedRelationships> getSharedRelationships() {
  166.         if (sharedRelationships == null) {
  167.             sharedRelationships = new ArrayList<SharedRelationships>();
  168.         }
  169.         return this.sharedRelationships;
  170.     }

  171. }