
package org.teleal.cling.support.renderingcontrol.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_RCS}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 = "BlueVideoGain", type = BlueVideoGain.class),
        @XmlElement(name = "Mute", type = Mute.class),
        @XmlElement(name = "GreenVideoGain", type = GreenVideoGain.class),
        @XmlElement(name = "PresetNameList", type = PresetNameList.class),
        @XmlElement(name = "RedVideoBlackLevel", type = RedVideoBlackLevel.class),
        @XmlElement(name = "GreenVideoBlackLevel", type = GreenVideoBlackLevel.class),
        @XmlElement(name = "VerticalKeystone", type = VerticalKeystone.class),
        @XmlElement(name = "VolumeDB", type = VolumeDB.class),
        @XmlElement(name = "Volume", type = Volume.class),
        @XmlElement(name = "RedVideoGain", type = RedVideoGain.class),
        @XmlElement(name = "BlueVideoBlackLevel", type = BlueVideoBlackLevel.class),
        @XmlElement(name = "HorizontalKeystone", type = HorizontalKeystone.class),
        @XmlElement(name = "ColorTemperature", type = ColorTemperature.class),
        @XmlElement(name = "Contrast", type = Contrast.class),
        @XmlElement(name = "Loudness", type = Loudness.class),
        @XmlElement(name = "Brightness", type = Brightness.class),
        @XmlElement(name = "Sharpness", type = Sharpness.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 BlueVideoGain }
     * {@link Mute }
     * {@link GreenVideoGain }
     * {@link PresetNameList }
     * {@link RedVideoBlackLevel }
     * {@link GreenVideoBlackLevel }
     * {@link VerticalKeystone }
     * {@link VolumeDB }
     * {@link Volume }
     * {@link RedVideoGain }
     * {@link BlueVideoBlackLevel }
     * {@link HorizontalKeystone }
     * {@link ColorTemperature }
     * {@link Contrast }
     * {@link Loudness }
     * {@link Brightness }
     * {@link Sharpness }
     * 
     * 
     */
    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;
    }

}
