
package com.android.repository.impl.generated.v1;

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.XmlType;
import com.android.repository.api.Channel;
import com.android.repository.api.License;
import com.android.repository.api.Repository;
import com.android.repository.impl.meta.LocalPackageImpl;
import com.android.repository.impl.meta.RemotePackageImpl;


/**
 * DO NOT EDIT
 * This file was generated by xjc from repo-common-01.xsd. Any changes will be lost upon recompilation of the schema.
 * See the schema file for instructions on running xjc.
 * 
 * 
 *                 The repository, consisting of a licenses and packages.
 *             
 * 
 * <p>Java class for repositoryType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="repositoryType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="license" type="{http://schemas.android.com/repository/android/common/01}licenseType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="channel" type="{http://schemas.android.com/repository/android/common/01}channelType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;choice&gt;
 *           &lt;element name="remotePackage" type="{http://schemas.android.com/repository/android/common/01}remotePackage" maxOccurs="unbounded" minOccurs="0"/&gt;
 *           &lt;element name="localPackage" type="{http://schemas.android.com/repository/android/common/01}localPackage" minOccurs="0"/&gt;
 *         &lt;/choice&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "repositoryType", propOrder = {
    "license",
    "channel",
    "remotePackage",
    "localPackage"
})
@SuppressWarnings({
    "override",
    "unchecked"
})
public class RepositoryType
    extends Repository
{

    protected List<LicenseType> license;
    protected List<ChannelType> channel;
    protected List<RemotePackage> remotePackage;
    protected LocalPackage localPackage;

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

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

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

    /**
     * Gets the value of the localPackage property.
     * 
     * @return
     *     possible object is
     *     {@link LocalPackage }
     *     
     */
    public LocalPackage getLocalPackage() {
        return localPackage;
    }

    /**
     * Sets the value of the localPackage property.
     * 
     * @param value
     *     allowed object is
     *     {@link LocalPackage }
     *     
     */
    public void setLocalPackageInternal(LocalPackage value) {
        this.localPackage = value;
    }

    public List<License> getLicense() {
        return ((List) getLicenseInternal());
    }

    public List<Channel> getChannel() {
        return ((List) getChannelInternal());
    }

    public List<RemotePackageImpl> getRemotePackage() {
        return ((List) getRemotePackageInternal());
    }

    public void setLocalPackage(LocalPackageImpl value) {
        setLocalPackageInternal(((LocalPackage) value));
    }

    public ObjectFactory createFactory() {
        return new ObjectFactory();
    }

}
