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

com.microsoft.schemas.vml.impl.CTHandlesImpl 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_Handles
 * Namespace: urn:schemas-microsoft-com:vml
 * Java type: com.microsoft.schemas.vml.CTHandles
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.vml.impl;
/**
 * An XML CT_Handles(@urn:schemas-microsoft-com:vml).
 *
 * This is a complex type.
 */
public class CTHandlesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.vml.CTHandles
{
    
    public CTHandlesImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName H$0 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:vml", "h");
    
    
    /**
     * Gets a List of "h" elements
     */
    public java.util.List getHList()
    {
        final class HList extends java.util.AbstractList
        {
            public com.microsoft.schemas.vml.CTH get(int i)
                { return CTHandlesImpl.this.getHArray(i); }
            
            public com.microsoft.schemas.vml.CTH set(int i, com.microsoft.schemas.vml.CTH o)
            {
                com.microsoft.schemas.vml.CTH old = CTHandlesImpl.this.getHArray(i);
                CTHandlesImpl.this.setHArray(i, o);
                return old;
            }
            
            public void add(int i, com.microsoft.schemas.vml.CTH o)
                { CTHandlesImpl.this.insertNewH(i).set(o); }
            
            public com.microsoft.schemas.vml.CTH remove(int i)
            {
                com.microsoft.schemas.vml.CTH old = CTHandlesImpl.this.getHArray(i);
                CTHandlesImpl.this.removeH(i);
                return old;
            }
            
            public int size()
                { return CTHandlesImpl.this.sizeOfHArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new HList();
        }
    }
    
    /**
     * Gets array of all "h" elements
     */
    public com.microsoft.schemas.vml.CTH[] getHArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(H$0, targetList);
            com.microsoft.schemas.vml.CTH[] result = new com.microsoft.schemas.vml.CTH[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "h" element
     */
    public com.microsoft.schemas.vml.CTH getHArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTH target = null;
            target = (com.microsoft.schemas.vml.CTH)get_store().find_element_user(H$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "h" element
     */
    public int sizeOfHArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(H$0);
        }
    }
    
    /**
     * Sets array of all "h" element
     */
    public void setHArray(com.microsoft.schemas.vml.CTH[] hArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(hArray, H$0);
        }
    }
    
    /**
     * Sets ith "h" element
     */
    public void setHArray(int i, com.microsoft.schemas.vml.CTH h)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTH target = null;
            target = (com.microsoft.schemas.vml.CTH)get_store().find_element_user(H$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(h);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "h" element
     */
    public com.microsoft.schemas.vml.CTH insertNewH(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTH target = null;
            target = (com.microsoft.schemas.vml.CTH)get_store().insert_element_user(H$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "h" element
     */
    public com.microsoft.schemas.vml.CTH addNewH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.CTH target = null;
            target = (com.microsoft.schemas.vml.CTH)get_store().add_element_user(H$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "h" element
     */
    public void removeH(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(H$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy