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

org.openxmlformats.schemas.drawingml.x2006.main.impl.CTEffectStyleListImpl Maven / Gradle / Ivy

Go to download

XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used): https://www.ecma-international.org/publications/standards/Ecma-376.htm

There is a newer version: 5.2.5
Show newest version
/*
 * XML Type:  CT_EffectStyleList
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main
 * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleList
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.main.impl;
/**
 * An XML CT_EffectStyleList(@http://schemas.openxmlformats.org/drawingml/2006/main).
 *
 * This is a complex type.
 */
public class CTEffectStyleListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleList {
    private static final long serialVersionUID = 1L;
    
    public CTEffectStyleListImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EFFECTSTYLE$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "effectStyle");
    
    
    /**
     * Gets a List of "effectStyle" elements
     */
    public java.util.List getEffectStyleList() {
        final class EffectStyleList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem get(int i)
                { return CTEffectStyleListImpl.this.getEffectStyleArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem set(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem o) {
                org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem old = CTEffectStyleListImpl.this.getEffectStyleArray(i);
                CTEffectStyleListImpl.this.setEffectStyleArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem o)
                { CTEffectStyleListImpl.this.insertNewEffectStyle(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem old = CTEffectStyleListImpl.this.getEffectStyleArray(i);
                CTEffectStyleListImpl.this.removeEffectStyle(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTEffectStyleListImpl.this.sizeOfEffectStyleArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new EffectStyleList();
        }
    }
    
    /**
     * Gets array of all "effectStyle" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem[] getEffectStyleArray() {
        return getXmlObjectArray(EFFECTSTYLE$0, new org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem[0]);
    }
    
    /**
     * Gets ith "effectStyle" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem getEffectStyleArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem)get_store().find_element_user(EFFECTSTYLE$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "effectStyle" element
     */
    public int sizeOfEffectStyleArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EFFECTSTYLE$0);
        }
    }
    
    /**
     * Sets array of all "effectStyle" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setEffectStyleArray(org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem[] effectStyleArray) {
        check_orphaned();
        arraySetterHelper(effectStyleArray, EFFECTSTYLE$0);
    }
    
    /**
     * Sets ith "effectStyle" element
     */
    public void setEffectStyleArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem effectStyle) {
        generatedSetterHelperImpl(effectStyle, EFFECTSTYLE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "effectStyle" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem insertNewEffectStyle(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem)get_store().insert_element_user(EFFECTSTYLE$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "effectStyle" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem addNewEffectStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTEffectStyleItem)get_store().add_element_user(EFFECTSTYLE$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "effectStyle" element
     */
    public void removeEffectStyle(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EFFECTSTYLE$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy