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

org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.impl.CTWordprocessingGroupImpl 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_WordprocessingGroup
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
 * Java type: org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.impl;
/**
 * An XML CT_WordprocessingGroup(@http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing).
 *
 * This is a complex type.
 */
public class CTWordprocessingGroupImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup {
    private static final long serialVersionUID = 1L;
    
    public CTWordprocessingGroupImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CNVPR$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "cNvPr");
    private static final javax.xml.namespace.QName CNVGRPSPPR$2 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "cNvGrpSpPr");
    private static final javax.xml.namespace.QName GRPSPPR$4 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "grpSpPr");
    private static final javax.xml.namespace.QName WSP$6 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "wsp");
    private static final javax.xml.namespace.QName GRPSP$8 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "grpSp");
    private static final javax.xml.namespace.QName GRAPHICFRAME$10 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "graphicFrame");
    private static final javax.xml.namespace.QName PIC$12 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/picture", "pic");
    private static final javax.xml.namespace.QName CONTENTPART$14 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "contentPart");
    private static final javax.xml.namespace.QName EXTLST$16 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "extLst");
    
    
    /**
     * Gets the "cNvPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps getCNvPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps)get_store().find_element_user(CNVPR$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "cNvPr" element
     */
    public boolean isSetCNvPr() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CNVPR$0) != 0;
        }
    }
    
    /**
     * Sets the "cNvPr" element
     */
    public void setCNvPr(org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps cNvPr) {
        generatedSetterHelperImpl(cNvPr, CNVPR$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "cNvPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps addNewCNvPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps)get_store().add_element_user(CNVPR$0);
            return target;
        }
    }
    
    /**
     * Unsets the "cNvPr" element
     */
    public void unsetCNvPr() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CNVPR$0, 0);
        }
    }
    
    /**
     * Gets the "cNvGrpSpPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps getCNvGrpSpPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps)get_store().find_element_user(CNVGRPSPPR$2, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "cNvGrpSpPr" element
     */
    public void setCNvGrpSpPr(org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps cNvGrpSpPr) {
        generatedSetterHelperImpl(cNvGrpSpPr, CNVGRPSPPR$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "cNvGrpSpPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps addNewCNvGrpSpPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualGroupDrawingShapeProps)get_store().add_element_user(CNVGRPSPPR$2);
            return target;
        }
    }
    
    /**
     * Gets the "grpSpPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties getGrpSpPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties)get_store().find_element_user(GRPSPPR$4, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "grpSpPr" element
     */
    public void setGrpSpPr(org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties grpSpPr) {
        generatedSetterHelperImpl(grpSpPr, GRPSPPR$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "grpSpPr" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties addNewGrpSpPr() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties)get_store().add_element_user(GRPSPPR$4);
            return target;
        }
    }
    
    /**
     * Gets a List of "wsp" elements
     */
    public java.util.List getWspList() {
        final class WspList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape get(int i)
                { return CTWordprocessingGroupImpl.this.getWspArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape set(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape o) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape old = CTWordprocessingGroupImpl.this.getWspArray(i);
                CTWordprocessingGroupImpl.this.setWspArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape o)
                { CTWordprocessingGroupImpl.this.insertNewWsp(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape old = CTWordprocessingGroupImpl.this.getWspArray(i);
                CTWordprocessingGroupImpl.this.removeWsp(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTWordprocessingGroupImpl.this.sizeOfWspArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new WspList();
        }
    }
    
    /**
     * Gets array of all "wsp" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape[] getWspArray() {
        return getXmlObjectArray(WSP$6, new org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape[0]);
    }
    
    /**
     * Gets ith "wsp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape getWspArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape)get_store().find_element_user(WSP$6, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "wsp" element
     */
    public int sizeOfWspArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WSP$6);
        }
    }
    
    /**
     * Sets array of all "wsp" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setWspArray(org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape[] wspArray) {
        check_orphaned();
        arraySetterHelper(wspArray, WSP$6);
    }
    
    /**
     * Sets ith "wsp" element
     */
    public void setWspArray(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape wsp) {
        generatedSetterHelperImpl(wsp, WSP$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "wsp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape insertNewWsp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape)get_store().insert_element_user(WSP$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "wsp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape addNewWsp() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingShape)get_store().add_element_user(WSP$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "wsp" element
     */
    public void removeWsp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WSP$6, i);
        }
    }
    
    /**
     * Gets a List of "grpSp" elements
     */
    public java.util.List getGrpSpList() {
        final class GrpSpList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup get(int i)
                { return CTWordprocessingGroupImpl.this.getGrpSpArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup set(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup o) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup old = CTWordprocessingGroupImpl.this.getGrpSpArray(i);
                CTWordprocessingGroupImpl.this.setGrpSpArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup o)
                { CTWordprocessingGroupImpl.this.insertNewGrpSp(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup old = CTWordprocessingGroupImpl.this.getGrpSpArray(i);
                CTWordprocessingGroupImpl.this.removeGrpSp(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTWordprocessingGroupImpl.this.sizeOfGrpSpArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new GrpSpList();
        }
    }
    
    /**
     * Gets array of all "grpSp" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup[] getGrpSpArray() {
        return getXmlObjectArray(GRPSP$8, new org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup[0]);
    }
    
    /**
     * Gets ith "grpSp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup getGrpSpArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup)get_store().find_element_user(GRPSP$8, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "grpSp" element
     */
    public int sizeOfGrpSpArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GRPSP$8);
        }
    }
    
    /**
     * Sets array of all "grpSp" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setGrpSpArray(org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup[] grpSpArray) {
        check_orphaned();
        arraySetterHelper(grpSpArray, GRPSP$8);
    }
    
    /**
     * Sets ith "grpSp" element
     */
    public void setGrpSpArray(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup grpSp) {
        generatedSetterHelperImpl(grpSp, GRPSP$8, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "grpSp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup insertNewGrpSp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup)get_store().insert_element_user(GRPSP$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "grpSp" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup addNewGrpSp() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingGroup)get_store().add_element_user(GRPSP$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "grpSp" element
     */
    public void removeGrpSp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GRPSP$8, i);
        }
    }
    
    /**
     * Gets a List of "graphicFrame" elements
     */
    public java.util.List getGraphicFrameList() {
        final class GraphicFrameList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame get(int i)
                { return CTWordprocessingGroupImpl.this.getGraphicFrameArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame set(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame o) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame old = CTWordprocessingGroupImpl.this.getGraphicFrameArray(i);
                CTWordprocessingGroupImpl.this.setGraphicFrameArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame o)
                { CTWordprocessingGroupImpl.this.insertNewGraphicFrame(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame old = CTWordprocessingGroupImpl.this.getGraphicFrameArray(i);
                CTWordprocessingGroupImpl.this.removeGraphicFrame(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTWordprocessingGroupImpl.this.sizeOfGraphicFrameArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new GraphicFrameList();
        }
    }
    
    /**
     * Gets array of all "graphicFrame" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame[] getGraphicFrameArray() {
        return getXmlObjectArray(GRAPHICFRAME$10, new org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame[0]);
    }
    
    /**
     * Gets ith "graphicFrame" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame getGraphicFrameArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame)get_store().find_element_user(GRAPHICFRAME$10, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "graphicFrame" element
     */
    public int sizeOfGraphicFrameArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GRAPHICFRAME$10);
        }
    }
    
    /**
     * Sets array of all "graphicFrame" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setGraphicFrameArray(org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame[] graphicFrameArray) {
        check_orphaned();
        arraySetterHelper(graphicFrameArray, GRAPHICFRAME$10);
    }
    
    /**
     * Sets ith "graphicFrame" element
     */
    public void setGraphicFrameArray(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame graphicFrame) {
        generatedSetterHelperImpl(graphicFrame, GRAPHICFRAME$10, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "graphicFrame" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame insertNewGraphicFrame(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame)get_store().insert_element_user(GRAPHICFRAME$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "graphicFrame" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame addNewGraphicFrame() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTGraphicFrame)get_store().add_element_user(GRAPHICFRAME$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "graphicFrame" element
     */
    public void removeGraphicFrame(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GRAPHICFRAME$10, i);
        }
    }
    
    /**
     * Gets a List of "pic" elements
     */
    public java.util.List getPicList() {
        final class PicList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture get(int i)
                { return CTWordprocessingGroupImpl.this.getPicArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture set(int i, org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture o) {
                org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture old = CTWordprocessingGroupImpl.this.getPicArray(i);
                CTWordprocessingGroupImpl.this.setPicArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture o)
                { CTWordprocessingGroupImpl.this.insertNewPic(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture old = CTWordprocessingGroupImpl.this.getPicArray(i);
                CTWordprocessingGroupImpl.this.removePic(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTWordprocessingGroupImpl.this.sizeOfPicArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PicList();
        }
    }
    
    /**
     * Gets array of all "pic" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture[] getPicArray() {
        return getXmlObjectArray(PIC$12, new org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture[0]);
    }
    
    /**
     * Gets ith "pic" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture getPicArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture)get_store().find_element_user(PIC$12, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "pic" element
     */
    public int sizeOfPicArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PIC$12);
        }
    }
    
    /**
     * Sets array of all "pic" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setPicArray(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture[] picArray) {
        check_orphaned();
        arraySetterHelper(picArray, PIC$12);
    }
    
    /**
     * Sets ith "pic" element
     */
    public void setPicArray(int i, org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture pic) {
        generatedSetterHelperImpl(pic, PIC$12, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "pic" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture insertNewPic(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture)get_store().insert_element_user(PIC$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "pic" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture addNewPic() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture)get_store().add_element_user(PIC$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "pic" element
     */
    public void removePic(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PIC$12, i);
        }
    }
    
    /**
     * Gets a List of "contentPart" elements
     */
    public java.util.List getContentPartList() {
        final class ContentPartList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart get(int i)
                { return CTWordprocessingGroupImpl.this.getContentPartArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart set(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart o) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart old = CTWordprocessingGroupImpl.this.getContentPartArray(i);
                CTWordprocessingGroupImpl.this.setContentPartArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart o)
                { CTWordprocessingGroupImpl.this.insertNewContentPart(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart old = CTWordprocessingGroupImpl.this.getContentPartArray(i);
                CTWordprocessingGroupImpl.this.removeContentPart(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTWordprocessingGroupImpl.this.sizeOfContentPartArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new ContentPartList();
        }
    }
    
    /**
     * Gets array of all "contentPart" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart[] getContentPartArray() {
        return getXmlObjectArray(CONTENTPART$14, new org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart[0]);
    }
    
    /**
     * Gets ith "contentPart" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart getContentPartArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart)get_store().find_element_user(CONTENTPART$14, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "contentPart" element
     */
    public int sizeOfContentPartArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CONTENTPART$14);
        }
    }
    
    /**
     * Sets array of all "contentPart" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setContentPartArray(org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart[] contentPartArray) {
        check_orphaned();
        arraySetterHelper(contentPartArray, CONTENTPART$14);
    }
    
    /**
     * Sets ith "contentPart" element
     */
    public void setContentPartArray(int i, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart contentPart) {
        generatedSetterHelperImpl(contentPart, CONTENTPART$14, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "contentPart" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart insertNewContentPart(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart)get_store().insert_element_user(CONTENTPART$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "contentPart" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart addNewContentPart() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTWordprocessingContentPart)get_store().add_element_user(CONTENTPART$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "contentPart" element
     */
    public void removeContentPart(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CONTENTPART$14, i);
        }
    }
    
    /**
     * Gets the "extLst" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList getExtLst() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$16, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "extLst" element
     */
    public boolean isSetExtLst() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTLST$16) != 0;
        }
    }
    
    /**
     * Sets the "extLst" element
     */
    public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst) {
        generatedSetterHelperImpl(extLst, EXTLST$16, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "extLst" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList addNewExtLst() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$16);
            return target;
        }
    }
    
    /**
     * Unsets the "extLst" element
     */
    public void unsetExtLst() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTLST$16, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy