DataReference.java

package nl.logius.digikoppeling.gb._2010._10;

import java.math.BigInteger;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * <p>Java class for data-reference complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="data-reference"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="lifetime"&gt;
 *           &lt;complexType&gt;
 *             &lt;complexContent&gt;
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                 &lt;sequence&gt;
 *                   &lt;element name="creationTime" type="{http://www.logius.nl/digikoppeling/gb/2010/10}datetimeType" minOccurs="0"/&gt;
 *                   &lt;element name="expirationTime" type="{http://www.logius.nl/digikoppeling/gb/2010/10}datetimeType" minOccurs="0"/&gt;
 *                 &lt;/sequence&gt;
 *               &lt;/restriction&gt;
 *             &lt;/complexContent&gt;
 *           &lt;/complexType&gt;
 *         &lt;/element&gt;
 *         &lt;element name="content"&gt;
 *           &lt;complexType&gt;
 *             &lt;complexContent&gt;
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                 &lt;sequence&gt;
 *                   &lt;element name="filename" type="{http://www.w3.org/2001/XMLSchema}NCName"/&gt;
 *                   &lt;element name="checksum" type="{http://www.logius.nl/digikoppeling/gb/2010/10}checksumType"/&gt;
 *                   &lt;element name="size" type="{http://www.w3.org/2001/XMLSchema}unsignedLong"/&gt;
 *                 &lt;/sequence&gt;
 *                 &lt;attribute name="contentType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *               &lt;/restriction&gt;
 *             &lt;/complexContent&gt;
 *           &lt;/complexType&gt;
 *         &lt;/element&gt;
 *         &lt;element name="transport"&gt;
 *           &lt;complexType&gt;
 *             &lt;complexContent&gt;
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                 &lt;sequence&gt;
 *                   &lt;element name="location"&gt;
 *                     &lt;complexType&gt;
 *                       &lt;complexContent&gt;
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                           &lt;choice&gt;
 *                             &lt;element name="senderUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
 *                             &lt;element name="receiverUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
 *                           &lt;/choice&gt;
 *                         &lt;/restriction&gt;
 *                       &lt;/complexContent&gt;
 *                     &lt;/complexType&gt;
 *                   &lt;/element&gt;
 *                 &lt;/sequence&gt;
 *               &lt;/restriction&gt;
 *             &lt;/complexContent&gt;
 *           &lt;/complexType&gt;
 *         &lt;/element&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="contextId" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "data-reference", propOrder = {
    "lifetime",
    "content",
    "transport"
})
public class DataReference {

    @XmlElement(required = true)
    protected DataReference.Lifetime lifetime;
    @XmlElement(required = true)
    protected DataReference.Content content;
    @XmlElement(required = true)
    protected DataReference.Transport transport;
    @XmlAttribute(name = "contextId")
    @XmlSchemaType(name = "anySimpleType")
    protected String contextId;

    /**
     * Gets the value of the lifetime property.
     * 
     * @return
     *     possible object is
     *     {@link DataReference.Lifetime }
     *     
     */
    public DataReference.Lifetime getLifetime() {
        return lifetime;
    }

    /**
     * Sets the value of the lifetime property.
     * 
     * @param value
     *     allowed object is
     *     {@link DataReference.Lifetime }
     *     
     */
    public void setLifetime(DataReference.Lifetime value) {
        this.lifetime = value;
    }

    /**
     * Gets the value of the content property.
     * 
     * @return
     *     possible object is
     *     {@link DataReference.Content }
     *     
     */
    public DataReference.Content getContent() {
        return content;
    }

    /**
     * Sets the value of the content property.
     * 
     * @param value
     *     allowed object is
     *     {@link DataReference.Content }
     *     
     */
    public void setContent(DataReference.Content value) {
        this.content = value;
    }

    /**
     * Gets the value of the transport property.
     * 
     * @return
     *     possible object is
     *     {@link DataReference.Transport }
     *     
     */
    public DataReference.Transport getTransport() {
        return transport;
    }

    /**
     * Sets the value of the transport property.
     * 
     * @param value
     *     allowed object is
     *     {@link DataReference.Transport }
     *     
     */
    public void setTransport(DataReference.Transport value) {
        this.transport = value;
    }

    /**
     * Gets the value of the contextId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getContextId() {
        return contextId;
    }

    /**
     * Sets the value of the contextId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setContextId(String value) {
        this.contextId = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType&gt;
     *   &lt;complexContent&gt;
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *       &lt;sequence&gt;
     *         &lt;element name="filename" type="{http://www.w3.org/2001/XMLSchema}NCName"/&gt;
     *         &lt;element name="checksum" type="{http://www.logius.nl/digikoppeling/gb/2010/10}checksumType"/&gt;
     *         &lt;element name="size" type="{http://www.w3.org/2001/XMLSchema}unsignedLong"/&gt;
     *       &lt;/sequence&gt;
     *       &lt;attribute name="contentType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
     *     &lt;/restriction&gt;
     *   &lt;/complexContent&gt;
     * &lt;/complexType&gt;
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "filename",
        "checksum",
        "size"
    })
    public static class Content {

        @XmlElement(required = true)
        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
        @XmlSchemaType(name = "NCName")
        protected String filename;
        @XmlElement(required = true)
        protected ChecksumType checksum;
        @XmlElement(required = true)
        @XmlSchemaType(name = "unsignedLong")
        protected BigInteger size;
        @XmlAttribute(name = "contentType", required = true)
        protected String contentType;

        /**
         * Gets the value of the filename property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getFilename() {
            return filename;
        }

        /**
         * Sets the value of the filename property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setFilename(String value) {
            this.filename = value;
        }

        /**
         * Gets the value of the checksum property.
         * 
         * @return
         *     possible object is
         *     {@link ChecksumType }
         *     
         */
        public ChecksumType getChecksum() {
            return checksum;
        }

        /**
         * Sets the value of the checksum property.
         * 
         * @param value
         *     allowed object is
         *     {@link ChecksumType }
         *     
         */
        public void setChecksum(ChecksumType value) {
            this.checksum = value;
        }

        /**
         * Gets the value of the size property.
         * 
         * @return
         *     possible object is
         *     {@link BigInteger }
         *     
         */
        public BigInteger getSize() {
            return size;
        }

        /**
         * Sets the value of the size property.
         * 
         * @param value
         *     allowed object is
         *     {@link BigInteger }
         *     
         */
        public void setSize(BigInteger value) {
            this.size = value;
        }

        /**
         * Gets the value of the contentType property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getContentType() {
            return contentType;
        }

        /**
         * Sets the value of the contentType property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setContentType(String value) {
            this.contentType = value;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType&gt;
     *   &lt;complexContent&gt;
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *       &lt;sequence&gt;
     *         &lt;element name="creationTime" type="{http://www.logius.nl/digikoppeling/gb/2010/10}datetimeType" minOccurs="0"/&gt;
     *         &lt;element name="expirationTime" type="{http://www.logius.nl/digikoppeling/gb/2010/10}datetimeType" minOccurs="0"/&gt;
     *       &lt;/sequence&gt;
     *     &lt;/restriction&gt;
     *   &lt;/complexContent&gt;
     * &lt;/complexType&gt;
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "creationTime",
        "expirationTime"
    })
    public static class Lifetime {

        protected DatetimeType creationTime;
        protected DatetimeType expirationTime;

        /**
         * Gets the value of the creationTime property.
         * 
         * @return
         *     possible object is
         *     {@link DatetimeType }
         *     
         */
        public DatetimeType getCreationTime() {
            return creationTime;
        }

        /**
         * Sets the value of the creationTime property.
         * 
         * @param value
         *     allowed object is
         *     {@link DatetimeType }
         *     
         */
        public void setCreationTime(DatetimeType value) {
            this.creationTime = value;
        }

        /**
         * Gets the value of the expirationTime property.
         * 
         * @return
         *     possible object is
         *     {@link DatetimeType }
         *     
         */
        public DatetimeType getExpirationTime() {
            return expirationTime;
        }

        /**
         * Sets the value of the expirationTime property.
         * 
         * @param value
         *     allowed object is
         *     {@link DatetimeType }
         *     
         */
        public void setExpirationTime(DatetimeType value) {
            this.expirationTime = value;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType&gt;
     *   &lt;complexContent&gt;
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *       &lt;sequence&gt;
     *         &lt;element name="location"&gt;
     *           &lt;complexType&gt;
     *             &lt;complexContent&gt;
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *                 &lt;choice&gt;
     *                   &lt;element name="senderUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
     *                   &lt;element name="receiverUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
     *                 &lt;/choice&gt;
     *               &lt;/restriction&gt;
     *             &lt;/complexContent&gt;
     *           &lt;/complexType&gt;
     *         &lt;/element&gt;
     *       &lt;/sequence&gt;
     *     &lt;/restriction&gt;
     *   &lt;/complexContent&gt;
     * &lt;/complexType&gt;
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "location"
    })
    public static class Transport {

        @XmlElement(required = true)
        protected DataReference.Transport.Location location;

        /**
         * Gets the value of the location property.
         * 
         * @return
         *     possible object is
         *     {@link DataReference.Transport.Location }
         *     
         */
        public DataReference.Transport.Location getLocation() {
            return location;
        }

        /**
         * Sets the value of the location property.
         * 
         * @param value
         *     allowed object is
         *     {@link DataReference.Transport.Location }
         *     
         */
        public void setLocation(DataReference.Transport.Location value) {
            this.location = value;
        }


        /**
         * <p>Java class for anonymous complex type.
         * 
         * <p>The following schema fragment specifies the expected content contained within this class.
         * 
         * <pre>
         * &lt;complexType&gt;
         *   &lt;complexContent&gt;
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
         *       &lt;choice&gt;
         *         &lt;element name="senderUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
         *         &lt;element name="receiverUrl" type="{http://www.logius.nl/digikoppeling/gb/2010/10}urlType"/&gt;
         *       &lt;/choice&gt;
         *     &lt;/restriction&gt;
         *   &lt;/complexContent&gt;
         * &lt;/complexType&gt;
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "senderUrl",
            "receiverUrl"
        })
        public static class Location {

            protected UrlType senderUrl;
            protected UrlType receiverUrl;

            /**
             * Gets the value of the senderUrl property.
             * 
             * @return
             *     possible object is
             *     {@link UrlType }
             *     
             */
            public UrlType getSenderUrl() {
                return senderUrl;
            }

            /**
             * Sets the value of the senderUrl property.
             * 
             * @param value
             *     allowed object is
             *     {@link UrlType }
             *     
             */
            public void setSenderUrl(UrlType value) {
                this.senderUrl = value;
            }

            /**
             * Gets the value of the receiverUrl property.
             * 
             * @return
             *     possible object is
             *     {@link UrlType }
             *     
             */
            public UrlType getReceiverUrl() {
                return receiverUrl;
            }

            /**
             * Sets the value of the receiverUrl property.
             * 
             * @param value
             *     allowed object is
             *     {@link UrlType }
             *     
             */
            public void setReceiverUrl(UrlType value) {
                this.receiverUrl = value;
            }

        }

    }

}