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