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_SubscriptionRequest complex type. 30 * 31 * <p>The following schema fragment specifies the expected content contained within this class. 32 * 33 * <pre> 34 * <complexType name="adminSave_SubscriptionRequest"> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element name="authInfo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 39 * <element name="publisherOrUsername" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 40 * <element name="subscriptions" type="{urn:uddi-org:sub_v3}subscription" maxOccurs="unbounded"/> 41 * </sequence> 42 * </restriction> 43 * </complexContent> 44 * </complexType> 45 * </pre> 46 * 47 * 48 */ 49 @XmlAccessorType(XmlAccessType.FIELD) 50 @XmlType(name = "adminSave_SubscriptionRequest", propOrder = { 51 "authInfo", 52 "publisherOrUsername", 53 "subscriptions" 54 }) 55 public class AdminSaveSubscriptionRequest { 56 57 protected String authInfo; 58 protected String publisherOrUsername; 59 @XmlElement(required = true) 60 protected List<Subscription> subscriptions; 61 62 /** 63 * Gets the value of the authInfo property. 64 * 65 * @return 66 * possible object is 67 * {@link String } 68 * 69 */ 70 public String getAuthInfo() { 71 return authInfo; 72 } 73 74 /** 75 * Sets the value of the authInfo property. 76 * 77 * @param value 78 * allowed object is 79 * {@link String } 80 * 81 */ 82 public void setAuthInfo(String value) { 83 this.authInfo = value; 84 } 85 86 /** 87 * Gets the value of the publisherOrUsername property. 88 * 89 * @return 90 * possible object is 91 * {@link String } 92 * 93 */ 94 public String getPublisherOrUsername() { 95 return publisherOrUsername; 96 } 97 98 /** 99 * Sets the value of the publisherOrUsername property. 100 * 101 * @param value 102 * allowed object is 103 * {@link String } 104 * 105 */ 106 public void setPublisherOrUsername(String value) { 107 this.publisherOrUsername = value; 108 } 109 110 /** 111 * Gets the value of the subscriptions property. 112 * 113 * <p> 114 * This accessor method returns a reference to the live list, 115 * not a snapshot. Therefore any modification you make to the 116 * returned list will be present inside the JAXB object. 117 * This is why there is not a <CODE>set</CODE> method for the subscriptions property. 118 * 119 * <p> 120 * For example, to add a new item, do as follows: 121 * <pre> 122 * getSubscriptions().add(newItem); 123 * </pre> 124 * 125 * 126 * <p> 127 * Objects of the following type(s) are allowed in the list 128 * {@link Subscription } 129 * 130 * 131 */ 132 public List<Subscription> getSubscriptions() { 133 if (subscriptions == null) { 134 subscriptions = new ArrayList<Subscription>(); 135 } 136 return this.subscriptions; 137 } 138 139 }