Skip to content
GetViewsResponse.java 2.2 KiB
Newer Older
Sara Bertocco's avatar
Sara Bertocco committed
//
// 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;
Sara Bertocco's avatar
Sara Bertocco committed
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
Sara Bertocco's avatar
Sara Bertocco committed
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for GetViewsResponse complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="GetViewsResponse">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="accepts" type="{http://www.ivoa.net/xml/VOSpace/v2.0}ViewList"/>
 *         &lt;element name="provides" type="{http://www.ivoa.net/xml/VOSpace/v2.0}ViewList"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetViewsResponse", propOrder = {
    "accepts",
    "provides"
})
public class GetViewsResponse {

    // <edit>: ViewList replaced with List<View>
    @XmlElement(name = "view")
    @XmlElementWrapper(name = "accepts", required = true)
    protected List<View> accepts;
Sara Bertocco's avatar
Sara Bertocco committed

    @XmlElement(name = "view")
    @XmlElementWrapper(name = "provides", required = true)
    protected List<View> provides;

    public List<View> getAccepts() {
        if (accepts == null) {
            accepts = new ArrayList<>();
        }
Sara Bertocco's avatar
Sara Bertocco committed
        return accepts;
    }

    public void setAccepts(List<View> value) {
Sara Bertocco's avatar
Sara Bertocco committed
        this.accepts = value;
    }

    public List<View> getProvides() {
Sara Bertocco's avatar
Sara Bertocco committed
        return provides;
    }

    public void setProvides(List<View> value) {
        if (provides == null) {
            provides = new ArrayList<>();
        }
Sara Bertocco's avatar
Sara Bertocco committed
        this.provides = value;
    }
Sara Bertocco's avatar
Sara Bertocco committed
}