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

org.openxmlformats.schemas.drawingml.x2006.diagram.impl.CTAdjLstImpl 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:  CT_AdjLst
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/diagram
 * Java type: org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdjLst
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.diagram.impl;
/**
 * An XML CT_AdjLst(@http://schemas.openxmlformats.org/drawingml/2006/diagram).
 *
 * This is a complex type.
 */
public class CTAdjLstImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdjLst {
    private static final long serialVersionUID = 1L;
    
    public CTAdjLstImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ADJ$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "adj");
    
    
    /**
     * Gets a List of "adj" elements
     */
    public java.util.List getAdjList() {
        final class AdjList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj get(int i)
                { return CTAdjLstImpl.this.getAdjArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj o) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj old = CTAdjLstImpl.this.getAdjArray(i);
                CTAdjLstImpl.this.setAdjArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj o)
                { CTAdjLstImpl.this.insertNewAdj(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj old = CTAdjLstImpl.this.getAdjArray(i);
                CTAdjLstImpl.this.removeAdj(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTAdjLstImpl.this.sizeOfAdjArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new AdjList();
        }
    }
    
    /**
     * Gets array of all "adj" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj[] getAdjArray() {
        return getXmlObjectArray(ADJ$0, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj[0]);
    }
    
    /**
     * Gets ith "adj" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj getAdjArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj)get_store().find_element_user(ADJ$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "adj" element
     */
    public int sizeOfAdjArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ADJ$0);
        }
    }
    
    /**
     * Sets array of all "adj" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setAdjArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj[] adjArray) {
        check_orphaned();
        arraySetterHelper(adjArray, ADJ$0);
    }
    
    /**
     * Sets ith "adj" element
     */
    public void setAdjArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj adj) {
        generatedSetterHelperImpl(adj, ADJ$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "adj" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj insertNewAdj(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj)get_store().insert_element_user(ADJ$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "adj" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj addNewAdj() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTAdj)get_store().add_element_user(ADJ$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "adj" element
     */
    public void removeAdj(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ADJ$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy