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

io.github.isotes.vs.model.impl.CustomBuildStepDocumentImpl Maven / Gradle / Ivy

Go to download

Generated XMLBeans Java classes for the XML schema of MSBuild project files

The newest version!
/*
 * An XML document type.
 * Localname: CustomBuildStep
 * Namespace: http://schemas.microsoft.com/developer/msbuild/2003
 * Java type: io.github.isotes.vs.model.CustomBuildStepDocument
 *
 * Automatically generated - do not modify.
 */
package io.github.isotes.vs.model.impl;
/**
 * A document containing one CustomBuildStep(@http://schemas.microsoft.com/developer/msbuild/2003) element.
 *
 * This is a complex type.
 */
public class CustomBuildStepDocumentImpl extends io.github.isotes.vs.model.impl.ItemDocumentImpl implements io.github.isotes.vs.model.CustomBuildStepDocument
{
    private static final long serialVersionUID = 1L;
    
    public CustomBuildStepDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CUSTOMBUILDSTEP$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "CustomBuildStep");
    
    
    /**
     * Gets the "CustomBuildStep" element
     */
    public io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep getCustomBuildStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep target = null;
            target = (io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep)get_store().find_element_user(CUSTOMBUILDSTEP$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CustomBuildStep" element
     */
    public void setCustomBuildStep(io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep customBuildStep)
    {
        generatedSetterHelperImpl(customBuildStep, CUSTOMBUILDSTEP$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "CustomBuildStep" element
     */
    public io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep addNewCustomBuildStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep target = null;
            target = (io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep)get_store().add_element_user(CUSTOMBUILDSTEP$0);
            return target;
        }
    }
    /**
     * An XML CustomBuildStep(@http://schemas.microsoft.com/developer/msbuild/2003).
     *
     * This is a complex type.
     */
    public static class CustomBuildStepImpl extends io.github.isotes.vs.model.impl.SimpleItemTypeImpl implements io.github.isotes.vs.model.CustomBuildStepDocument.CustomBuildStep
    {
        private static final long serialVersionUID = 1L;
        
        public CustomBuildStepImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName OUTPUTS$0 = 
            new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Outputs");
        private static final javax.xml.namespace.QName MESSAGE$2 = 
            new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Message");
        private static final javax.xml.namespace.QName INPUTS$4 = 
            new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Inputs");
        private static final javax.xml.namespace.QName COMMAND$6 = 
            new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Command");
        
        
        /**
         * Gets a List of "Outputs" elements
         */
        public java.util.List getOutputsList()
        {
            final class OutputsList extends java.util.AbstractList
            {
                @Override
                public org.apache.xmlbeans.XmlObject get(int i)
                    { return CustomBuildStepImpl.this.getOutputsArray(i); }
                
                @Override
                public org.apache.xmlbeans.XmlObject set(int i, org.apache.xmlbeans.XmlObject o)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getOutputsArray(i);
                    CustomBuildStepImpl.this.setOutputsArray(i, o);
                    return old;
                }
                
                @Override
                public void add(int i, org.apache.xmlbeans.XmlObject o)
                    { CustomBuildStepImpl.this.insertNewOutputs(i).set(o); }
                
                @Override
                public org.apache.xmlbeans.XmlObject remove(int i)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getOutputsArray(i);
                    CustomBuildStepImpl.this.removeOutputs(i);
                    return old;
                }
                
                @Override
                public int size()
                    { return CustomBuildStepImpl.this.sizeOfOutputsArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new OutputsList();
            }
        }
        
        /**
         * Gets array of all "Outputs" elements
         * @deprecated
         */
        @Deprecated
        public org.apache.xmlbeans.XmlObject[] getOutputsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(OUTPUTS$0, targetList);
                org.apache.xmlbeans.XmlObject[] result = new org.apache.xmlbeans.XmlObject[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Outputs" element
         */
        public org.apache.xmlbeans.XmlObject getOutputsArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(OUTPUTS$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Outputs" element
         */
        public int sizeOfOutputsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(OUTPUTS$0);
            }
        }
        
        /**
         * Sets array of all "Outputs" element  WARNING: This method is not atomicaly synchronized.
         */
        public void setOutputsArray(org.apache.xmlbeans.XmlObject[] outputsArray)
        {
            check_orphaned();
            arraySetterHelper(outputsArray, OUTPUTS$0);
        }
        
        /**
         * Sets ith "Outputs" element
         */
        public void setOutputsArray(int i, org.apache.xmlbeans.XmlObject outputs)
        {
            generatedSetterHelperImpl(outputs, OUTPUTS$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Outputs" element
         */
        public org.apache.xmlbeans.XmlObject insertNewOutputs(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().insert_element_user(OUTPUTS$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Outputs" element
         */
        public org.apache.xmlbeans.XmlObject addNewOutputs()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(OUTPUTS$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "Outputs" element
         */
        public void removeOutputs(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(OUTPUTS$0, i);
            }
        }
        
        /**
         * Gets a List of "Message" elements
         */
        public java.util.List getMessageList()
        {
            final class MessageList extends java.util.AbstractList
            {
                @Override
                public org.apache.xmlbeans.XmlObject get(int i)
                    { return CustomBuildStepImpl.this.getMessageArray(i); }
                
                @Override
                public org.apache.xmlbeans.XmlObject set(int i, org.apache.xmlbeans.XmlObject o)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getMessageArray(i);
                    CustomBuildStepImpl.this.setMessageArray(i, o);
                    return old;
                }
                
                @Override
                public void add(int i, org.apache.xmlbeans.XmlObject o)
                    { CustomBuildStepImpl.this.insertNewMessage(i).set(o); }
                
                @Override
                public org.apache.xmlbeans.XmlObject remove(int i)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getMessageArray(i);
                    CustomBuildStepImpl.this.removeMessage(i);
                    return old;
                }
                
                @Override
                public int size()
                    { return CustomBuildStepImpl.this.sizeOfMessageArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new MessageList();
            }
        }
        
        /**
         * Gets array of all "Message" elements
         * @deprecated
         */
        @Deprecated
        public org.apache.xmlbeans.XmlObject[] getMessageArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(MESSAGE$2, targetList);
                org.apache.xmlbeans.XmlObject[] result = new org.apache.xmlbeans.XmlObject[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Message" element
         */
        public org.apache.xmlbeans.XmlObject getMessageArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(MESSAGE$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Message" element
         */
        public int sizeOfMessageArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(MESSAGE$2);
            }
        }
        
        /**
         * Sets array of all "Message" element  WARNING: This method is not atomicaly synchronized.
         */
        public void setMessageArray(org.apache.xmlbeans.XmlObject[] messageArray)
        {
            check_orphaned();
            arraySetterHelper(messageArray, MESSAGE$2);
        }
        
        /**
         * Sets ith "Message" element
         */
        public void setMessageArray(int i, org.apache.xmlbeans.XmlObject message)
        {
            generatedSetterHelperImpl(message, MESSAGE$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Message" element
         */
        public org.apache.xmlbeans.XmlObject insertNewMessage(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().insert_element_user(MESSAGE$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Message" element
         */
        public org.apache.xmlbeans.XmlObject addNewMessage()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(MESSAGE$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "Message" element
         */
        public void removeMessage(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(MESSAGE$2, i);
            }
        }
        
        /**
         * Gets a List of "Inputs" elements
         */
        public java.util.List getInputsList()
        {
            final class InputsList extends java.util.AbstractList
            {
                @Override
                public org.apache.xmlbeans.XmlObject get(int i)
                    { return CustomBuildStepImpl.this.getInputsArray(i); }
                
                @Override
                public org.apache.xmlbeans.XmlObject set(int i, org.apache.xmlbeans.XmlObject o)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getInputsArray(i);
                    CustomBuildStepImpl.this.setInputsArray(i, o);
                    return old;
                }
                
                @Override
                public void add(int i, org.apache.xmlbeans.XmlObject o)
                    { CustomBuildStepImpl.this.insertNewInputs(i).set(o); }
                
                @Override
                public org.apache.xmlbeans.XmlObject remove(int i)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getInputsArray(i);
                    CustomBuildStepImpl.this.removeInputs(i);
                    return old;
                }
                
                @Override
                public int size()
                    { return CustomBuildStepImpl.this.sizeOfInputsArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new InputsList();
            }
        }
        
        /**
         * Gets array of all "Inputs" elements
         * @deprecated
         */
        @Deprecated
        public org.apache.xmlbeans.XmlObject[] getInputsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(INPUTS$4, targetList);
                org.apache.xmlbeans.XmlObject[] result = new org.apache.xmlbeans.XmlObject[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Inputs" element
         */
        public org.apache.xmlbeans.XmlObject getInputsArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(INPUTS$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Inputs" element
         */
        public int sizeOfInputsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(INPUTS$4);
            }
        }
        
        /**
         * Sets array of all "Inputs" element  WARNING: This method is not atomicaly synchronized.
         */
        public void setInputsArray(org.apache.xmlbeans.XmlObject[] inputsArray)
        {
            check_orphaned();
            arraySetterHelper(inputsArray, INPUTS$4);
        }
        
        /**
         * Sets ith "Inputs" element
         */
        public void setInputsArray(int i, org.apache.xmlbeans.XmlObject inputs)
        {
            generatedSetterHelperImpl(inputs, INPUTS$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Inputs" element
         */
        public org.apache.xmlbeans.XmlObject insertNewInputs(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().insert_element_user(INPUTS$4, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Inputs" element
         */
        public org.apache.xmlbeans.XmlObject addNewInputs()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(INPUTS$4);
                return target;
            }
        }
        
        /**
         * Removes the ith "Inputs" element
         */
        public void removeInputs(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(INPUTS$4, i);
            }
        }
        
        /**
         * Gets a List of "Command" elements
         */
        public java.util.List getCommandList()
        {
            final class CommandList extends java.util.AbstractList
            {
                @Override
                public org.apache.xmlbeans.XmlObject get(int i)
                    { return CustomBuildStepImpl.this.getCommandArray(i); }
                
                @Override
                public org.apache.xmlbeans.XmlObject set(int i, org.apache.xmlbeans.XmlObject o)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getCommandArray(i);
                    CustomBuildStepImpl.this.setCommandArray(i, o);
                    return old;
                }
                
                @Override
                public void add(int i, org.apache.xmlbeans.XmlObject o)
                    { CustomBuildStepImpl.this.insertNewCommand(i).set(o); }
                
                @Override
                public org.apache.xmlbeans.XmlObject remove(int i)
                {
                    org.apache.xmlbeans.XmlObject old = CustomBuildStepImpl.this.getCommandArray(i);
                    CustomBuildStepImpl.this.removeCommand(i);
                    return old;
                }
                
                @Override
                public int size()
                    { return CustomBuildStepImpl.this.sizeOfCommandArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new CommandList();
            }
        }
        
        /**
         * Gets array of all "Command" elements
         * @deprecated
         */
        @Deprecated
        public org.apache.xmlbeans.XmlObject[] getCommandArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(COMMAND$6, targetList);
                org.apache.xmlbeans.XmlObject[] result = new org.apache.xmlbeans.XmlObject[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Command" element
         */
        public org.apache.xmlbeans.XmlObject getCommandArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(COMMAND$6, 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$6);
            }
        }
        
        /**
         * Sets array of all "Command" element  WARNING: This method is not atomicaly synchronized.
         */
        public void setCommandArray(org.apache.xmlbeans.XmlObject[] commandArray)
        {
            check_orphaned();
            arraySetterHelper(commandArray, COMMAND$6);
        }
        
        /**
         * Sets ith "Command" element
         */
        public void setCommandArray(int i, org.apache.xmlbeans.XmlObject command)
        {
            generatedSetterHelperImpl(command, COMMAND$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Command" element
         */
        public org.apache.xmlbeans.XmlObject insertNewCommand(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().insert_element_user(COMMAND$6, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Command" element
         */
        public org.apache.xmlbeans.XmlObject addNewCommand()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(COMMAND$6);
                return target;
            }
        }
        
        /**
         * Removes the ith "Command" element
         */
        public void removeCommand(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(COMMAND$6, i);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy