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 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlAttribute;
27 import javax.xml.bind.annotation.XmlElement;
28 import javax.xml.bind.annotation.XmlTransient;
29 import javax.xml.bind.annotation.XmlType;
30
31
32 /**
33 * <p>Java class for sharedRelationships complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained within this class.
36 *
37 * <pre>
38 * <complexType name="sharedRelationships">
39 * <complexContent>
40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 * <sequence>
42 * <element ref="{urn:uddi-org:api_v3}keyedReference" maxOccurs="unbounded"/>
43 * <element ref="{urn:uddi-org:api_v3}publisherAssertion" maxOccurs="unbounded" minOccurs="0"/>
44 * </sequence>
45 * <attribute name="direction" use="required" type="{urn:uddi-org:api_v3}direction" />
46 * </restriction>
47 * </complexContent>
48 * </complexType>
49 * </pre>
50 *
51 *
52 */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "sharedRelationships", propOrder = {
55 "keyedReference",
56 "publisherAssertion"
57 })
58 public class SharedRelationships implements Serializable{
59 @XmlTransient
60 private static final long serialVersionUID = 33682029473397546L;
61 @XmlElement(required = true)
62 protected List<KeyedReference> keyedReference;
63 protected List<PublisherAssertion> publisherAssertion;
64 @XmlAttribute(required = true)
65 protected Direction direction;
66
67 /**
68 * Gets the value of the keyedReference property.
69 *
70 * <p>
71 * This accessor method returns a reference to the live list,
72 * not a snapshot. Therefore any modification you make to the
73 * returned list will be present inside the JAXB object.
74 * This is why there is not a <CODE>set</CODE> method for the keyedReference property.
75 *
76 * <p>
77 * For example, to add a new item, do as follows:
78 * <pre>
79 * getKeyedReference().add(newItem);
80 * </pre>
81 *
82 *
83 * <p>
84 * Objects of the following type(s) are allowed in the list
85 * {@link KeyedReference }
86 *
87 *
88 */
89 public List<KeyedReference> getKeyedReference() {
90 if (keyedReference == null) {
91 keyedReference = new ArrayList<KeyedReference>();
92 }
93 return this.keyedReference;
94 }
95
96 /**
97 * Gets the value of the publisherAssertion property.
98 *
99 * <p>
100 * This accessor method returns a reference to the live list,
101 * not a snapshot. Therefore any modification you make to the
102 * returned list will be present inside the JAXB object.
103 * This is why there is not a <CODE>set</CODE> method for the publisherAssertion property.
104 *
105 * <p>
106 * For example, to add a new item, do as follows:
107 * <pre>
108 * getPublisherAssertion().add(newItem);
109 * </pre>
110 *
111 *
112 * <p>
113 * Objects of the following type(s) are allowed in the list
114 * {@link PublisherAssertion }
115 *
116 *
117 */
118 public List<PublisherAssertion> getPublisherAssertion() {
119 if (publisherAssertion == null) {
120 publisherAssertion = new ArrayList<PublisherAssertion>();
121 }
122 return this.publisherAssertion;
123 }
124
125 /**
126 * Gets the value of the direction property.
127 *
128 * @return
129 * possible object is
130 * {@link Direction }
131 *
132 */
133 public Direction getDirection() {
134 return direction;
135 }
136
137 /**
138 * Sets the value of the direction property.
139 *
140 * @param value
141 * allowed object is
142 * {@link Direction }
143 *
144 */
145 public void setDirection(Direction value) {
146 this.direction = value;
147 }
148
149 }