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

org.openxmlformats.schemas.drawingml.x2006.diagram.impl.CTSDCategoriesImpl 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_SDCategories
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/diagram
 * Java type: org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.diagram.impl;
/**
 * An XML CT_SDCategories(@http://schemas.openxmlformats.org/drawingml/2006/diagram).
 *
 * This is a complex type.
 */
public class CTSDCategoriesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories
{
    
    public CTSDCategoriesImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CAT$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "cat");
    
    
    /**
     * Gets a List of "cat" elements
     */
    public java.util.List getCatList()
    {
        final class CatList extends java.util.AbstractList
        {
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory get(int i)
                { return CTSDCategoriesImpl.this.getCatArray(i); }
            
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory o)
            {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory old = CTSDCategoriesImpl.this.getCatArray(i);
                CTSDCategoriesImpl.this.setCatArray(i, o);
                return old;
            }
            
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory o)
                { CTSDCategoriesImpl.this.insertNewCat(i).set(o); }
            
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory remove(int i)
            {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory old = CTSDCategoriesImpl.this.getCatArray(i);
                CTSDCategoriesImpl.this.removeCat(i);
                return old;
            }
            
            public int size()
                { return CTSDCategoriesImpl.this.sizeOfCatArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CatList();
        }
    }
    
    /**
     * Gets array of all "cat" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory[] getCatArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CAT$0, targetList);
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory[] result = new org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "cat" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory getCatArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory)get_store().find_element_user(CAT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "cat" element
     */
    public int sizeOfCatArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CAT$0);
        }
    }
    
    /**
     * Sets array of all "cat" element
     */
    public void setCatArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory[] catArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(catArray, CAT$0);
        }
    }
    
    /**
     * Sets ith "cat" element
     */
    public void setCatArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory cat)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory)get_store().find_element_user(CAT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(cat);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "cat" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory insertNewCat(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory)get_store().insert_element_user(CAT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "cat" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory addNewCat()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategory)get_store().add_element_user(CAT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "cat" element
     */
    public void removeCat(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CAT$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy