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

com.microsoft.schemas.office.visio.x2012.main.impl.RowDefTypeImpl 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.2.5
Show newest version
/*
 * XML Type:  RowDef_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.RowDefType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML RowDef_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class RowDefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.RowDefType {
    private static final long serialVersionUID = 1L;
    
    public RowDefTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CELLDEF$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "CellDef");
    
    
    /**
     * Gets a List of "CellDef" elements
     */
    public java.util.List getCellDefList() {
        final class CellDefList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType get(int i)
                { return RowDefTypeImpl.this.getCellDefArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o) {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = RowDefTypeImpl.this.getCellDefArray(i);
                RowDefTypeImpl.this.setCellDefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
                { RowDefTypeImpl.this.insertNewCellDef(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = RowDefTypeImpl.this.getCellDefArray(i);
                RowDefTypeImpl.this.removeCellDef(i);
                return old;
            }
            
            @Override
            public int size()
                { return RowDefTypeImpl.this.sizeOfCellDefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CellDefList();
        }
    }
    
    /**
     * Gets array of all "CellDef" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType[] getCellDefArray() {
        return getXmlObjectArray(CELLDEF$0, new com.microsoft.schemas.office.visio.x2012.main.CellDefType[0]);
    }
    
    /**
     * Gets ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType getCellDefArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().find_element_user(CELLDEF$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "CellDef" element
     */
    public int sizeOfCellDefArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CELLDEF$0);
        }
    }
    
    /**
     * Sets array of all "CellDef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCellDefArray(com.microsoft.schemas.office.visio.x2012.main.CellDefType[] cellDefArray) {
        check_orphaned();
        arraySetterHelper(cellDefArray, CELLDEF$0);
    }
    
    /**
     * Sets ith "CellDef" element
     */
    public void setCellDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType cellDef) {
        generatedSetterHelperImpl(cellDef, CELLDEF$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType insertNewCellDef(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().insert_element_user(CELLDEF$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType addNewCellDef() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().add_element_user(CELLDEF$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "CellDef" element
     */
    public void removeCellDef(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CELLDEF$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy