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

org.openxmlformats.schemas.drawingml.x2006.chart.impl.CTExtensionListImpl 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_ExtensionList
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/chart
 * Java type: org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.chart.impl;
/**
 * An XML CT_ExtensionList(@http://schemas.openxmlformats.org/drawingml/2006/chart).
 *
 * This is a complex type.
 */
public class CTExtensionListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList
{
    
    public CTExtensionListImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EXT$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/chart", "ext");
    
    
    /**
     * Gets a List of "ext" elements
     */
    public java.util.List getExtList()
    {
        final class ExtList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension get(int i)
                { return CTExtensionListImpl.this.getExtArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension set(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension o)
            {
                org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension old = CTExtensionListImpl.this.getExtArray(i);
                CTExtensionListImpl.this.setExtArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension o)
                { CTExtensionListImpl.this.insertNewExt(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension old = CTExtensionListImpl.this.getExtArray(i);
                CTExtensionListImpl.this.removeExt(i);
                return old;
            }
            
            public int size()
                { return CTExtensionListImpl.this.sizeOfExtArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new ExtList();
        }
    }
    
    /**
     * Gets array of all "ext" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension[] getExtArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EXT$0, targetList);
            org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension[] result = new org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "ext" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension getExtArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension)get_store().find_element_user(EXT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "ext" element
     */
    public int sizeOfExtArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXT$0);
        }
    }
    
    /**
     * Sets array of all "ext" element
     */
    public void setExtArray(org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension[] extArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(extArray, EXT$0);
        }
    }
    
    /**
     * Sets ith "ext" element
     */
    public void setExtArray(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension ext)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension)get_store().find_element_user(EXT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(ext);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "ext" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension insertNewExt(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension)get_store().insert_element_user(EXT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "ext" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension addNewExt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtension)get_store().add_element_user(EXT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "ext" element
     */
    public void removeExt(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXT$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy