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.XmlType; 25 26 27 /** 28 * <p>Java class for businessService complex type. 29 * 30 * <p>The following schema fragment specifies the expected content contained within this class. 31 * 32 * <pre> 33 * <complexType name="businessService"> 34 * <complexContent> 35 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 36 * <sequence> 37 * <element ref="{urn:uddi-org:api_v2}name" maxOccurs="unbounded" minOccurs="0"/> 38 * <element ref="{urn:uddi-org:api_v2}description" maxOccurs="unbounded" minOccurs="0"/> 39 * <element ref="{urn:uddi-org:api_v2}bindingTemplates" minOccurs="0"/> 40 * <element ref="{urn:uddi-org:api_v2}categoryBag" minOccurs="0"/> 41 * </sequence> 42 * <attribute name="serviceKey" use="required" type="{urn:uddi-org:api_v2}serviceKey" /> 43 * <attribute name="businessKey" type="{urn:uddi-org:api_v2}businessKey" /> 44 * </restriction> 45 * </complexContent> 46 * </complexType> 47 * </pre> 48 * 49 * 50 */ 51 @XmlAccessorType(XmlAccessType.FIELD) 52 @XmlType(name = "businessService", propOrder = { 53 "name", 54 "description", 55 "bindingTemplates", 56 "categoryBag" 57 }) 58 public class BusinessService { 59 60 protected List<Name> name; 61 protected List<Description> description; 62 protected BindingTemplates bindingTemplates; 63 protected CategoryBag categoryBag; 64 @XmlAttribute(name = "serviceKey", required = true) 65 protected String serviceKey; 66 @XmlAttribute(name = "businessKey") 67 protected String businessKey; 68 69 /** 70 * Gets the value of the name property. 71 * 72 * <p> 73 * This accessor method returns a reference to the live list, 74 * not a snapshot. Therefore any modification you make to the 75 * returned list will be present inside the JAXB object. 76 * This is why there is not a <CODE>set</CODE> method for the name property. 77 * 78 * <p> 79 * For example, to add a new item, do as follows: 80 * <pre> 81 * getName().add(newItem); 82 * </pre> 83 * 84 * 85 * <p> 86 * Objects of the following type(s) are allowed in the list 87 * {@link Name } 88 * 89 * 90 */ 91 public List<Name> getName() { 92 if (name == null) { 93 name = new ArrayList<Name>(); 94 } 95 return this.name; 96 } 97 98 /** 99 * Gets the value of the description property. 100 * 101 * <p> 102 * This accessor method returns a reference to the live list, 103 * not a snapshot. Therefore any modification you make to the 104 * returned list will be present inside the JAXB object. 105 * This is why there is not a <CODE>set</CODE> method for the description property. 106 * 107 * <p> 108 * For example, to add a new item, do as follows: 109 * <pre> 110 * getDescription().add(newItem); 111 * </pre> 112 * 113 * 114 * <p> 115 * Objects of the following type(s) are allowed in the list 116 * {@link Description } 117 * 118 * 119 */ 120 public List<Description> getDescription() { 121 if (description == null) { 122 description = new ArrayList<Description>(); 123 } 124 return this.description; 125 } 126 127 /** 128 * Gets the value of the bindingTemplates property. 129 * 130 * @return 131 * possible object is 132 * {@link BindingTemplates } 133 * 134 */ 135 public BindingTemplates getBindingTemplates() { 136 return bindingTemplates; 137 } 138 139 /** 140 * Sets the value of the bindingTemplates property. 141 * 142 * @param value 143 * allowed object is 144 * {@link BindingTemplates } 145 * 146 */ 147 public void setBindingTemplates(BindingTemplates value) { 148 this.bindingTemplates = value; 149 } 150 151 /** 152 * Gets the value of the categoryBag property. 153 * 154 * @return 155 * possible object is 156 * {@link CategoryBag } 157 * 158 */ 159 public CategoryBag getCategoryBag() { 160 return categoryBag; 161 } 162 163 /** 164 * Sets the value of the categoryBag property. 165 * 166 * @param value 167 * allowed object is 168 * {@link CategoryBag } 169 * 170 */ 171 public void setCategoryBag(CategoryBag value) { 172 this.categoryBag = value; 173 } 174 175 /** 176 * Gets the value of the serviceKey property. 177 * 178 * @return 179 * possible object is 180 * {@link String } 181 * 182 */ 183 public String getServiceKey() { 184 return serviceKey; 185 } 186 187 /** 188 * Sets the value of the serviceKey property. 189 * 190 * @param value 191 * allowed object is 192 * {@link String } 193 * 194 */ 195 public void setServiceKey(String value) { 196 this.serviceKey = value; 197 } 198 199 /** 200 * Gets the value of the businessKey property. 201 * 202 * @return 203 * possible object is 204 * {@link String } 205 * 206 */ 207 public String getBusinessKey() { 208 return businessKey; 209 } 210 211 /** 212 * Sets the value of the businessKey property. 213 * 214 * @param value 215 * allowed object is 216 * {@link String } 217 * 218 */ 219 public void setBusinessKey(String value) { 220 this.businessKey = value; 221 } 222 223 }