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

com.microsoft.schemas.office.visio.x2012.main.impl.ColorsTypeImpl 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:  Colors_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.ColorsType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Colors_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class ColorsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ColorsType {
    private static final long serialVersionUID = 1L;
    
    public ColorsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COLORENTRY$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "ColorEntry");
    
    
    /**
     * Gets a List of "ColorEntry" elements
     */
    public java.util.List getColorEntryList() {
        final class ColorEntryList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType get(int i)
                { return ColorsTypeImpl.this.getColorEntryArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType set(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType o) {
                com.microsoft.schemas.office.visio.x2012.main.ColorEntryType old = ColorsTypeImpl.this.getColorEntryArray(i);
                ColorsTypeImpl.this.setColorEntryArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType o)
                { ColorsTypeImpl.this.insertNewColorEntry(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.ColorEntryType old = ColorsTypeImpl.this.getColorEntryArray(i);
                ColorsTypeImpl.this.removeColorEntry(i);
                return old;
            }
            
            @Override
            public int size()
                { return ColorsTypeImpl.this.sizeOfColorEntryArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new ColorEntryList();
        }
    }
    
    /**
     * Gets array of all "ColorEntry" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[] getColorEntryArray() {
        return getXmlObjectArray(COLORENTRY$0, new com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[0]);
    }
    
    /**
     * Gets ith "ColorEntry" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType getColorEntryArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().find_element_user(COLORENTRY$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "ColorEntry" element
     */
    public int sizeOfColorEntryArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COLORENTRY$0);
        }
    }
    
    /**
     * Sets array of all "ColorEntry" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setColorEntryArray(com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[] colorEntryArray) {
        check_orphaned();
        arraySetterHelper(colorEntryArray, COLORENTRY$0);
    }
    
    /**
     * Sets ith "ColorEntry" element
     */
    public void setColorEntryArray(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType colorEntry) {
        generatedSetterHelperImpl(colorEntry, COLORENTRY$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "ColorEntry" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType insertNewColorEntry(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().insert_element_user(COLORENTRY$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "ColorEntry" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType addNewColorEntry() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().add_element_user(COLORENTRY$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "ColorEntry" element
     */
    public void removeColorEntry(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COLORENTRY$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy