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
25 import javax.xml.bind.JAXBElement;
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlElement;
29 import javax.xml.bind.annotation.XmlTransient;
30 import javax.xml.bind.annotation.XmlType;
31
32
33 /**
34 * <p>Java class for categoryBag complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * <complexType name="categoryBag">
40 * <complexContent>
41 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 * <choice>
43 * <sequence>
44 * <element ref="{urn:uddi-org:api_v3}keyedReference" maxOccurs="unbounded"/>
45 * <element ref="{urn:uddi-org:api_v3}keyedReferenceGroup" maxOccurs="unbounded" minOccurs="0"/>
46 * </sequence>
47 * <element ref="{urn:uddi-org:api_v3}keyedReferenceGroup" maxOccurs="unbounded"/>
48 * </choice>
49 * </restriction>
50 * </complexContent>
51 * </complexType>
52 * </pre>
53 *
54 *
55 */
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "categoryBag", propOrder = {
58 "keyedReference", "keyedReferenceGroup"
59 })
60 public class CategoryBag implements Serializable {
61 @XmlTransient
62 private static final long serialVersionUID = -2685864001789149451L;
63 @XmlElement
64 protected List<KeyedReference> keyedReference;
65 @XmlElement
66 protected List<KeyedReferenceGroup> keyedReferenceGroup;
67
68 /**
69 * Gets the rest of the content model.
70 *
71 * <p>
72 * You are getting this "catch-all" property because of the following reason:
73 * The field name "KeyedReferenceGroup" is used by two different parts of a schema. See:
74 * line 227 of file:/C:/Development/Projects/jUDDI_v3/uddi-ws/src/main/resources/uddi_v3.xsd
75 * line 225 of file:/C:/Development/Projects/jUDDI_v3/uddi-ws/src/main/resources/uddi_v3.xsd
76 * <p>
77 * To get rid of this property, apply a property customization to one
78 * of both of the following declarations to change their names:
79 * Gets the value of the content property.
80 *
81 * <p>
82 * This accessor method returns a reference to the live list,
83 * not a snapshot. Therefore any modification you make to the
84 * returned list will be present inside the JAXB object.
85 * This is why there is not a <CODE>set</CODE> method for the content property.
86 *
87 * <p>
88 * For example, to add a new item, do as follows:
89 * <pre>
90 * getContent().add(newItem);
91 * </pre>
92 *
93 *
94 * <p>
95 * Objects of the following type(s) are allowed in the list
96 * {@link JAXBElement }{@code <}{@link KeyedReference }{@code >}
97 * {@link JAXBElement }{@code <}{@link KeyedReferenceGroup }{@code >}
98 *
99 *
100 */
101 public List<KeyedReference> getKeyedReference() {
102 if (keyedReference == null) {
103 keyedReference = new ArrayList<KeyedReference>();
104 }
105 return this.keyedReference;
106 }
107
108 public List<KeyedReferenceGroup> getKeyedReferenceGroup() {
109 if (keyedReferenceGroup == null) {
110 keyedReferenceGroup = new ArrayList<KeyedReferenceGroup>();
111 }
112 return this.keyedReferenceGroup;
113 }
114 }