All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.zeroinstall.model.impl.FeedImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  feed
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.Feed
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * An XML feed(@http://zero-install.sourceforge.net/2004/injector/interface).
 *
 * This is a complex type.
 */
public class FeedImpl extends net.zeroinstall.model.impl.FeedElementImpl implements net.zeroinstall.model.Feed
{
    private static final long serialVersionUID = 1L;
    
    public FeedImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NAME$0 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "name");
    private static final javax.xml.namespace.QName SUMMARY$2 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "summary");
    private static final javax.xml.namespace.QName DESCRIPTION$4 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "description");
    private static final javax.xml.namespace.QName HOMEPAGE$6 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "homepage");
    private static final javax.xml.namespace.QName ICON$8 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "icon");
    private static final javax.xml.namespace.QName CATEGORY$10 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "category");
    private static final javax.xml.namespace.QName NEEDSTERMINAL$12 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "needs-terminal");
    private static final javax.xml.namespace.QName FEED$14 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "feed");
    private static final javax.xml.namespace.QName FEEDFOR$16 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "feed-for");
    private static final javax.xml.namespace.QName REPLACEDBY$18 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "replaced-by");
    private static final javax.xml.namespace.QName IMPLEMENTATION$20 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "implementation");
    private static final javax.xml.namespace.QName PACKAGEIMPLEMENTATION$22 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "package-implementation");
    private static final javax.xml.namespace.QName GROUP$24 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "group");
    private static final javax.xml.namespace.QName ENTRYPOINT$26 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "entry-point");
    private static final javax.xml.namespace.QName MININJECTORVERSION$28 = 
        new javax.xml.namespace.QName("", "min-injector-version");
    private static final javax.xml.namespace.QName URI$30 = 
        new javax.xml.namespace.QName("", "uri");
    
    
    /**
     * Gets array of all "name" elements
     */
    public java.lang.String[] getNameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(NAME$0, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "name" element
     */
    public java.lang.String getNameArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "name" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetNameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(NAME$0, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "name" element
     */
    public org.apache.xmlbeans.XmlString xgetNameArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "name" element
     */
    public int sizeOfNameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NAME$0);
        }
    }
    
    /**
     * Sets array of all "name" element
     */
    public void setNameArray(java.lang.String[] nameArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(nameArray, NAME$0);
        }
    }
    
    /**
     * Sets ith "name" element
     */
    public void setNameArray(int i, java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) array of all "name" element
     */
    public void xsetNameArray(org.apache.xmlbeans.XmlString[]nameArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(nameArray, NAME$0);
        }
    }
    
    /**
     * Sets (as xml) ith "name" element
     */
    public void xsetNameArray(int i, org.apache.xmlbeans.XmlString name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(name);
        }
    }
    
    /**
     * Inserts the value as the ith "name" element
     */
    public void insertName(int i, java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(NAME$0, i);
            target.setStringValue(name);
        }
    }
    
    /**
     * Appends the value as the last "name" element
     */
    public void addName(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
            target.setStringValue(name);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "name" element
     */
    public org.apache.xmlbeans.XmlString insertNewName(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(NAME$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "name" element
     */
    public org.apache.xmlbeans.XmlString addNewName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "name" element
     */
    public void removeName(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NAME$0, i);
        }
    }
    
    /**
     * Gets array of all "summary" elements
     */
    public net.zeroinstall.model.LocalizableString[] getSummaryArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SUMMARY$2, targetList);
            net.zeroinstall.model.LocalizableString[] result = new net.zeroinstall.model.LocalizableString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "summary" element
     */
    public net.zeroinstall.model.LocalizableString getSummaryArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().find_element_user(SUMMARY$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "summary" element
     */
    public int sizeOfSummaryArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SUMMARY$2);
        }
    }
    
    /**
     * Sets array of all "summary" element
     */
    public void setSummaryArray(net.zeroinstall.model.LocalizableString[] summaryArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(summaryArray, SUMMARY$2);
        }
    }
    
    /**
     * Sets ith "summary" element
     */
    public void setSummaryArray(int i, net.zeroinstall.model.LocalizableString summary)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().find_element_user(SUMMARY$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(summary);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "summary" element
     */
    public net.zeroinstall.model.LocalizableString insertNewSummary(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().insert_element_user(SUMMARY$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "summary" element
     */
    public net.zeroinstall.model.LocalizableString addNewSummary()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().add_element_user(SUMMARY$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "summary" element
     */
    public void removeSummary(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SUMMARY$2, i);
        }
    }
    
    /**
     * Gets array of all "description" elements
     */
    public net.zeroinstall.model.LocalizableString[] getDescriptionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(DESCRIPTION$4, targetList);
            net.zeroinstall.model.LocalizableString[] result = new net.zeroinstall.model.LocalizableString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "description" element
     */
    public net.zeroinstall.model.LocalizableString getDescriptionArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().find_element_user(DESCRIPTION$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "description" element
     */
    public int sizeOfDescriptionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESCRIPTION$4);
        }
    }
    
    /**
     * Sets array of all "description" element
     */
    public void setDescriptionArray(net.zeroinstall.model.LocalizableString[] descriptionArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(descriptionArray, DESCRIPTION$4);
        }
    }
    
    /**
     * Sets ith "description" element
     */
    public void setDescriptionArray(int i, net.zeroinstall.model.LocalizableString description)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().find_element_user(DESCRIPTION$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(description);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "description" element
     */
    public net.zeroinstall.model.LocalizableString insertNewDescription(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().insert_element_user(DESCRIPTION$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "description" element
     */
    public net.zeroinstall.model.LocalizableString addNewDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.LocalizableString target = null;
            target = (net.zeroinstall.model.LocalizableString)get_store().add_element_user(DESCRIPTION$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "description" element
     */
    public void removeDescription(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESCRIPTION$4, i);
        }
    }
    
    /**
     * Gets array of all "homepage" elements
     */
    public java.lang.String[] getHomepageArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(HOMEPAGE$6, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "homepage" element
     */
    public java.lang.String getHomepageArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOMEPAGE$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "homepage" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetHomepageArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(HOMEPAGE$6, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "homepage" element
     */
    public org.apache.xmlbeans.XmlString xgetHomepageArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOMEPAGE$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "homepage" element
     */
    public int sizeOfHomepageArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HOMEPAGE$6);
        }
    }
    
    /**
     * Sets array of all "homepage" element
     */
    public void setHomepageArray(java.lang.String[] homepageArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(homepageArray, HOMEPAGE$6);
        }
    }
    
    /**
     * Sets ith "homepage" element
     */
    public void setHomepageArray(int i, java.lang.String homepage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOMEPAGE$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(homepage);
        }
    }
    
    /**
     * Sets (as xml) array of all "homepage" element
     */
    public void xsetHomepageArray(org.apache.xmlbeans.XmlString[]homepageArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(homepageArray, HOMEPAGE$6);
        }
    }
    
    /**
     * Sets (as xml) ith "homepage" element
     */
    public void xsetHomepageArray(int i, org.apache.xmlbeans.XmlString homepage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOMEPAGE$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(homepage);
        }
    }
    
    /**
     * Inserts the value as the ith "homepage" element
     */
    public void insertHomepage(int i, java.lang.String homepage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(HOMEPAGE$6, i);
            target.setStringValue(homepage);
        }
    }
    
    /**
     * Appends the value as the last "homepage" element
     */
    public void addHomepage(java.lang.String homepage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOMEPAGE$6);
            target.setStringValue(homepage);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "homepage" element
     */
    public org.apache.xmlbeans.XmlString insertNewHomepage(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(HOMEPAGE$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "homepage" element
     */
    public org.apache.xmlbeans.XmlString addNewHomepage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOMEPAGE$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "homepage" element
     */
    public void removeHomepage(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HOMEPAGE$6, i);
        }
    }
    
    /**
     * Gets array of all "icon" elements
     */
    public net.zeroinstall.model.Icon[] getIconArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ICON$8, targetList);
            net.zeroinstall.model.Icon[] result = new net.zeroinstall.model.Icon[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "icon" element
     */
    public net.zeroinstall.model.Icon getIconArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().find_element_user(ICON$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "icon" element
     */
    public int sizeOfIconArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ICON$8);
        }
    }
    
    /**
     * Sets array of all "icon" element
     */
    public void setIconArray(net.zeroinstall.model.Icon[] iconArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(iconArray, ICON$8);
        }
    }
    
    /**
     * Sets ith "icon" element
     */
    public void setIconArray(int i, net.zeroinstall.model.Icon icon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().find_element_user(ICON$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(icon);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "icon" element
     */
    public net.zeroinstall.model.Icon insertNewIcon(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().insert_element_user(ICON$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "icon" element
     */
    public net.zeroinstall.model.Icon addNewIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().add_element_user(ICON$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "icon" element
     */
    public void removeIcon(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ICON$8, i);
        }
    }
    
    /**
     * Gets array of all "category" elements
     */
    public net.zeroinstall.model.Category[] getCategoryArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CATEGORY$10, targetList);
            net.zeroinstall.model.Category[] result = new net.zeroinstall.model.Category[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "category" element
     */
    public net.zeroinstall.model.Category getCategoryArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Category target = null;
            target = (net.zeroinstall.model.Category)get_store().find_element_user(CATEGORY$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "category" element
     */
    public int sizeOfCategoryArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CATEGORY$10);
        }
    }
    
    /**
     * Sets array of all "category" element
     */
    public void setCategoryArray(net.zeroinstall.model.Category[] categoryArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(categoryArray, CATEGORY$10);
        }
    }
    
    /**
     * Sets ith "category" element
     */
    public void setCategoryArray(int i, net.zeroinstall.model.Category category)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Category target = null;
            target = (net.zeroinstall.model.Category)get_store().find_element_user(CATEGORY$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(category);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "category" element
     */
    public net.zeroinstall.model.Category insertNewCategory(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Category target = null;
            target = (net.zeroinstall.model.Category)get_store().insert_element_user(CATEGORY$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "category" element
     */
    public net.zeroinstall.model.Category addNewCategory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Category target = null;
            target = (net.zeroinstall.model.Category)get_store().add_element_user(CATEGORY$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "category" element
     */
    public void removeCategory(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CATEGORY$10, i);
        }
    }
    
    /**
     * Gets array of all "needs-terminal" elements
     */
    public java.lang.String[] getNeedsTerminalArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(NEEDSTERMINAL$12, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "needs-terminal" element
     */
    public java.lang.String getNeedsTerminalArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NEEDSTERMINAL$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "needs-terminal" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetNeedsTerminalArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(NEEDSTERMINAL$12, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "needs-terminal" element
     */
    public org.apache.xmlbeans.XmlString xgetNeedsTerminalArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NEEDSTERMINAL$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "needs-terminal" element
     */
    public int sizeOfNeedsTerminalArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NEEDSTERMINAL$12);
        }
    }
    
    /**
     * Sets array of all "needs-terminal" element
     */
    public void setNeedsTerminalArray(java.lang.String[] needsTerminalArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(needsTerminalArray, NEEDSTERMINAL$12);
        }
    }
    
    /**
     * Sets ith "needs-terminal" element
     */
    public void setNeedsTerminalArray(int i, java.lang.String needsTerminal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NEEDSTERMINAL$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(needsTerminal);
        }
    }
    
    /**
     * Sets (as xml) array of all "needs-terminal" element
     */
    public void xsetNeedsTerminalArray(org.apache.xmlbeans.XmlString[]needsTerminalArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(needsTerminalArray, NEEDSTERMINAL$12);
        }
    }
    
    /**
     * Sets (as xml) ith "needs-terminal" element
     */
    public void xsetNeedsTerminalArray(int i, org.apache.xmlbeans.XmlString needsTerminal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NEEDSTERMINAL$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(needsTerminal);
        }
    }
    
    /**
     * Inserts the value as the ith "needs-terminal" element
     */
    public void insertNeedsTerminal(int i, java.lang.String needsTerminal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(NEEDSTERMINAL$12, i);
            target.setStringValue(needsTerminal);
        }
    }
    
    /**
     * Appends the value as the last "needs-terminal" element
     */
    public void addNeedsTerminal(java.lang.String needsTerminal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NEEDSTERMINAL$12);
            target.setStringValue(needsTerminal);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "needs-terminal" element
     */
    public org.apache.xmlbeans.XmlString insertNewNeedsTerminal(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(NEEDSTERMINAL$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "needs-terminal" element
     */
    public org.apache.xmlbeans.XmlString addNewNeedsTerminal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NEEDSTERMINAL$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "needs-terminal" element
     */
    public void removeNeedsTerminal(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NEEDSTERMINAL$12, i);
        }
    }
    
    /**
     * Gets array of all "feed" elements
     */
    public net.zeroinstall.model.FeedReference[] getFeedArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FEED$14, targetList);
            net.zeroinstall.model.FeedReference[] result = new net.zeroinstall.model.FeedReference[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "feed" element
     */
    public net.zeroinstall.model.FeedReference getFeedArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.FeedReference target = null;
            target = (net.zeroinstall.model.FeedReference)get_store().find_element_user(FEED$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "feed" element
     */
    public int sizeOfFeedArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FEED$14);
        }
    }
    
    /**
     * Sets array of all "feed" element
     */
    public void setFeedArray(net.zeroinstall.model.FeedReference[] feedArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(feedArray, FEED$14);
        }
    }
    
    /**
     * Sets ith "feed" element
     */
    public void setFeedArray(int i, net.zeroinstall.model.FeedReference feed)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.FeedReference target = null;
            target = (net.zeroinstall.model.FeedReference)get_store().find_element_user(FEED$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(feed);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "feed" element
     */
    public net.zeroinstall.model.FeedReference insertNewFeed(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.FeedReference target = null;
            target = (net.zeroinstall.model.FeedReference)get_store().insert_element_user(FEED$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "feed" element
     */
    public net.zeroinstall.model.FeedReference addNewFeed()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.FeedReference target = null;
            target = (net.zeroinstall.model.FeedReference)get_store().add_element_user(FEED$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "feed" element
     */
    public void removeFeed(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FEED$14, i);
        }
    }
    
    /**
     * Gets array of all "feed-for" elements
     */
    public net.zeroinstall.model.InterfaceReference[] getFeedForArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FEEDFOR$16, targetList);
            net.zeroinstall.model.InterfaceReference[] result = new net.zeroinstall.model.InterfaceReference[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "feed-for" element
     */
    public net.zeroinstall.model.InterfaceReference getFeedForArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().find_element_user(FEEDFOR$16, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "feed-for" element
     */
    public int sizeOfFeedForArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FEEDFOR$16);
        }
    }
    
    /**
     * Sets array of all "feed-for" element
     */
    public void setFeedForArray(net.zeroinstall.model.InterfaceReference[] feedForArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(feedForArray, FEEDFOR$16);
        }
    }
    
    /**
     * Sets ith "feed-for" element
     */
    public void setFeedForArray(int i, net.zeroinstall.model.InterfaceReference feedFor)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().find_element_user(FEEDFOR$16, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(feedFor);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "feed-for" element
     */
    public net.zeroinstall.model.InterfaceReference insertNewFeedFor(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().insert_element_user(FEEDFOR$16, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "feed-for" element
     */
    public net.zeroinstall.model.InterfaceReference addNewFeedFor()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().add_element_user(FEEDFOR$16);
            return target;
        }
    }
    
    /**
     * Removes the ith "feed-for" element
     */
    public void removeFeedFor(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FEEDFOR$16, i);
        }
    }
    
    /**
     * Gets array of all "replaced-by" elements
     */
    public net.zeroinstall.model.InterfaceReference[] getReplacedByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(REPLACEDBY$18, targetList);
            net.zeroinstall.model.InterfaceReference[] result = new net.zeroinstall.model.InterfaceReference[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "replaced-by" element
     */
    public net.zeroinstall.model.InterfaceReference getReplacedByArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().find_element_user(REPLACEDBY$18, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "replaced-by" element
     */
    public int sizeOfReplacedByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REPLACEDBY$18);
        }
    }
    
    /**
     * Sets array of all "replaced-by" element
     */
    public void setReplacedByArray(net.zeroinstall.model.InterfaceReference[] replacedByArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(replacedByArray, REPLACEDBY$18);
        }
    }
    
    /**
     * Sets ith "replaced-by" element
     */
    public void setReplacedByArray(int i, net.zeroinstall.model.InterfaceReference replacedBy)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().find_element_user(REPLACEDBY$18, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(replacedBy);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "replaced-by" element
     */
    public net.zeroinstall.model.InterfaceReference insertNewReplacedBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().insert_element_user(REPLACEDBY$18, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "replaced-by" element
     */
    public net.zeroinstall.model.InterfaceReference addNewReplacedBy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.InterfaceReference target = null;
            target = (net.zeroinstall.model.InterfaceReference)get_store().add_element_user(REPLACEDBY$18);
            return target;
        }
    }
    
    /**
     * Removes the ith "replaced-by" element
     */
    public void removeReplacedBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REPLACEDBY$18, i);
        }
    }
    
    /**
     * Gets array of all "implementation" elements
     */
    public net.zeroinstall.model.Implementation[] getImplementationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(IMPLEMENTATION$20, targetList);
            net.zeroinstall.model.Implementation[] result = new net.zeroinstall.model.Implementation[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "implementation" element
     */
    public net.zeroinstall.model.Implementation getImplementationArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Implementation target = null;
            target = (net.zeroinstall.model.Implementation)get_store().find_element_user(IMPLEMENTATION$20, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "implementation" element
     */
    public int sizeOfImplementationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(IMPLEMENTATION$20);
        }
    }
    
    /**
     * Sets array of all "implementation" element
     */
    public void setImplementationArray(net.zeroinstall.model.Implementation[] implementationArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(implementationArray, IMPLEMENTATION$20);
        }
    }
    
    /**
     * Sets ith "implementation" element
     */
    public void setImplementationArray(int i, net.zeroinstall.model.Implementation implementation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Implementation target = null;
            target = (net.zeroinstall.model.Implementation)get_store().find_element_user(IMPLEMENTATION$20, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(implementation);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "implementation" element
     */
    public net.zeroinstall.model.Implementation insertNewImplementation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Implementation target = null;
            target = (net.zeroinstall.model.Implementation)get_store().insert_element_user(IMPLEMENTATION$20, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "implementation" element
     */
    public net.zeroinstall.model.Implementation addNewImplementation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Implementation target = null;
            target = (net.zeroinstall.model.Implementation)get_store().add_element_user(IMPLEMENTATION$20);
            return target;
        }
    }
    
    /**
     * Removes the ith "implementation" element
     */
    public void removeImplementation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(IMPLEMENTATION$20, i);
        }
    }
    
    /**
     * Gets array of all "package-implementation" elements
     */
    public net.zeroinstall.model.PackageImplementation[] getPackageImplementationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PACKAGEIMPLEMENTATION$22, targetList);
            net.zeroinstall.model.PackageImplementation[] result = new net.zeroinstall.model.PackageImplementation[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "package-implementation" element
     */
    public net.zeroinstall.model.PackageImplementation getPackageImplementationArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.PackageImplementation target = null;
            target = (net.zeroinstall.model.PackageImplementation)get_store().find_element_user(PACKAGEIMPLEMENTATION$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "package-implementation" element
     */
    public int sizeOfPackageImplementationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PACKAGEIMPLEMENTATION$22);
        }
    }
    
    /**
     * Sets array of all "package-implementation" element
     */
    public void setPackageImplementationArray(net.zeroinstall.model.PackageImplementation[] packageImplementationArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(packageImplementationArray, PACKAGEIMPLEMENTATION$22);
        }
    }
    
    /**
     * Sets ith "package-implementation" element
     */
    public void setPackageImplementationArray(int i, net.zeroinstall.model.PackageImplementation packageImplementation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.PackageImplementation target = null;
            target = (net.zeroinstall.model.PackageImplementation)get_store().find_element_user(PACKAGEIMPLEMENTATION$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(packageImplementation);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "package-implementation" element
     */
    public net.zeroinstall.model.PackageImplementation insertNewPackageImplementation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.PackageImplementation target = null;
            target = (net.zeroinstall.model.PackageImplementation)get_store().insert_element_user(PACKAGEIMPLEMENTATION$22, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "package-implementation" element
     */
    public net.zeroinstall.model.PackageImplementation addNewPackageImplementation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.PackageImplementation target = null;
            target = (net.zeroinstall.model.PackageImplementation)get_store().add_element_user(PACKAGEIMPLEMENTATION$22);
            return target;
        }
    }
    
    /**
     * Removes the ith "package-implementation" element
     */
    public void removePackageImplementation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PACKAGEIMPLEMENTATION$22, i);
        }
    }
    
    /**
     * Gets array of all "group" elements
     */
    public net.zeroinstall.model.Group[] getGroupArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(GROUP$24, targetList);
            net.zeroinstall.model.Group[] result = new net.zeroinstall.model.Group[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "group" element
     */
    public net.zeroinstall.model.Group getGroupArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Group target = null;
            target = (net.zeroinstall.model.Group)get_store().find_element_user(GROUP$24, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "group" element
     */
    public int sizeOfGroupArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GROUP$24);
        }
    }
    
    /**
     * Sets array of all "group" element
     */
    public void setGroupArray(net.zeroinstall.model.Group[] groupArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(groupArray, GROUP$24);
        }
    }
    
    /**
     * Sets ith "group" element
     */
    public void setGroupArray(int i, net.zeroinstall.model.Group group)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Group target = null;
            target = (net.zeroinstall.model.Group)get_store().find_element_user(GROUP$24, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(group);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "group" element
     */
    public net.zeroinstall.model.Group insertNewGroup(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Group target = null;
            target = (net.zeroinstall.model.Group)get_store().insert_element_user(GROUP$24, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "group" element
     */
    public net.zeroinstall.model.Group addNewGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Group target = null;
            target = (net.zeroinstall.model.Group)get_store().add_element_user(GROUP$24);
            return target;
        }
    }
    
    /**
     * Removes the ith "group" element
     */
    public void removeGroup(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GROUP$24, i);
        }
    }
    
    /**
     * Gets array of all "entry-point" elements
     */
    public net.zeroinstall.model.EntryPoint[] getEntryPointArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ENTRYPOINT$26, targetList);
            net.zeroinstall.model.EntryPoint[] result = new net.zeroinstall.model.EntryPoint[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "entry-point" element
     */
    public net.zeroinstall.model.EntryPoint getEntryPointArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EntryPoint target = null;
            target = (net.zeroinstall.model.EntryPoint)get_store().find_element_user(ENTRYPOINT$26, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "entry-point" element
     */
    public int sizeOfEntryPointArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ENTRYPOINT$26);
        }
    }
    
    /**
     * Sets array of all "entry-point" element
     */
    public void setEntryPointArray(net.zeroinstall.model.EntryPoint[] entryPointArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(entryPointArray, ENTRYPOINT$26);
        }
    }
    
    /**
     * Sets ith "entry-point" element
     */
    public void setEntryPointArray(int i, net.zeroinstall.model.EntryPoint entryPoint)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EntryPoint target = null;
            target = (net.zeroinstall.model.EntryPoint)get_store().find_element_user(ENTRYPOINT$26, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(entryPoint);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "entry-point" element
     */
    public net.zeroinstall.model.EntryPoint insertNewEntryPoint(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EntryPoint target = null;
            target = (net.zeroinstall.model.EntryPoint)get_store().insert_element_user(ENTRYPOINT$26, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "entry-point" element
     */
    public net.zeroinstall.model.EntryPoint addNewEntryPoint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EntryPoint target = null;
            target = (net.zeroinstall.model.EntryPoint)get_store().add_element_user(ENTRYPOINT$26);
            return target;
        }
    }
    
    /**
     * Removes the ith "entry-point" element
     */
    public void removeEntryPoint(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENTRYPOINT$26, i);
        }
    }
    
    /**
     * Gets the "min-injector-version" attribute
     */
    public java.lang.String getMinInjectorVersion()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MININJECTORVERSION$28);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "min-injector-version" attribute
     */
    public org.apache.xmlbeans.XmlString xgetMinInjectorVersion()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MININJECTORVERSION$28);
            return target;
        }
    }
    
    /**
     * True if has "min-injector-version" attribute
     */
    public boolean isSetMinInjectorVersion()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MININJECTORVERSION$28) != null;
        }
    }
    
    /**
     * Sets the "min-injector-version" attribute
     */
    public void setMinInjectorVersion(java.lang.String minInjectorVersion)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MININJECTORVERSION$28);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MININJECTORVERSION$28);
            }
            target.setStringValue(minInjectorVersion);
        }
    }
    
    /**
     * Sets (as xml) the "min-injector-version" attribute
     */
    public void xsetMinInjectorVersion(org.apache.xmlbeans.XmlString minInjectorVersion)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MININJECTORVERSION$28);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MININJECTORVERSION$28);
            }
            target.set(minInjectorVersion);
        }
    }
    
    /**
     * Unsets the "min-injector-version" attribute
     */
    public void unsetMinInjectorVersion()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MININJECTORVERSION$28);
        }
    }
    
    /**
     * Gets the "uri" attribute
     */
    public java.lang.String getUri()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(URI$30);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "uri" attribute
     */
    public org.apache.xmlbeans.XmlString xgetUri()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(URI$30);
            return target;
        }
    }
    
    /**
     * True if has "uri" attribute
     */
    public boolean isSetUri()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(URI$30) != null;
        }
    }
    
    /**
     * Sets the "uri" attribute
     */
    public void setUri(java.lang.String uri)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(URI$30);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(URI$30);
            }
            target.setStringValue(uri);
        }
    }
    
    /**
     * Sets (as xml) the "uri" attribute
     */
    public void xsetUri(org.apache.xmlbeans.XmlString uri)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(URI$30);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(URI$30);
            }
            target.set(uri);
        }
    }
    
    /**
     * Unsets the "uri" attribute
     */
    public void unsetUri()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(URI$30);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy