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

com.microsoft.schemas.vml.impl.CTFormulasImpl 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_Formulas
 * Namespace: urn:schemas-microsoft-com:vml
 * Java type: com.microsoft.schemas.vml.CTFormulas
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.vml.impl;
/**
 * An XML CT_Formulas(@urn:schemas-microsoft-com:vml).
 *
 * This is a complex type.
 */
public class CTFormulasImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.vml.CTFormulas
{
    
    public CTFormulasImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName F$0 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:vml", "f");
    
    
    /**
     * Gets a List of "f" elements
     */
    public java.util.List getFList()
    {
        final class FList extends java.util.AbstractList
        {
            public com.microsoft.schemas.vml.CTF get(int i)
                { return CTFormulasImpl.this.getFArray(i); }
            
            public com.microsoft.schemas.vml.CTF set(int i, com.microsoft.schemas.vml.CTF o)
            {
                com.microsoft.schemas.vml.CTF old = CTFormulasImpl.this.getFArray(i);
                CTFormulasImpl.this.setFArray(i, o);
                return old;
            }
            
            public void add(int i, com.microsoft.schemas.vml.CTF o)
                { CTFormulasImpl.this.insertNewF(i).set(o); }
            
            public com.microsoft.schemas.vml.CTF remove(int i)
            {
                com.microsoft.schemas.vml.CTF old = CTFormulasImpl.this.getFArray(i);
                CTFormulasImpl.this.removeF(i);
                return old;
            }
            
            public int size()
                { return CTFormulasImpl.this.sizeOfFArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new FList();
        }
    }
    
    /**
     * Gets array of all "f" elements
     */
    public com.microsoft.schemas.vml.CTF[] getFArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(F$0, targetList);
            com.microsoft.schemas.vml.CTF[] result = new com.microsoft.schemas.vml.CTF[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "f" element
     */
    public com.microsoft.schemas.vml.CTF getFArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTF target = null;
            target = (com.microsoft.schemas.vml.CTF)get_store().find_element_user(F$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "f" element
     */
    public int sizeOfFArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(F$0);
        }
    }
    
    /**
     * Sets array of all "f" element
     */
    public void setFArray(com.microsoft.schemas.vml.CTF[] fArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(fArray, F$0);
        }
    }
    
    /**
     * Sets ith "f" element
     */
    public void setFArray(int i, com.microsoft.schemas.vml.CTF f)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTF target = null;
            target = (com.microsoft.schemas.vml.CTF)get_store().find_element_user(F$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(f);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "f" element
     */
    public com.microsoft.schemas.vml.CTF insertNewF(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTF target = null;
            target = (com.microsoft.schemas.vml.CTF)get_store().insert_element_user(F$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "f" element
     */
    public com.microsoft.schemas.vml.CTF addNewF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTF target = null;
            target = (com.microsoft.schemas.vml.CTF)get_store().add_element_user(F$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "f" element
     */
    public void removeF(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(F$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy