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 (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.3.0
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 {
    private static final long serialVersionUID = 1L;
    
    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 {
            @Override
            public com.microsoft.schemas.vml.CTF get(int i)
                { return CTFormulasImpl.this.getFArray(i); }
            
            @Override
            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;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.vml.CTF o)
                { CTFormulasImpl.this.insertNewF(i).set(o); }
            
            @Override
            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;
            }
            
            @Override
            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() {
        return getXmlObjectArray(F$0, new com.microsoft.schemas.vml.CTF[0]);
    }
    
    /**
     * 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  WARNING: This method is not atomicaly synchronized.
     */
    public void setFArray(com.microsoft.schemas.vml.CTF[] fArray) {
        check_orphaned();
        arraySetterHelper(fArray, F$0);
    }
    
    /**
     * Sets ith "f" element
     */
    public void setFArray(int i, com.microsoft.schemas.vml.CTF f) {
        generatedSetterHelperImpl(f, F$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * 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