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

com.microsoft.schemas.office.visio.x2012.main.impl.ExtensionsTypeImpl Maven / Gradle / Ivy

Go to download

XmlBeans generated from the Ecma supplied xsds: http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip

The newest version!
/*
 * XML Type:  Extensions_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.ExtensionsType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Extensions_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class ExtensionsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ExtensionsType
{
    private static final long serialVersionUID = 1L;
    
    public ExtensionsTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CELLDEF$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "CellDef");
    private static final javax.xml.namespace.QName FUNCTIONDEF$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "FunctionDef");
    private static final javax.xml.namespace.QName SECTIONDEF$4 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "SectionDef");
    
    
    /**
     * Gets a List of "CellDef" elements
     */
    public java.util.List getCellDefList()
    {
        final class CellDefList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType get(int i)
                { return ExtensionsTypeImpl.this.getCellDefArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = ExtensionsTypeImpl.this.getCellDefArray(i);
                ExtensionsTypeImpl.this.setCellDefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
                { ExtensionsTypeImpl.this.insertNewCellDef(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = ExtensionsTypeImpl.this.getCellDefArray(i);
                ExtensionsTypeImpl.this.removeCellDef(i);
                return old;
            }
            
            @Override
            public int size()
                { return ExtensionsTypeImpl.this.sizeOfCellDefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CellDefList();
        }
    }
    
    /**
     * Gets array of all "CellDef" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType[] getCellDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CELLDEF$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.CellDefType[] result = new com.microsoft.schemas.office.visio.x2012.main.CellDefType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType getCellDefArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().find_element_user(CELLDEF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "CellDef" element
     */
    public int sizeOfCellDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CELLDEF$0);
        }
    }
    
    /**
     * Sets array of all "CellDef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCellDefArray(com.microsoft.schemas.office.visio.x2012.main.CellDefType[] cellDefArray)
    {
        check_orphaned();
        arraySetterHelper(cellDefArray, CELLDEF$0);
    }
    
    /**
     * Sets ith "CellDef" element
     */
    public void setCellDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType cellDef)
    {
        generatedSetterHelperImpl(cellDef, CELLDEF$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType insertNewCellDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().insert_element_user(CELLDEF$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType addNewCellDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().add_element_user(CELLDEF$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "CellDef" element
     */
    public void removeCellDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CELLDEF$0, i);
        }
    }
    
    /**
     * Gets a List of "FunctionDef" elements
     */
    public java.util.List getFunctionDefList()
    {
        final class FunctionDefList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType get(int i)
                { return ExtensionsTypeImpl.this.getFunctionDefArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.FunctionDefType old = ExtensionsTypeImpl.this.getFunctionDefArray(i);
                ExtensionsTypeImpl.this.setFunctionDefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType o)
                { ExtensionsTypeImpl.this.insertNewFunctionDef(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.FunctionDefType old = ExtensionsTypeImpl.this.getFunctionDefArray(i);
                ExtensionsTypeImpl.this.removeFunctionDef(i);
                return old;
            }
            
            @Override
            public int size()
                { return ExtensionsTypeImpl.this.sizeOfFunctionDefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new FunctionDefList();
        }
    }
    
    /**
     * Gets array of all "FunctionDef" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[] getFunctionDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FUNCTIONDEF$2, targetList);
            com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[] result = new com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "FunctionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType getFunctionDefArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().find_element_user(FUNCTIONDEF$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "FunctionDef" element
     */
    public int sizeOfFunctionDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FUNCTIONDEF$2);
        }
    }
    
    /**
     * Sets array of all "FunctionDef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setFunctionDefArray(com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[] functionDefArray)
    {
        check_orphaned();
        arraySetterHelper(functionDefArray, FUNCTIONDEF$2);
    }
    
    /**
     * Sets ith "FunctionDef" element
     */
    public void setFunctionDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType functionDef)
    {
        generatedSetterHelperImpl(functionDef, FUNCTIONDEF$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "FunctionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType insertNewFunctionDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().insert_element_user(FUNCTIONDEF$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "FunctionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType addNewFunctionDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().add_element_user(FUNCTIONDEF$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "FunctionDef" element
     */
    public void removeFunctionDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FUNCTIONDEF$2, i);
        }
    }
    
    /**
     * Gets a List of "SectionDef" elements
     */
    public java.util.List getSectionDefList()
    {
        final class SectionDefList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionDefType get(int i)
                { return ExtensionsTypeImpl.this.getSectionDefArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.SectionDefType old = ExtensionsTypeImpl.this.getSectionDefArray(i);
                ExtensionsTypeImpl.this.setSectionDefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType o)
                { ExtensionsTypeImpl.this.insertNewSectionDef(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionDefType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.SectionDefType old = ExtensionsTypeImpl.this.getSectionDefArray(i);
                ExtensionsTypeImpl.this.removeSectionDef(i);
                return old;
            }
            
            @Override
            public int size()
                { return ExtensionsTypeImpl.this.sizeOfSectionDefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SectionDefList();
        }
    }
    
    /**
     * Gets array of all "SectionDef" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.SectionDefType[] getSectionDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SECTIONDEF$4, targetList);
            com.microsoft.schemas.office.visio.x2012.main.SectionDefType[] result = new com.microsoft.schemas.office.visio.x2012.main.SectionDefType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "SectionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionDefType getSectionDefArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().find_element_user(SECTIONDEF$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "SectionDef" element
     */
    public int sizeOfSectionDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECTIONDEF$4);
        }
    }
    
    /**
     * Sets array of all "SectionDef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setSectionDefArray(com.microsoft.schemas.office.visio.x2012.main.SectionDefType[] sectionDefArray)
    {
        check_orphaned();
        arraySetterHelper(sectionDefArray, SECTIONDEF$4);
    }
    
    /**
     * Sets ith "SectionDef" element
     */
    public void setSectionDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType sectionDef)
    {
        generatedSetterHelperImpl(sectionDef, SECTIONDEF$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "SectionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionDefType insertNewSectionDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().insert_element_user(SECTIONDEF$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "SectionDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionDefType addNewSectionDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().add_element_user(SECTIONDEF$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "SectionDef" element
     */
    public void removeSectionDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECTIONDEF$4, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy