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.sub_v3.Subscription; 26 27 28 /** 29 * <p>Java class for adminSave_SubscriptionResponse complex type. 30 * 31 * <p>The following schema fragment specifies the expected content contained within this class. 32 * 33 * <pre> 34 * <complexType name="adminSave_SubscriptionResponse"> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element name="subscriptions" type="{urn:uddi-org:sub_v3}subscription" maxOccurs="unbounded"/> 39 * </sequence> 40 * </restriction> 41 * </complexContent> 42 * </complexType> 43 * </pre> 44 * 45 * 46 */ 47 @XmlAccessorType(XmlAccessType.FIELD) 48 @XmlType(name = "adminSave_SubscriptionResponse", propOrder = { 49 "subscriptions" 50 }) 51 public class AdminSaveSubscriptionResponse { 52 53 @XmlElement(required = true) 54 protected List<Subscription> subscriptions; 55 56 /** 57 * Gets the value of the subscriptions property. 58 * 59 * <p> 60 * This accessor method returns a reference to the live list, 61 * not a snapshot. Therefore any modification you make to the 62 * returned list will be present inside the JAXB object. 63 * This is why there is not a <CODE>set</CODE> method for the subscriptions property. 64 * 65 * <p> 66 * For example, to add a new item, do as follows: 67 * <pre> 68 * getSubscriptions().add(newItem); 69 * </pre> 70 * 71 * 72 * <p> 73 * Objects of the following type(s) are allowed in the list 74 * {@link Subscription } 75 * 76 * 77 */ 78 public List<Subscription> getSubscriptions() { 79 if (subscriptions == null) { 80 subscriptions = new ArrayList<Subscription>(); 81 } 82 return this.subscriptions; 83 } 84 85 }