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

org.openxmlformats.schemas.presentationml.x2006.main.impl.CTSlideMasterIdListImpl Maven / Gradle / Ivy

/*
 * XML Type:  CT_SlideMasterIdList
 * Namespace: http://schemas.openxmlformats.org/presentationml/2006/main
 * Java type: org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdList
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.presentationml.x2006.main.impl;
/**
 * An XML CT_SlideMasterIdList(@http://schemas.openxmlformats.org/presentationml/2006/main).
 *
 * This is a complex type.
 */
public class CTSlideMasterIdListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdList
{
    private static final long serialVersionUID = 1L;
    
    public CTSlideMasterIdListImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SLDMASTERID$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/presentationml/2006/main", "sldMasterId");
    
    
    /**
     * Gets a List of "sldMasterId" elements
     */
    public java.util.List getSldMasterIdList()
    {
        final class SldMasterIdList extends java.util.AbstractList
        {
            @Override
            public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry get(int i)
                { return CTSlideMasterIdListImpl.this.getSldMasterIdArray(i); }
            
            @Override
            public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry set(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry o)
            {
                org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry old = CTSlideMasterIdListImpl.this.getSldMasterIdArray(i);
                CTSlideMasterIdListImpl.this.setSldMasterIdArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry o)
                { CTSlideMasterIdListImpl.this.insertNewSldMasterId(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry remove(int i)
            {
                org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry old = CTSlideMasterIdListImpl.this.getSldMasterIdArray(i);
                CTSlideMasterIdListImpl.this.removeSldMasterId(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTSlideMasterIdListImpl.this.sizeOfSldMasterIdArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SldMasterIdList();
        }
    }
    
    /**
     * Gets array of all "sldMasterId" elements
     * @deprecated
     */
    @Deprecated
    public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry[] getSldMasterIdArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SLDMASTERID$0, targetList);
            org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry[] result = new org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "sldMasterId" element
     */
    public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry getSldMasterIdArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry target = null;
            target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry)get_store().find_element_user(SLDMASTERID$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "sldMasterId" element
     */
    public int sizeOfSldMasterIdArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SLDMASTERID$0);
        }
    }
    
    /**
     * Sets array of all "sldMasterId" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setSldMasterIdArray(org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry[] sldMasterIdArray)
    {
        check_orphaned();
        arraySetterHelper(sldMasterIdArray, SLDMASTERID$0);
    }
    
    /**
     * Sets ith "sldMasterId" element
     */
    public void setSldMasterIdArray(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry sldMasterId)
    {
        generatedSetterHelperImpl(sldMasterId, SLDMASTERID$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "sldMasterId" element
     */
    public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry insertNewSldMasterId(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry target = null;
            target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry)get_store().insert_element_user(SLDMASTERID$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "sldMasterId" element
     */
    public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry addNewSldMasterId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry target = null;
            target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry)get_store().add_element_user(SLDMASTERID$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "sldMasterId" element
     */
    public void removeSldMasterId(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SLDMASTERID$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy