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

com.microsoft.schemas.office.office.impl.CTRulesImpl 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_Rules
 * Namespace: urn:schemas-microsoft-com:office:office
 * Java type: com.microsoft.schemas.office.office.CTRules
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.office.impl;
/**
 * An XML CT_Rules(@urn:schemas-microsoft-com:office:office).
 *
 * This is a complex type.
 */
public class CTRulesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.office.CTRules
{
    private static final long serialVersionUID = 1L;
    
    public CTRulesImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName R$0 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:office:office", "r");
    private static final javax.xml.namespace.QName EXT$2 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:vml", "ext");
    
    
    /**
     * Gets a List of "r" elements
     */
    public java.util.List getRList()
    {
        final class RList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.office.CTR get(int i)
                { return CTRulesImpl.this.getRArray(i); }
            
            @Override
            public com.microsoft.schemas.office.office.CTR set(int i, com.microsoft.schemas.office.office.CTR o)
            {
                com.microsoft.schemas.office.office.CTR old = CTRulesImpl.this.getRArray(i);
                CTRulesImpl.this.setRArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.office.CTR o)
                { CTRulesImpl.this.insertNewR(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.office.CTR remove(int i)
            {
                com.microsoft.schemas.office.office.CTR old = CTRulesImpl.this.getRArray(i);
                CTRulesImpl.this.removeR(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTRulesImpl.this.sizeOfRArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new RList();
        }
    }
    
    /**
     * Gets array of all "r" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.office.CTR[] getRArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(R$0, targetList);
            com.microsoft.schemas.office.office.CTR[] result = new com.microsoft.schemas.office.office.CTR[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "r" element
     */
    public com.microsoft.schemas.office.office.CTR getRArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.office.CTR target = null;
            target = (com.microsoft.schemas.office.office.CTR)get_store().find_element_user(R$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "r" element
     */
    public int sizeOfRArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(R$0);
        }
    }
    
    /**
     * Sets array of all "r" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setRArray(com.microsoft.schemas.office.office.CTR[] rArray)
    {
        check_orphaned();
        arraySetterHelper(rArray, R$0);
    }
    
    /**
     * Sets ith "r" element
     */
    public void setRArray(int i, com.microsoft.schemas.office.office.CTR r)
    {
        generatedSetterHelperImpl(r, R$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "r" element
     */
    public com.microsoft.schemas.office.office.CTR insertNewR(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.office.CTR target = null;
            target = (com.microsoft.schemas.office.office.CTR)get_store().insert_element_user(R$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "r" element
     */
    public com.microsoft.schemas.office.office.CTR addNewR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.office.CTR target = null;
            target = (com.microsoft.schemas.office.office.CTR)get_store().add_element_user(R$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "r" element
     */
    public void removeR(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(R$0, i);
        }
    }
    
    /**
     * Gets the "ext" attribute
     */
    public com.microsoft.schemas.vml.STExt.Enum getExt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXT$2);
            if (target == null)
            {
                return null;
            }
            return (com.microsoft.schemas.vml.STExt.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "ext" attribute
     */
    public com.microsoft.schemas.vml.STExt xgetExt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.STExt target = null;
            target = (com.microsoft.schemas.vml.STExt)get_store().find_attribute_user(EXT$2);
            return target;
        }
    }
    
    /**
     * True if has "ext" attribute
     */
    public boolean isSetExt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(EXT$2) != null;
        }
    }
    
    /**
     * Sets the "ext" attribute
     */
    public void setExt(com.microsoft.schemas.vml.STExt.Enum ext)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXT$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXT$2);
            }
            target.setEnumValue(ext);
        }
    }
    
    /**
     * Sets (as xml) the "ext" attribute
     */
    public void xsetExt(com.microsoft.schemas.vml.STExt ext)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.vml.STExt target = null;
            target = (com.microsoft.schemas.vml.STExt)get_store().find_attribute_user(EXT$2);
            if (target == null)
            {
                target = (com.microsoft.schemas.vml.STExt)get_store().add_attribute_user(EXT$2);
            }
            target.set(ext);
        }
    }
    
    /**
     * Unsets the "ext" attribute
     */
    public void unsetExt()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(EXT$2);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy