
package org.teleal.cling.support.avtransport.event;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * 
 *                     InstanceID elements identify an individual event instance.
 *                 
 * 
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
 *         &lt;group ref="{urn:schemas-upnp-org:metadata-1-0/AVT/}allowed-under-InstanceID"/>
 *       &lt;/choice>
 *       &lt;attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "stateVariables"
})
public class Instance {

    @XmlElements({
        @XmlElement(name = "RecordStorageMedium", type = RecordStorageMedium.class),
        @XmlElement(name = "RecordMediumWriteStatus", type = RecordMediumWriteStatus.class),
        @XmlElement(name = "CurrentTrackDuration", type = CurrentTrackDuration.class),
        @XmlElement(name = "PlaybackStorageMedium", type = PlaybackStorageMedium.class),
        @XmlElement(name = "CurrentPlayMode", type = CurrentPlayMode.class),
        @XmlElement(name = "CurrentTrackMetadata", type = CurrentTrackMetadata.class),
        @XmlElement(name = "PossibleRecordQualityMode", type = PossibleRecordQualityMode.class),
        @XmlElement(name = "NumberOfTracks", type = NumberOfTracks.class),
        @XmlElement(name = "CurrentMediaDuration", type = CurrentMediaDuration.class),
        @XmlElement(name = "CurrentTransportActions", type = CurrentTransportActions.class),
        @XmlElement(name = "AVTransportURI", type = AVTransportURI.class),
        @XmlElement(name = "CurrentTrack", type = CurrentTrack.class),
        @XmlElement(name = "TransportStatus", type = TransportStatus.class),
        @XmlElement(name = "TransportPlaySpeed", type = TransportPlaySpeed.class),
        @XmlElement(name = "PossibleRecordStorageMedia", type = PossibleRecordStorageMedia.class),
        @XmlElement(name = "CurrentTrackURI", type = CurrentTrackURI.class),
        @XmlElement(name = "NextAVTransportURI", type = NextAVTransportURI.class),
        @XmlElement(name = "CurrentRecordQualityMode", type = CurrentRecordQualityMode.class),
        @XmlElement(name = "TransportState", type = TransportState.class),
        @XmlElement(name = "PossiblePlaybackStorageMedia", type = PossiblePlaybackStorageMedia.class)
    })
    protected List<Object> stateVariables;
    @XmlAttribute(required = true)
    @XmlSchemaType(name = "unsignedInt")
    protected long val;

    /**
     * Gets the value of the stateVariables 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 stateVariables property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getStateVariables().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RecordStorageMedium }
     * {@link RecordMediumWriteStatus }
     * {@link CurrentTrackDuration }
     * {@link PlaybackStorageMedium }
     * {@link CurrentPlayMode }
     * {@link CurrentTrackMetadata }
     * {@link PossibleRecordQualityMode }
     * {@link NumberOfTracks }
     * {@link CurrentMediaDuration }
     * {@link CurrentTransportActions }
     * {@link AVTransportURI }
     * {@link CurrentTrack }
     * {@link TransportStatus }
     * {@link TransportPlaySpeed }
     * {@link PossibleRecordStorageMedia }
     * {@link CurrentTrackURI }
     * {@link NextAVTransportURI }
     * {@link CurrentRecordQualityMode }
     * {@link TransportState }
     * {@link PossiblePlaybackStorageMedia }
     * 
     * 
     */
    public List<Object> getStateVariables() {
        if (stateVariables == null) {
            stateVariables = new ArrayList<Object>();
        }
        return this.stateVariables;
    }

    /**
     * Gets the value of the val property.
     * 
     */
    public long getVal() {
        return val;
    }

    /**
     * Sets the value of the val property.
     * 
     */
    public void setVal(long value) {
        this.val = value;
    }

}
