Newer
Older
/*
* This file is part of vospace-datamodel
* Copyright (C) 2021 Istituto Nazionale di Astrofisica
* SPDX-License-Identifier: GPL-3.0-or-later
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.10.24 at 09:39:16 AM CEST
//
package net.ivoa.xml.vospace.v2;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* A container element for transfer operations.
*
*
* <p>Java class for Transfer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Transfer">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="target" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
* <element name="direction" minOccurs="0">
* <simpleType>
* <union>
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
* </restriction>
* </simpleType>
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="pushToVoSpace"/>
* <enumeration value="pushFromVoSpace"/>
* <enumeration value="pullToVoSpace"/>
* <enumeration value="pullFromVoSpace"/>
* </restriction>
* </simpleType>
* </union>
* </simpleType>
* </element>
* <element name="view" type="{http://www.ivoa.net/xml/VOSpace/v2.0}View" minOccurs="0"/>
* <element name="protocol" type="{http://www.ivoa.net/xml/VOSpace/v2.0}Protocol" maxOccurs="unbounded" minOccurs="0"/>
* <element name="keepBytes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Transfer", propOrder = {
"target",
"direction",
"view",
"protocols",
"keepBytes",
"param"
// <edit>
// </edit>
@XmlElements({
@XmlElement(required = true)
})
private String target;
@XmlElement(name = "protocol")
protected List<Protocol> protocols;
// <edit> Fix: version is missing in VOSpace XSD
// </edit>
// <edit> Fix: param is missing in VOSpace XSD
@XmlElement(nillable = true)
protected List<Param> param;
/**
* Gets the value of the target property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTarget() {
return target;
}
/**
* Sets the value of the target property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTarget(String value) {
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
this.target = value;
}
/**
* Gets the value of the direction property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDirection() {
return direction;
}
/**
* Sets the value of the direction property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDirection(String value) {
this.direction = value;
}
/**
* Gets the value of the view property.
*
* @return
* possible object is
* {@link View }
*
*/
public View getView() {
return view;
}
/**
* Sets the value of the view property.
*
* @param value
* allowed object is
* {@link View }
*
*/
public void setView(View value) {
this.view = value;
}
/**
* Gets the value of the protocol property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the protocol property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getProtocol().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Protocol }
*
*
*/
public List<Protocol> getProtocols() {
if (protocols == null) {
protocols = new ArrayList<>();
return this.protocols;
}
/**
* Gets the value of the keepBytes property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
return keepBytes;
}
/**
* Sets the value of the keepBytes property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setKeepBytes(boolean value) {
// <edit>
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
// </edit>
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
// <edit>
/**
* Gets the value of the param property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the param property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getParam().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Param }
*
*
*/
public List<Param> getParam() {
if (param == null) {
param = new ArrayList<Param>();
}
return this.param;
}
// </edit>