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