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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy