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

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

The newest version!
/*
 * XML Type:  implementation
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.Implementation
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * An XML implementation(@http://zero-install.sourceforge.net/2004/injector/interface).
 *
 * This is a complex type.
 */
public class ImplementationImpl extends net.zeroinstall.model.impl.ElementImpl implements net.zeroinstall.model.Implementation
{
    private static final long serialVersionUID = 1L;
    
    public ImplementationImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BINDING$0 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "binding");
    private static final javax.xml.namespace.QName ENVIRONMENT$2 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "environment");
    private static final javax.xml.namespace.QName OVERLAY$4 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "overlay");
    private static final javax.xml.namespace.QName EXECUTABLEINVAR$6 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-var");
    private static final javax.xml.namespace.QName EXECUTABLEINPATH$8 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-path");
    private static final javax.xml.namespace.QName COMMAND$10 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "command");
    private static final javax.xml.namespace.QName REQUIRES$12 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "requires");
    private static final javax.xml.namespace.QName RESTRICTS$14 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "restricts");
    private static final javax.xml.namespace.QName MANIFESTDIGEST$16 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "manifest-digest");
    private static final javax.xml.namespace.QName RECIPE$18 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "recipe");
    private static final javax.xml.namespace.QName ARCHIVE$20 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "archive");
    private static final javax.xml.namespace.QName FILE$22 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "file");
    private static final javax.xml.namespace.QName ID$24 = 
        new javax.xml.namespace.QName("", "id");
    private static final javax.xml.namespace.QName LOCALPATH$26 = 
        new javax.xml.namespace.QName("", "local-path");
    
    
    /**
     * 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$0, 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$0, 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$0);
        }
    }
    
    /**
     * Sets array of all "binding" element
     */
    public void setBindingArray(net.zeroinstall.model.Binding[] bindingArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(bindingArray, BINDING$0);
        }
    }
    
    /**
     * 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$0, 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$0, 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$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "binding" element
     */
    public void removeBinding(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BINDING$0, 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$2, 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$2, 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$2);
        }
    }
    
    /**
     * Sets array of all "environment" element
     */
    public void setEnvironmentArray(net.zeroinstall.model.Environment[] environmentArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(environmentArray, ENVIRONMENT$2);
        }
    }
    
    /**
     * 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$2, 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$2, 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$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "environment" element
     */
    public void removeEnvironment(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENVIRONMENT$2, 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$4, 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$4, 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$4);
        }
    }
    
    /**
     * Sets array of all "overlay" element
     */
    public void setOverlayArray(net.zeroinstall.model.Overlay[] overlayArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(overlayArray, OVERLAY$4);
        }
    }
    
    /**
     * 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$4, 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$4, 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$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "overlay" element
     */
    public void removeOverlay(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OVERLAY$4, 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$6, 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$6, 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$6);
        }
    }
    
    /**
     * Sets array of all "executable-in-var" element
     */
    public void setExecutableInVarArray(net.zeroinstall.model.ExecutableInVar[] executableInVarArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(executableInVarArray, EXECUTABLEINVAR$6);
        }
    }
    
    /**
     * 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$6, 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$6, 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$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "executable-in-var" element
     */
    public void removeExecutableInVar(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXECUTABLEINVAR$6, 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$8, 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$8, 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$8);
        }
    }
    
    /**
     * Sets array of all "executable-in-path" element
     */
    public void setExecutableInPathArray(net.zeroinstall.model.ExecutableInPath[] executableInPathArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(executableInPathArray, EXECUTABLEINPATH$8);
        }
    }
    
    /**
     * 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$8, 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$8, 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$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "executable-in-path" element
     */
    public void removeExecutableInPath(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXECUTABLEINPATH$8, i);
        }
    }
    
    /**
     * Gets array of all "command" elements
     */
    public net.zeroinstall.model.Command[] getCommandArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(COMMAND$10, targetList);
            net.zeroinstall.model.Command[] result = new net.zeroinstall.model.Command[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "command" element
     */
    public net.zeroinstall.model.Command getCommandArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Command target = null;
            target = (net.zeroinstall.model.Command)get_store().find_element_user(COMMAND$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "command" element
     */
    public int sizeOfCommandArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COMMAND$10);
        }
    }
    
    /**
     * Sets array of all "command" element
     */
    public void setCommandArray(net.zeroinstall.model.Command[] commandArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(commandArray, COMMAND$10);
        }
    }
    
    /**
     * Sets ith "command" element
     */
    public void setCommandArray(int i, net.zeroinstall.model.Command command)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Command target = null;
            target = (net.zeroinstall.model.Command)get_store().find_element_user(COMMAND$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(command);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "command" element
     */
    public net.zeroinstall.model.Command insertNewCommand(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Command target = null;
            target = (net.zeroinstall.model.Command)get_store().insert_element_user(COMMAND$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "command" element
     */
    public net.zeroinstall.model.Command addNewCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Command target = null;
            target = (net.zeroinstall.model.Command)get_store().add_element_user(COMMAND$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "command" element
     */
    public void removeCommand(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COMMAND$10, i);
        }
    }
    
    /**
     * Gets array of all "requires" elements
     */
    public net.zeroinstall.model.Dependency[] getRequiresArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(REQUIRES$12, targetList);
            net.zeroinstall.model.Dependency[] result = new net.zeroinstall.model.Dependency[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "requires" element
     */
    public net.zeroinstall.model.Dependency getRequiresArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Dependency target = null;
            target = (net.zeroinstall.model.Dependency)get_store().find_element_user(REQUIRES$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "requires" element
     */
    public int sizeOfRequiresArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REQUIRES$12);
        }
    }
    
    /**
     * Sets array of all "requires" element
     */
    public void setRequiresArray(net.zeroinstall.model.Dependency[] requiresArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(requiresArray, REQUIRES$12);
        }
    }
    
    /**
     * Sets ith "requires" element
     */
    public void setRequiresArray(int i, net.zeroinstall.model.Dependency requires)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Dependency target = null;
            target = (net.zeroinstall.model.Dependency)get_store().find_element_user(REQUIRES$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(requires);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "requires" element
     */
    public net.zeroinstall.model.Dependency insertNewRequires(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Dependency target = null;
            target = (net.zeroinstall.model.Dependency)get_store().insert_element_user(REQUIRES$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "requires" element
     */
    public net.zeroinstall.model.Dependency addNewRequires()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Dependency target = null;
            target = (net.zeroinstall.model.Dependency)get_store().add_element_user(REQUIRES$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "requires" element
     */
    public void removeRequires(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REQUIRES$12, i);
        }
    }
    
    /**
     * Gets array of all "restricts" elements
     */
    public net.zeroinstall.model.Restriction[] getRestrictsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(RESTRICTS$14, targetList);
            net.zeroinstall.model.Restriction[] result = new net.zeroinstall.model.Restriction[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "restricts" element
     */
    public net.zeroinstall.model.Restriction getRestrictsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Restriction target = null;
            target = (net.zeroinstall.model.Restriction)get_store().find_element_user(RESTRICTS$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "restricts" element
     */
    public int sizeOfRestrictsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RESTRICTS$14);
        }
    }
    
    /**
     * Sets array of all "restricts" element
     */
    public void setRestrictsArray(net.zeroinstall.model.Restriction[] restrictsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(restrictsArray, RESTRICTS$14);
        }
    }
    
    /**
     * Sets ith "restricts" element
     */
    public void setRestrictsArray(int i, net.zeroinstall.model.Restriction restricts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Restriction target = null;
            target = (net.zeroinstall.model.Restriction)get_store().find_element_user(RESTRICTS$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(restricts);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "restricts" element
     */
    public net.zeroinstall.model.Restriction insertNewRestricts(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Restriction target = null;
            target = (net.zeroinstall.model.Restriction)get_store().insert_element_user(RESTRICTS$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "restricts" element
     */
    public net.zeroinstall.model.Restriction addNewRestricts()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Restriction target = null;
            target = (net.zeroinstall.model.Restriction)get_store().add_element_user(RESTRICTS$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "restricts" element
     */
    public void removeRestricts(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RESTRICTS$14, i);
        }
    }
    
    /**
     * Gets array of all "manifest-digest" elements
     */
    public net.zeroinstall.model.ManifestDigest[] getManifestDigestArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(MANIFESTDIGEST$16, targetList);
            net.zeroinstall.model.ManifestDigest[] result = new net.zeroinstall.model.ManifestDigest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "manifest-digest" element
     */
    public net.zeroinstall.model.ManifestDigest getManifestDigestArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ManifestDigest target = null;
            target = (net.zeroinstall.model.ManifestDigest)get_store().find_element_user(MANIFESTDIGEST$16, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "manifest-digest" element
     */
    public int sizeOfManifestDigestArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MANIFESTDIGEST$16);
        }
    }
    
    /**
     * Sets array of all "manifest-digest" element
     */
    public void setManifestDigestArray(net.zeroinstall.model.ManifestDigest[] manifestDigestArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(manifestDigestArray, MANIFESTDIGEST$16);
        }
    }
    
    /**
     * Sets ith "manifest-digest" element
     */
    public void setManifestDigestArray(int i, net.zeroinstall.model.ManifestDigest manifestDigest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ManifestDigest target = null;
            target = (net.zeroinstall.model.ManifestDigest)get_store().find_element_user(MANIFESTDIGEST$16, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(manifestDigest);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "manifest-digest" element
     */
    public net.zeroinstall.model.ManifestDigest insertNewManifestDigest(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ManifestDigest target = null;
            target = (net.zeroinstall.model.ManifestDigest)get_store().insert_element_user(MANIFESTDIGEST$16, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "manifest-digest" element
     */
    public net.zeroinstall.model.ManifestDigest addNewManifestDigest()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.ManifestDigest target = null;
            target = (net.zeroinstall.model.ManifestDigest)get_store().add_element_user(MANIFESTDIGEST$16);
            return target;
        }
    }
    
    /**
     * Removes the ith "manifest-digest" element
     */
    public void removeManifestDigest(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MANIFESTDIGEST$16, i);
        }
    }
    
    /**
     * Gets array of all "recipe" elements
     */
    public net.zeroinstall.model.Recipe[] getRecipeArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(RECIPE$18, targetList);
            net.zeroinstall.model.Recipe[] result = new net.zeroinstall.model.Recipe[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "recipe" element
     */
    public net.zeroinstall.model.Recipe getRecipeArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Recipe target = null;
            target = (net.zeroinstall.model.Recipe)get_store().find_element_user(RECIPE$18, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "recipe" element
     */
    public int sizeOfRecipeArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECIPE$18);
        }
    }
    
    /**
     * Sets array of all "recipe" element
     */
    public void setRecipeArray(net.zeroinstall.model.Recipe[] recipeArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(recipeArray, RECIPE$18);
        }
    }
    
    /**
     * Sets ith "recipe" element
     */
    public void setRecipeArray(int i, net.zeroinstall.model.Recipe recipe)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Recipe target = null;
            target = (net.zeroinstall.model.Recipe)get_store().find_element_user(RECIPE$18, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(recipe);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "recipe" element
     */
    public net.zeroinstall.model.Recipe insertNewRecipe(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Recipe target = null;
            target = (net.zeroinstall.model.Recipe)get_store().insert_element_user(RECIPE$18, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "recipe" element
     */
    public net.zeroinstall.model.Recipe addNewRecipe()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Recipe target = null;
            target = (net.zeroinstall.model.Recipe)get_store().add_element_user(RECIPE$18);
            return target;
        }
    }
    
    /**
     * Removes the ith "recipe" element
     */
    public void removeRecipe(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECIPE$18, i);
        }
    }
    
    /**
     * Gets array of all "archive" elements
     */
    public net.zeroinstall.model.Archive[] getArchiveArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ARCHIVE$20, targetList);
            net.zeroinstall.model.Archive[] result = new net.zeroinstall.model.Archive[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "archive" element
     */
    public net.zeroinstall.model.Archive getArchiveArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Archive target = null;
            target = (net.zeroinstall.model.Archive)get_store().find_element_user(ARCHIVE$20, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "archive" element
     */
    public int sizeOfArchiveArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ARCHIVE$20);
        }
    }
    
    /**
     * Sets array of all "archive" element
     */
    public void setArchiveArray(net.zeroinstall.model.Archive[] archiveArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(archiveArray, ARCHIVE$20);
        }
    }
    
    /**
     * Sets ith "archive" element
     */
    public void setArchiveArray(int i, net.zeroinstall.model.Archive archive)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Archive target = null;
            target = (net.zeroinstall.model.Archive)get_store().find_element_user(ARCHIVE$20, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(archive);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "archive" element
     */
    public net.zeroinstall.model.Archive insertNewArchive(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Archive target = null;
            target = (net.zeroinstall.model.Archive)get_store().insert_element_user(ARCHIVE$20, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "archive" element
     */
    public net.zeroinstall.model.Archive addNewArchive()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Archive target = null;
            target = (net.zeroinstall.model.Archive)get_store().add_element_user(ARCHIVE$20);
            return target;
        }
    }
    
    /**
     * Removes the ith "archive" element
     */
    public void removeArchive(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ARCHIVE$20, i);
        }
    }
    
    /**
     * Gets array of all "file" elements
     */
    public net.zeroinstall.model.File[] getFileArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FILE$22, targetList);
            net.zeroinstall.model.File[] result = new net.zeroinstall.model.File[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "file" element
     */
    public net.zeroinstall.model.File getFileArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.File target = null;
            target = (net.zeroinstall.model.File)get_store().find_element_user(FILE$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "file" element
     */
    public int sizeOfFileArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FILE$22);
        }
    }
    
    /**
     * Sets array of all "file" element
     */
    public void setFileArray(net.zeroinstall.model.File[] fileArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(fileArray, FILE$22);
        }
    }
    
    /**
     * Sets ith "file" element
     */
    public void setFileArray(int i, net.zeroinstall.model.File file)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.File target = null;
            target = (net.zeroinstall.model.File)get_store().find_element_user(FILE$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(file);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "file" element
     */
    public net.zeroinstall.model.File insertNewFile(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.File target = null;
            target = (net.zeroinstall.model.File)get_store().insert_element_user(FILE$22, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "file" element
     */
    public net.zeroinstall.model.File addNewFile()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.File target = null;
            target = (net.zeroinstall.model.File)get_store().add_element_user(FILE$22);
            return target;
        }
    }
    
    /**
     * Removes the ith "file" element
     */
    public void removeFile(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FILE$22, i);
        }
    }
    
    /**
     * Gets the "id" attribute
     */
    public java.lang.String getId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "id" attribute
     */
    public org.apache.xmlbeans.XmlString xgetId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ID$24);
            return target;
        }
    }
    
    /**
     * Sets the "id" attribute
     */
    public void setId(java.lang.String id)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$24);
            }
            target.setStringValue(id);
        }
    }
    
    /**
     * Sets (as xml) the "id" attribute
     */
    public void xsetId(org.apache.xmlbeans.XmlString id)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ID$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ID$24);
            }
            target.set(id);
        }
    }
    
    /**
     * Gets the "local-path" attribute
     */
    public java.lang.String getLocalPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCALPATH$26);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "local-path" attribute
     */
    public org.apache.xmlbeans.XmlString xgetLocalPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(LOCALPATH$26);
            return target;
        }
    }
    
    /**
     * True if has "local-path" attribute
     */
    public boolean isSetLocalPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LOCALPATH$26) != null;
        }
    }
    
    /**
     * Sets the "local-path" attribute
     */
    public void setLocalPath(java.lang.String localPath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCALPATH$26);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCALPATH$26);
            }
            target.setStringValue(localPath);
        }
    }
    
    /**
     * Sets (as xml) the "local-path" attribute
     */
    public void xsetLocalPath(org.apache.xmlbeans.XmlString localPath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(LOCALPATH$26);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(LOCALPATH$26);
            }
            target.set(localPath);
        }
    }
    
    /**
     * Unsets the "local-path" attribute
     */
    public void unsetLocalPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LOCALPATH$26);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy