
package org.teleal.cling.support.contentdirectory.descriptor.didl;

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


/**
 * 
 *                     'DIDL-Lite' is the root element of DIDL-Lite documents.
 *                     <p>
 *                     Attributes:
 *                     <p>
 *                     xml:lang use: optional
 *                     <p>
 *                     The 'xml:lang' attribute may optionally be used to specify the language of text
 *                     in the DIDL-Lite document.
 *                 
 * 
 * <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;element ref="{urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/}item"/>
 *         &lt;element ref="{urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/}container"/>
 *         &lt;element ref="{urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/}desc"/>
 *       &lt;/choice>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "children"
})
@XmlRootElement(name = "DIDL-Lite")
public class DIDLLite {

    @XmlElements({
        @XmlElement(name = "item", type = Item.class),
        @XmlElement(name = "desc", type = Desc.class),
        @XmlElement(name = "container", type = Container.class)
    })
    protected List<Object> children;

    /**
     * Gets the value of the children 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 children property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getChildren().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Item }
     * {@link Desc }
     * {@link Container }
     * 
     * 
     */
    public List<Object> getChildren() {
        if (children == null) {
            children = new ArrayList<Object>();
        }
        return this.children;
    }

}
