/* * 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 http://java.sun.com/xml/jaxb // 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; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * A container element for transfer operations. * * *

Java class for Transfer complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <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>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Transfer", propOrder = { "target", "direction", "view", "protocols", "keepBytes", "param" }) // @XmlRootElement // public class Transfer { @XmlElements({ @XmlElement(required = true) }) @XmlSchemaType(name = "anyURI") private String target; protected String direction; protected View view; @XmlElement(name = "protocol") protected List protocols; protected boolean keepBytes; // Fix: version is missing in VOSpace XSD @XmlAttribute protected String version; // // Fix: param is missing in VOSpace XSD @XmlElement(nillable = true) protected List 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) { 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. * *

* 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 set method for the protocol property. * *

* For example, to add a new item, do as follows: *

     *    getProtocol().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Protocol } * * */ public List getProtocols() { if (protocols == null) { protocols = new ArrayList<>(); } return this.protocols; } /** * Gets the value of the keepBytes property. * * @return * possible object is * {@link Boolean } * */ public boolean isKeepBytes() { return keepBytes; } /** * Sets the value of the keepBytes property. * * @param value * allowed object is * {@link Boolean } * */ public void setKeepBytes(boolean value) { this.keepBytes = value; } // public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } // // /** * Gets the value of the param property. * *

* 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 set method for the param property. * *

* For example, to add a new item, do as follows: *

     *    getParam().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Param } * * */ public List getParam() { if (param == null) { param = new ArrayList(); } return this.param; } // }