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

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

The newest version!
/*
 * XML Type:  runner
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.Runner
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * An XML runner(@http://zero-install.sourceforge.net/2004/injector/interface).
 *
 * This is a complex type.
 */
public class RunnerImpl extends net.zeroinstall.model.impl.RestrictionBaseImpl implements net.zeroinstall.model.Runner
{
    private static final long serialVersionUID = 1L;
    
    public RunnerImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName VERSION2$0 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "version");
    private static final javax.xml.namespace.QName BINDING$2 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "binding");
    private static final javax.xml.namespace.QName ENVIRONMENT$4 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "environment");
    private static final javax.xml.namespace.QName OVERLAY$6 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "overlay");
    private static final javax.xml.namespace.QName EXECUTABLEINVAR$8 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-var");
    private static final javax.xml.namespace.QName EXECUTABLEINPATH$10 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-path");
    private static final javax.xml.namespace.QName ARG$12 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "arg");
    private static final javax.xml.namespace.QName FOREACH$14 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "for-each");
    private static final javax.xml.namespace.QName COMMAND$16 = 
        new javax.xml.namespace.QName("", "command");
    
    
    /**
     * Gets array of all "version" elements
     */
    public net.zeroinstall.model.Constraint[] getVersion2Array()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(VERSION2$0, targetList);
            net.zeroinstall.model.Constraint[] result = new net.zeroinstall.model.Constraint[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "version" element
     */
    public net.zeroinstall.model.Constraint getVersion2Array(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Constraint target = null;
            target = (net.zeroinstall.model.Constraint)get_store().find_element_user(VERSION2$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "version" element
     */
    public int sizeOfVersion2Array()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(VERSION2$0);
        }
    }
    
    /**
     * Sets array of all "version" element
     */
    public void setVersion2Array(net.zeroinstall.model.Constraint[] version2Array)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(version2Array, VERSION2$0);
        }
    }
    
    /**
     * Sets ith "version" element
     */
    public void setVersion2Array(int i, net.zeroinstall.model.Constraint version2)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Constraint target = null;
            target = (net.zeroinstall.model.Constraint)get_store().find_element_user(VERSION2$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(version2);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "version" element
     */
    public net.zeroinstall.model.Constraint insertNewVersion2(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Constraint target = null;
            target = (net.zeroinstall.model.Constraint)get_store().insert_element_user(VERSION2$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "version" element
     */
    public net.zeroinstall.model.Constraint addNewVersion2()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Constraint target = null;
            target = (net.zeroinstall.model.Constraint)get_store().add_element_user(VERSION2$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "version" element
     */
    public void removeVersion2(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(VERSION2$0, i);
        }
    }
    
    /**
     * Gets array of all "binding" elements
     */
    public net.zeroinstall.model.Binding[] getBindingArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(BINDING$2, targetList);
            net.zeroinstall.model.Binding[] result = new net.zeroinstall.model.Binding[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "binding" element
     */
    public net.zeroinstall.model.Binding getBindingArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Binding target = null;
            target = (net.zeroinstall.model.Binding)get_store().find_element_user(BINDING$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "binding" element
     */
    public int sizeOfBindingArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BINDING$2);
        }
    }
    
    /**
     * Sets array of all "binding" element
     */
    public void setBindingArray(net.zeroinstall.model.Binding[] bindingArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(bindingArray, BINDING$2);
        }
    }
    
    /**
     * Sets ith "binding" element
     */
    public void setBindingArray(int i, net.zeroinstall.model.Binding binding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Binding target = null;
            target = (net.zeroinstall.model.Binding)get_store().find_element_user(BINDING$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(binding);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "binding" element
     */
    public net.zeroinstall.model.Binding insertNewBinding(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Binding target = null;
            target = (net.zeroinstall.model.Binding)get_store().insert_element_user(BINDING$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "binding" element
     */
    public net.zeroinstall.model.Binding addNewBinding()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Binding target = null;
            target = (net.zeroinstall.model.Binding)get_store().add_element_user(BINDING$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "binding" element
     */
    public void removeBinding(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BINDING$2, i);
        }
    }
    
    /**
     * Gets array of all "environment" elements
     */
    public net.zeroinstall.model.Environment[] getEnvironmentArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ENVIRONMENT$4, targetList);
            net.zeroinstall.model.Environment[] result = new net.zeroinstall.model.Environment[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "environment" element
     */
    public net.zeroinstall.model.Environment getEnvironmentArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Environment target = null;
            target = (net.zeroinstall.model.Environment)get_store().find_element_user(ENVIRONMENT$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "environment" element
     */
    public int sizeOfEnvironmentArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ENVIRONMENT$4);
        }
    }
    
    /**
     * Sets array of all "environment" element
     */
    public void setEnvironmentArray(net.zeroinstall.model.Environment[] environmentArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(environmentArray, ENVIRONMENT$4);
        }
    }
    
    /**
     * Sets ith "environment" element
     */
    public void setEnvironmentArray(int i, net.zeroinstall.model.Environment environment)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Environment target = null;
            target = (net.zeroinstall.model.Environment)get_store().find_element_user(ENVIRONMENT$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(environment);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "environment" element
     */
    public net.zeroinstall.model.Environment insertNewEnvironment(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Environment target = null;
            target = (net.zeroinstall.model.Environment)get_store().insert_element_user(ENVIRONMENT$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "environment" element
     */
    public net.zeroinstall.model.Environment addNewEnvironment()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Environment target = null;
            target = (net.zeroinstall.model.Environment)get_store().add_element_user(ENVIRONMENT$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "environment" element
     */
    public void removeEnvironment(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENVIRONMENT$4, i);
        }
    }
    
    /**
     * Gets array of all "overlay" elements
     */
    public net.zeroinstall.model.Overlay[] getOverlayArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(OVERLAY$6, targetList);
            net.zeroinstall.model.Overlay[] result = new net.zeroinstall.model.Overlay[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "overlay" element
     */
    public net.zeroinstall.model.Overlay getOverlayArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Overlay target = null;
            target = (net.zeroinstall.model.Overlay)get_store().find_element_user(OVERLAY$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "overlay" element
     */
    public int sizeOfOverlayArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OVERLAY$6);
        }
    }
    
    /**
     * Sets array of all "overlay" element
     */
    public void setOverlayArray(net.zeroinstall.model.Overlay[] overlayArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(overlayArray, OVERLAY$6);
        }
    }
    
    /**
     * Sets ith "overlay" element
     */
    public void setOverlayArray(int i, net.zeroinstall.model.Overlay overlay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Overlay target = null;
            target = (net.zeroinstall.model.Overlay)get_store().find_element_user(OVERLAY$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(overlay);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "overlay" element
     */
    public net.zeroinstall.model.Overlay insertNewOverlay(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Overlay target = null;
            target = (net.zeroinstall.model.Overlay)get_store().insert_element_user(OVERLAY$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "overlay" element
     */
    public net.zeroinstall.model.Overlay addNewOverlay()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Overlay target = null;
            target = (net.zeroinstall.model.Overlay)get_store().add_element_user(OVERLAY$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "overlay" element
     */
    public void removeOverlay(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OVERLAY$6, i);
        }
    }
    
    /**
     * Gets array of all "executable-in-var" elements
     */
    public net.zeroinstall.model.ExecutableInVar[] getExecutableInVarArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EXECUTABLEINVAR$8, targetList);
            net.zeroinstall.model.ExecutableInVar[] result = new net.zeroinstall.model.ExecutableInVar[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "executable-in-var" element
     */
    public net.zeroinstall.model.ExecutableInVar getExecutableInVarArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInVar target = null;
            target = (net.zeroinstall.model.ExecutableInVar)get_store().find_element_user(EXECUTABLEINVAR$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "executable-in-var" element
     */
    public int sizeOfExecutableInVarArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXECUTABLEINVAR$8);
        }
    }
    
    /**
     * Sets array of all "executable-in-var" element
     */
    public void setExecutableInVarArray(net.zeroinstall.model.ExecutableInVar[] executableInVarArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(executableInVarArray, EXECUTABLEINVAR$8);
        }
    }
    
    /**
     * Sets ith "executable-in-var" element
     */
    public void setExecutableInVarArray(int i, net.zeroinstall.model.ExecutableInVar executableInVar)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInVar target = null;
            target = (net.zeroinstall.model.ExecutableInVar)get_store().find_element_user(EXECUTABLEINVAR$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(executableInVar);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "executable-in-var" element
     */
    public net.zeroinstall.model.ExecutableInVar insertNewExecutableInVar(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInVar target = null;
            target = (net.zeroinstall.model.ExecutableInVar)get_store().insert_element_user(EXECUTABLEINVAR$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "executable-in-var" element
     */
    public net.zeroinstall.model.ExecutableInVar addNewExecutableInVar()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInVar target = null;
            target = (net.zeroinstall.model.ExecutableInVar)get_store().add_element_user(EXECUTABLEINVAR$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "executable-in-var" element
     */
    public void removeExecutableInVar(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXECUTABLEINVAR$8, i);
        }
    }
    
    /**
     * Gets array of all "executable-in-path" elements
     */
    public net.zeroinstall.model.ExecutableInPath[] getExecutableInPathArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EXECUTABLEINPATH$10, targetList);
            net.zeroinstall.model.ExecutableInPath[] result = new net.zeroinstall.model.ExecutableInPath[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "executable-in-path" element
     */
    public net.zeroinstall.model.ExecutableInPath getExecutableInPathArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInPath target = null;
            target = (net.zeroinstall.model.ExecutableInPath)get_store().find_element_user(EXECUTABLEINPATH$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "executable-in-path" element
     */
    public int sizeOfExecutableInPathArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXECUTABLEINPATH$10);
        }
    }
    
    /**
     * Sets array of all "executable-in-path" element
     */
    public void setExecutableInPathArray(net.zeroinstall.model.ExecutableInPath[] executableInPathArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(executableInPathArray, EXECUTABLEINPATH$10);
        }
    }
    
    /**
     * Sets ith "executable-in-path" element
     */
    public void setExecutableInPathArray(int i, net.zeroinstall.model.ExecutableInPath executableInPath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInPath target = null;
            target = (net.zeroinstall.model.ExecutableInPath)get_store().find_element_user(EXECUTABLEINPATH$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(executableInPath);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "executable-in-path" element
     */
    public net.zeroinstall.model.ExecutableInPath insertNewExecutableInPath(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInPath target = null;
            target = (net.zeroinstall.model.ExecutableInPath)get_store().insert_element_user(EXECUTABLEINPATH$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "executable-in-path" element
     */
    public net.zeroinstall.model.ExecutableInPath addNewExecutableInPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ExecutableInPath target = null;
            target = (net.zeroinstall.model.ExecutableInPath)get_store().add_element_user(EXECUTABLEINPATH$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "executable-in-path" element
     */
    public void removeExecutableInPath(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXECUTABLEINPATH$10, i);
        }
    }
    
    /**
     * Gets array of all "arg" elements
     */
    public java.lang.String[] getArgArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ARG$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 "arg" element
     */
    public java.lang.String getArgArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARG$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "arg" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetArgArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ARG$12, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "arg" element
     */
    public org.apache.xmlbeans.XmlString xgetArgArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARG$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "arg" element
     */
    public int sizeOfArgArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ARG$12);
        }
    }
    
    /**
     * Sets array of all "arg" element
     */
    public void setArgArray(java.lang.String[] argArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(argArray, ARG$12);
        }
    }
    
    /**
     * Sets ith "arg" element
     */
    public void setArgArray(int i, java.lang.String arg)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARG$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(arg);
        }
    }
    
    /**
     * Sets (as xml) array of all "arg" element
     */
    public void xsetArgArray(org.apache.xmlbeans.XmlString[]argArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(argArray, ARG$12);
        }
    }
    
    /**
     * Sets (as xml) ith "arg" element
     */
    public void xsetArgArray(int i, org.apache.xmlbeans.XmlString arg)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARG$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(arg);
        }
    }
    
    /**
     * Inserts the value as the ith "arg" element
     */
    public void insertArg(int i, java.lang.String arg)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(ARG$12, i);
            target.setStringValue(arg);
        }
    }
    
    /**
     * Appends the value as the last "arg" element
     */
    public void addArg(java.lang.String arg)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ARG$12);
            target.setStringValue(arg);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "arg" element
     */
    public org.apache.xmlbeans.XmlString insertNewArg(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(ARG$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "arg" element
     */
    public org.apache.xmlbeans.XmlString addNewArg()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ARG$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "arg" element
     */
    public void removeArg(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ARG$12, i);
        }
    }
    
    /**
     * Gets array of all "for-each" elements
     */
    public net.zeroinstall.model.ForEachArg[] getForEachArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FOREACH$14, targetList);
            net.zeroinstall.model.ForEachArg[] result = new net.zeroinstall.model.ForEachArg[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "for-each" element
     */
    public net.zeroinstall.model.ForEachArg getForEachArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ForEachArg target = null;
            target = (net.zeroinstall.model.ForEachArg)get_store().find_element_user(FOREACH$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "for-each" element
     */
    public int sizeOfForEachArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FOREACH$14);
        }
    }
    
    /**
     * Sets array of all "for-each" element
     */
    public void setForEachArray(net.zeroinstall.model.ForEachArg[] forEachArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(forEachArray, FOREACH$14);
        }
    }
    
    /**
     * Sets ith "for-each" element
     */
    public void setForEachArray(int i, net.zeroinstall.model.ForEachArg forEach)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ForEachArg target = null;
            target = (net.zeroinstall.model.ForEachArg)get_store().find_element_user(FOREACH$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(forEach);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "for-each" element
     */
    public net.zeroinstall.model.ForEachArg insertNewForEach(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ForEachArg target = null;
            target = (net.zeroinstall.model.ForEachArg)get_store().insert_element_user(FOREACH$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "for-each" element
     */
    public net.zeroinstall.model.ForEachArg addNewForEach()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ForEachArg target = null;
            target = (net.zeroinstall.model.ForEachArg)get_store().add_element_user(FOREACH$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "for-each" element
     */
    public void removeForEach(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FOREACH$14, i);
        }
    }
    
    /**
     * Gets the "command" attribute
     */
    public java.lang.String getCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMMAND$16);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "command" attribute
     */
    public org.apache.xmlbeans.XmlString xgetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COMMAND$16);
            return target;
        }
    }
    
    /**
     * True if has "command" attribute
     */
    public boolean isSetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(COMMAND$16) != null;
        }
    }
    
    /**
     * Sets the "command" attribute
     */
    public void setCommand(java.lang.String command)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMMAND$16);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COMMAND$16);
            }
            target.setStringValue(command);
        }
    }
    
    /**
     * Sets (as xml) the "command" attribute
     */
    public void xsetCommand(org.apache.xmlbeans.XmlString command)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COMMAND$16);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(COMMAND$16);
            }
            target.set(command);
        }
    }
    
    /**
     * Unsets the "command" attribute
     */
    public void unsetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(COMMAND$16);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy