Skip to content
DataNode.java 3.89 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * 
 *         The base class for data nodes.
 *       
 * 
 * <p>Java class for DataNode complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="DataNode">
 *   &lt;complexContent>
 *     &lt;extension base="{http://www.ivoa.net/xml/VOSpace/v2.0}Node">
 *       &lt;sequence>
 *         &lt;element name="accepts" type="{http://www.ivoa.net/xml/VOSpace/v2.0}ViewList" minOccurs="0"/>
 *         &lt;element name="provides" type="{http://www.ivoa.net/xml/VOSpace/v2.0}ViewList" minOccurs="0"/>
 *         &lt;element name="capabilities" type="{http://www.ivoa.net/xml/VOSpace/v2.0}CapabilityList" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="busy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DataNode", propOrder = {
    "accepts",
    "provides",
    "capabilities"
})
@XmlSeeAlso({
    StructuredDataNode.class,
    ContainerNode.class,
    UnstructuredDataNode.class
})
public class DataNode
    extends Node
{

    protected ViewList accepts;
    protected ViewList provides;
    protected CapabilityList capabilities;
    @XmlAttribute(name = "busy")
    protected Boolean busy;

    /**
     * Gets the value of the accepts property.
     * 
     * @return
     *     possible object is
     *     {@link ViewList }
     *     
     */
    public ViewList getAccepts() {
        return accepts;
    }

    /**
     * Sets the value of the accepts property.
     * 
     * @param value
     *     allowed object is
     *     {@link ViewList }
     *     
     */
    public void setAccepts(ViewList value) {
        this.accepts = value;
    }

    /**
     * Gets the value of the provides property.
     * 
     * @return
     *     possible object is
     *     {@link ViewList }
     *     
     */
    public ViewList getProvides() {
        return provides;
    }

    /**
     * Sets the value of the provides property.
     * 
     * @param value
     *     allowed object is
     *     {@link ViewList }
     *     
     */
    public void setProvides(ViewList value) {
        this.provides = value;
    }

    /**
     * Gets the value of the capabilities property.
     * 
     * @return
     *     possible object is
     *     {@link CapabilityList }
     *     
     */
    public CapabilityList getCapabilities() {
        return capabilities;
    }

    /**
     * Sets the value of the capabilities property.
     * 
     * @param value
     *     allowed object is
     *     {@link CapabilityList }
     *     
     */
    public void setCapabilities(CapabilityList value) {
        this.capabilities = value;
    }

    /**
     * Gets the value of the busy property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isBusy() {
        if (busy == null) {
            return false;
        } else {
            return busy;
        }
    }

    /**
     * Sets the value of the busy property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setBusy(Boolean value) {
        this.busy = value;
    }

}