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

org.openxmlformats.schemas.drawingml.x2006.main.impl.CTColorMRUImpl 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

There is a newer version: 1.4
Show newest version
/*
 * XML Type:  CT_ColorMRU
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main
 * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTColorMRU
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.main.impl;
/**
 * An XML CT_ColorMRU(@http://schemas.openxmlformats.org/drawingml/2006/main).
 *
 * This is a complex type.
 */
public class CTColorMRUImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTColorMRU
{
    
    public CTColorMRUImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SCRGBCLR$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "scrgbClr");
    private static final javax.xml.namespace.QName SRGBCLR$2 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "srgbClr");
    private static final javax.xml.namespace.QName HSLCLR$4 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "hslClr");
    private static final javax.xml.namespace.QName SYSCLR$6 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "sysClr");
    private static final javax.xml.namespace.QName SCHEMECLR$8 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "schemeClr");
    private static final javax.xml.namespace.QName PRSTCLR$10 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "prstClr");
    
    
    /**
     * Gets a List of "scrgbClr" elements
     */
    public java.util.List getScrgbClrList()
    {
        final class ScrgbClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor get(int i)
                { return CTColorMRUImpl.this.getScrgbClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor old = CTColorMRUImpl.this.getScrgbClrArray(i);
                CTColorMRUImpl.this.setScrgbClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor o)
                { CTColorMRUImpl.this.insertNewScrgbClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor old = CTColorMRUImpl.this.getScrgbClrArray(i);
                CTColorMRUImpl.this.removeScrgbClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfScrgbClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new ScrgbClrList();
        }
    }
    
    /**
     * Gets array of all "scrgbClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor[] getScrgbClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SCRGBCLR$0, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "scrgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor getScrgbClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor)get_store().find_element_user(SCRGBCLR$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "scrgbClr" element
     */
    public int sizeOfScrgbClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCRGBCLR$0);
        }
    }
    
    /**
     * Sets array of all "scrgbClr" element
     */
    public void setScrgbClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor[] scrgbClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(scrgbClrArray, SCRGBCLR$0);
        }
    }
    
    /**
     * Sets ith "scrgbClr" element
     */
    public void setScrgbClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor scrgbClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor)get_store().find_element_user(SCRGBCLR$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(scrgbClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "scrgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor insertNewScrgbClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor)get_store().insert_element_user(SCRGBCLR$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "scrgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor addNewScrgbClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScRgbColor)get_store().add_element_user(SCRGBCLR$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "scrgbClr" element
     */
    public void removeScrgbClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCRGBCLR$0, i);
        }
    }
    
    /**
     * Gets a List of "srgbClr" elements
     */
    public java.util.List getSrgbClrList()
    {
        final class SrgbClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor get(int i)
                { return CTColorMRUImpl.this.getSrgbClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor old = CTColorMRUImpl.this.getSrgbClrArray(i);
                CTColorMRUImpl.this.setSrgbClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor o)
                { CTColorMRUImpl.this.insertNewSrgbClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor old = CTColorMRUImpl.this.getSrgbClrArray(i);
                CTColorMRUImpl.this.removeSrgbClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfSrgbClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SrgbClrList();
        }
    }
    
    /**
     * Gets array of all "srgbClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor[] getSrgbClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SRGBCLR$2, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "srgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor getSrgbClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor)get_store().find_element_user(SRGBCLR$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "srgbClr" element
     */
    public int sizeOfSrgbClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SRGBCLR$2);
        }
    }
    
    /**
     * Sets array of all "srgbClr" element
     */
    public void setSrgbClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor[] srgbClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(srgbClrArray, SRGBCLR$2);
        }
    }
    
    /**
     * Sets ith "srgbClr" element
     */
    public void setSrgbClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor srgbClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor)get_store().find_element_user(SRGBCLR$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(srgbClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "srgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor insertNewSrgbClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor)get_store().insert_element_user(SRGBCLR$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "srgbClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor addNewSrgbClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSRgbColor)get_store().add_element_user(SRGBCLR$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "srgbClr" element
     */
    public void removeSrgbClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SRGBCLR$2, i);
        }
    }
    
    /**
     * Gets a List of "hslClr" elements
     */
    public java.util.List getHslClrList()
    {
        final class HslClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor get(int i)
                { return CTColorMRUImpl.this.getHslClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor old = CTColorMRUImpl.this.getHslClrArray(i);
                CTColorMRUImpl.this.setHslClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor o)
                { CTColorMRUImpl.this.insertNewHslClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor old = CTColorMRUImpl.this.getHslClrArray(i);
                CTColorMRUImpl.this.removeHslClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfHslClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new HslClrList();
        }
    }
    
    /**
     * Gets array of all "hslClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor[] getHslClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(HSLCLR$4, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "hslClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor getHslClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor)get_store().find_element_user(HSLCLR$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "hslClr" element
     */
    public int sizeOfHslClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HSLCLR$4);
        }
    }
    
    /**
     * Sets array of all "hslClr" element
     */
    public void setHslClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor[] hslClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(hslClrArray, HSLCLR$4);
        }
    }
    
    /**
     * Sets ith "hslClr" element
     */
    public void setHslClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor hslClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor)get_store().find_element_user(HSLCLR$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(hslClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "hslClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor insertNewHslClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor)get_store().insert_element_user(HSLCLR$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "hslClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor addNewHslClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTHslColor)get_store().add_element_user(HSLCLR$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "hslClr" element
     */
    public void removeHslClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HSLCLR$4, i);
        }
    }
    
    /**
     * Gets a List of "sysClr" elements
     */
    public java.util.List getSysClrList()
    {
        final class SysClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor get(int i)
                { return CTColorMRUImpl.this.getSysClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor old = CTColorMRUImpl.this.getSysClrArray(i);
                CTColorMRUImpl.this.setSysClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor o)
                { CTColorMRUImpl.this.insertNewSysClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor old = CTColorMRUImpl.this.getSysClrArray(i);
                CTColorMRUImpl.this.removeSysClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfSysClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SysClrList();
        }
    }
    
    /**
     * Gets array of all "sysClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor[] getSysClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SYSCLR$6, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "sysClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor getSysClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor)get_store().find_element_user(SYSCLR$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "sysClr" element
     */
    public int sizeOfSysClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SYSCLR$6);
        }
    }
    
    /**
     * Sets array of all "sysClr" element
     */
    public void setSysClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor[] sysClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(sysClrArray, SYSCLR$6);
        }
    }
    
    /**
     * Sets ith "sysClr" element
     */
    public void setSysClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor sysClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor)get_store().find_element_user(SYSCLR$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(sysClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "sysClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor insertNewSysClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor)get_store().insert_element_user(SYSCLR$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "sysClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor addNewSysClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor)get_store().add_element_user(SYSCLR$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "sysClr" element
     */
    public void removeSysClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SYSCLR$6, i);
        }
    }
    
    /**
     * Gets a List of "schemeClr" elements
     */
    public java.util.List getSchemeClrList()
    {
        final class SchemeClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor get(int i)
                { return CTColorMRUImpl.this.getSchemeClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor old = CTColorMRUImpl.this.getSchemeClrArray(i);
                CTColorMRUImpl.this.setSchemeClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor o)
                { CTColorMRUImpl.this.insertNewSchemeClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor old = CTColorMRUImpl.this.getSchemeClrArray(i);
                CTColorMRUImpl.this.removeSchemeClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfSchemeClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SchemeClrList();
        }
    }
    
    /**
     * Gets array of all "schemeClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor[] getSchemeClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SCHEMECLR$8, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "schemeClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor getSchemeClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor)get_store().find_element_user(SCHEMECLR$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "schemeClr" element
     */
    public int sizeOfSchemeClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMECLR$8);
        }
    }
    
    /**
     * Sets array of all "schemeClr" element
     */
    public void setSchemeClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor[] schemeClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(schemeClrArray, SCHEMECLR$8);
        }
    }
    
    /**
     * Sets ith "schemeClr" element
     */
    public void setSchemeClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor schemeClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor)get_store().find_element_user(SCHEMECLR$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(schemeClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "schemeClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor insertNewSchemeClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor)get_store().insert_element_user(SCHEMECLR$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "schemeClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor addNewSchemeClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor)get_store().add_element_user(SCHEMECLR$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "schemeClr" element
     */
    public void removeSchemeClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMECLR$8, i);
        }
    }
    
    /**
     * Gets a List of "prstClr" elements
     */
    public java.util.List getPrstClrList()
    {
        final class PrstClrList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor get(int i)
                { return CTColorMRUImpl.this.getPrstClrArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor o)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor old = CTColorMRUImpl.this.getPrstClrArray(i);
                CTColorMRUImpl.this.setPrstClrArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor o)
                { CTColorMRUImpl.this.insertNewPrstClr(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor old = CTColorMRUImpl.this.getPrstClrArray(i);
                CTColorMRUImpl.this.removePrstClr(i);
                return old;
            }
            
            public int size()
                { return CTColorMRUImpl.this.sizeOfPrstClrArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PrstClrList();
        }
    }
    
    /**
     * Gets array of all "prstClr" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor[] getPrstClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRSTCLR$10, targetList);
            org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor[] result = new org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "prstClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor getPrstClrArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor)get_store().find_element_user(PRSTCLR$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "prstClr" element
     */
    public int sizeOfPrstClrArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRSTCLR$10);
        }
    }
    
    /**
     * Sets array of all "prstClr" element
     */
    public void setPrstClrArray(org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor[] prstClrArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(prstClrArray, PRSTCLR$10);
        }
    }
    
    /**
     * Sets ith "prstClr" element
     */
    public void setPrstClrArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor prstClr)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor)get_store().find_element_user(PRSTCLR$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(prstClr);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "prstClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor insertNewPrstClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor)get_store().insert_element_user(PRSTCLR$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "prstClr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor addNewPrstClr()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor)get_store().add_element_user(PRSTCLR$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "prstClr" element
     */
    public void removePrstClr(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRSTCLR$10, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy