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