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