1 /* 2 * Copyright 2001-2009 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.apache.juddi.api_v3; 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 import org.uddi.api_v3.BusinessEntity; 26 27 28 /** 29 * <p>Java class for adminSave_BusinessWrapper complex type. 30 * 31 * <p>The following schema fragment specifies the expected content contained within this class. 32 * 33 * <pre> 34 * <complexType name="adminSave_BusinessWrapper"> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element name="publisherID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 39 * <element ref="{urn:uddi-org:api_v3}businessEntity" maxOccurs="unbounded"/> 40 * </sequence> 41 * </restriction> 42 * </complexContent> 43 * </complexType> 44 * </pre> 45 * 46 * 47 */ 48 @XmlAccessorType(XmlAccessType.FIELD) 49 @XmlType(name = "adminSave_BusinessWrapper", propOrder = { 50 "publisherID", 51 "businessEntity" 52 }) 53 public class AdminSaveBusinessWrapper { 54 55 protected String publisherID; 56 @XmlElement(namespace = "urn:uddi-org:api_v3", required = true) 57 protected List<BusinessEntity> businessEntity; 58 59 /** 60 * Gets the value of the publisherID property. 61 * 62 * @return 63 * possible object is 64 * {@link String } 65 * 66 */ 67 public String getPublisherID() { 68 return publisherID; 69 } 70 71 /** 72 * Sets the value of the publisherID property. 73 * 74 * @param value 75 * allowed object is 76 * {@link String } 77 * 78 */ 79 public void setPublisherID(String value) { 80 this.publisherID = value; 81 } 82 83 /** 84 * Gets the value of the businessEntity property. 85 * 86 * <p> 87 * This accessor method returns a reference to the live list, 88 * not a snapshot. Therefore any modification you make to the 89 * returned list will be present inside the JAXB object. 90 * This is why there is not a <CODE>set</CODE> method for the businessEntity property. 91 * 92 * <p> 93 * For example, to add a new item, do as follows: 94 * <pre> 95 * getBusinessEntity().add(newItem); 96 * </pre> 97 * 98 * 99 * <p> 100 * Objects of the following type(s) are allowed in the list 101 * {@link BusinessEntity } 102 * 103 * 104 */ 105 public List<BusinessEntity> getBusinessEntity() { 106 if (businessEntity == null) { 107 businessEntity = new ArrayList<BusinessEntity>(); 108 } 109 return this.businessEntity; 110 } 111 112 }