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

org.openxmlformats.schemas.drawingml.x2006.chart.impl.CTPivotFmtsImpl 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:  CT_PivotFmts
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/chart
 * Java type: org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmts
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.chart.impl;
/**
 * An XML CT_PivotFmts(@http://schemas.openxmlformats.org/drawingml/2006/chart).
 *
 * This is a complex type.
 */
public class CTPivotFmtsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmts
{
    private static final long serialVersionUID = 1L;
    
    public CTPivotFmtsImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PIVOTFMT$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/chart", "pivotFmt");
    
    
    /**
     * Gets a List of "pivotFmt" elements
     */
    public java.util.List getPivotFmtList()
    {
        final class PivotFmtList extends java.util.AbstractList
        {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt get(int i)
                { return CTPivotFmtsImpl.this.getPivotFmtArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt set(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt o)
            {
                org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt old = CTPivotFmtsImpl.this.getPivotFmtArray(i);
                CTPivotFmtsImpl.this.setPivotFmtArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt o)
                { CTPivotFmtsImpl.this.insertNewPivotFmt(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt old = CTPivotFmtsImpl.this.getPivotFmtArray(i);
                CTPivotFmtsImpl.this.removePivotFmt(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTPivotFmtsImpl.this.sizeOfPivotFmtArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PivotFmtList();
        }
    }
    
    /**
     * Gets array of all "pivotFmt" elements
     * @deprecated
     */
    @Deprecated
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt[] getPivotFmtArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PIVOTFMT$0, targetList);
            org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt[] result = new org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "pivotFmt" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt getPivotFmtArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt)get_store().find_element_user(PIVOTFMT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "pivotFmt" element
     */
    public int sizeOfPivotFmtArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PIVOTFMT$0);
        }
    }
    
    /**
     * Sets array of all "pivotFmt" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setPivotFmtArray(org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt[] pivotFmtArray)
    {
        check_orphaned();
        arraySetterHelper(pivotFmtArray, PIVOTFMT$0);
    }
    
    /**
     * Sets ith "pivotFmt" element
     */
    public void setPivotFmtArray(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt pivotFmt)
    {
        generatedSetterHelperImpl(pivotFmt, PIVOTFMT$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "pivotFmt" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt insertNewPivotFmt(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt)get_store().insert_element_user(PIVOTFMT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "pivotFmt" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt addNewPivotFmt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotFmt)get_store().add_element_user(PIVOTFMT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "pivotFmt" element
     */
    public void removePivotFmt(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PIVOTFMT$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy