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

org.openxmlformats.schemas.drawingml.x2006.diagram.impl.CTDiagramDefinitionHeaderImpl 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_DiagramDefinitionHeader
 * Namespace: http://schemas.openxmlformats.org/drawingml/2006/diagram
 * Java type: org.openxmlformats.schemas.drawingml.x2006.diagram.CTDiagramDefinitionHeader
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.drawingml.x2006.diagram.impl;
/**
 * An XML CT_DiagramDefinitionHeader(@http://schemas.openxmlformats.org/drawingml/2006/diagram).
 *
 * This is a complex type.
 */
public class CTDiagramDefinitionHeaderImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.diagram.CTDiagramDefinitionHeader {
    private static final long serialVersionUID = 1L;
    
    public CTDiagramDefinitionHeaderImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TITLE$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "title");
    private static final javax.xml.namespace.QName DESC$2 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "desc");
    private static final javax.xml.namespace.QName CATLST$4 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "catLst");
    private static final javax.xml.namespace.QName EXTLST$6 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "extLst");
    private static final javax.xml.namespace.QName UNIQUEID$8 = 
        new javax.xml.namespace.QName("", "uniqueId");
    private static final javax.xml.namespace.QName MINVER$10 = 
        new javax.xml.namespace.QName("", "minVer");
    private static final javax.xml.namespace.QName DEFSTYLE$12 = 
        new javax.xml.namespace.QName("", "defStyle");
    private static final javax.xml.namespace.QName RESID$14 = 
        new javax.xml.namespace.QName("", "resId");
    
    
    /**
     * Gets a List of "title" elements
     */
    public java.util.List getTitleList() {
        final class TitleList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName get(int i)
                { return CTDiagramDefinitionHeaderImpl.this.getTitleArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTName o) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTName old = CTDiagramDefinitionHeaderImpl.this.getTitleArray(i);
                CTDiagramDefinitionHeaderImpl.this.setTitleArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTName o)
                { CTDiagramDefinitionHeaderImpl.this.insertNewTitle(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTName old = CTDiagramDefinitionHeaderImpl.this.getTitleArray(i);
                CTDiagramDefinitionHeaderImpl.this.removeTitle(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTDiagramDefinitionHeaderImpl.this.sizeOfTitleArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new TitleList();
        }
    }
    
    /**
     * Gets array of all "title" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName[] getTitleArray() {
        return getXmlObjectArray(TITLE$0, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTName[0]);
    }
    
    /**
     * Gets ith "title" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName getTitleArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTName target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTName)get_store().find_element_user(TITLE$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "title" element
     */
    public int sizeOfTitleArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TITLE$0);
        }
    }
    
    /**
     * Sets array of all "title" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setTitleArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTName[] titleArray) {
        check_orphaned();
        arraySetterHelper(titleArray, TITLE$0);
    }
    
    /**
     * Sets ith "title" element
     */
    public void setTitleArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTName title) {
        generatedSetterHelperImpl(title, TITLE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "title" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName insertNewTitle(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTName target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTName)get_store().insert_element_user(TITLE$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "title" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTName addNewTitle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTName target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTName)get_store().add_element_user(TITLE$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "title" element
     */
    public void removeTitle(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TITLE$0, i);
        }
    }
    
    /**
     * Gets a List of "desc" elements
     */
    public java.util.List getDescList() {
        final class DescList extends java.util.AbstractList {
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription get(int i)
                { return CTDiagramDefinitionHeaderImpl.this.getDescArray(i); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription o) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription old = CTDiagramDefinitionHeaderImpl.this.getDescArray(i);
                CTDiagramDefinitionHeaderImpl.this.setDescArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription o)
                { CTDiagramDefinitionHeaderImpl.this.insertNewDesc(i).set(o); }
            
            @Override
            public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription remove(int i) {
                org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription old = CTDiagramDefinitionHeaderImpl.this.getDescArray(i);
                CTDiagramDefinitionHeaderImpl.this.removeDesc(i);
                return old;
            }
            
            @Override
            public int size()
                { return CTDiagramDefinitionHeaderImpl.this.sizeOfDescArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new DescList();
        }
    }
    
    /**
     * Gets array of all "desc" elements
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription[] getDescArray() {
        return getXmlObjectArray(DESC$2, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription[0]);
    }
    
    /**
     * Gets ith "desc" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription getDescArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription)get_store().find_element_user(DESC$2, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "desc" element
     */
    public int sizeOfDescArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESC$2);
        }
    }
    
    /**
     * Sets array of all "desc" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setDescArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription[] descArray) {
        check_orphaned();
        arraySetterHelper(descArray, DESC$2);
    }
    
    /**
     * Sets ith "desc" element
     */
    public void setDescArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription desc) {
        generatedSetterHelperImpl(desc, DESC$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "desc" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription insertNewDesc(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription)get_store().insert_element_user(DESC$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "desc" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription addNewDesc() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTDescription)get_store().add_element_user(DESC$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "desc" element
     */
    public void removeDesc(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESC$2, i);
        }
    }
    
    /**
     * Gets the "catLst" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories getCatLst() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories)get_store().find_element_user(CATLST$4, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "catLst" element
     */
    public boolean isSetCatLst() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CATLST$4) != 0;
        }
    }
    
    /**
     * Sets the "catLst" element
     */
    public void setCatLst(org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories catLst) {
        generatedSetterHelperImpl(catLst, CATLST$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "catLst" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories addNewCatLst() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTCategories)get_store().add_element_user(CATLST$4);
            return target;
        }
    }
    
    /**
     * Unsets the "catLst" element
     */
    public void unsetCatLst() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CATLST$4, 0);
        }
    }
    
    /**
     * 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$6, 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$6) != 0;
        }
    }
    
    /**
     * Sets the "extLst" element
     */
    public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst) {
        generatedSetterHelperImpl(extLst, EXTLST$6, 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$6);
            return target;
        }
    }
    
    /**
     * Unsets the "extLst" element
     */
    public void unsetExtLst() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTLST$6, 0);
        }
    }
    
    /**
     * Gets the "uniqueId" attribute
     */
    public java.lang.String getUniqueId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIQUEID$8);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "uniqueId" attribute
     */
    public org.apache.xmlbeans.XmlString xgetUniqueId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIQUEID$8);
            return target;
        }
    }
    
    /**
     * Sets the "uniqueId" attribute
     */
    public void setUniqueId(java.lang.String uniqueId) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIQUEID$8);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(UNIQUEID$8);
            }
            target.setStringValue(uniqueId);
        }
    }
    
    /**
     * Sets (as xml) the "uniqueId" attribute
     */
    public void xsetUniqueId(org.apache.xmlbeans.XmlString uniqueId) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIQUEID$8);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(UNIQUEID$8);
            }
            target.set(uniqueId);
        }
    }
    
    /**
     * Gets the "minVer" attribute
     */
    public java.lang.String getMinVer() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MINVER$10);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "minVer" attribute
     */
    public org.apache.xmlbeans.XmlString xgetMinVer() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MINVER$10);
            return target;
        }
    }
    
    /**
     * True if has "minVer" attribute
     */
    public boolean isSetMinVer() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MINVER$10) != null;
        }
    }
    
    /**
     * Sets the "minVer" attribute
     */
    public void setMinVer(java.lang.String minVer) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MINVER$10);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MINVER$10);
            }
            target.setStringValue(minVer);
        }
    }
    
    /**
     * Sets (as xml) the "minVer" attribute
     */
    public void xsetMinVer(org.apache.xmlbeans.XmlString minVer) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MINVER$10);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MINVER$10);
            }
            target.set(minVer);
        }
    }
    
    /**
     * Unsets the "minVer" attribute
     */
    public void unsetMinVer() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MINVER$10);
        }
    }
    
    /**
     * Gets the "defStyle" attribute
     */
    public java.lang.String getDefStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFSTYLE$12);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(DEFSTYLE$12);
            }
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "defStyle" attribute
     */
    public org.apache.xmlbeans.XmlString xgetDefStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEFSTYLE$12);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(DEFSTYLE$12);
            }
            return target;
        }
    }
    
    /**
     * True if has "defStyle" attribute
     */
    public boolean isSetDefStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(DEFSTYLE$12) != null;
        }
    }
    
    /**
     * Sets the "defStyle" attribute
     */
    public void setDefStyle(java.lang.String defStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFSTYLE$12);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEFSTYLE$12);
            }
            target.setStringValue(defStyle);
        }
    }
    
    /**
     * Sets (as xml) the "defStyle" attribute
     */
    public void xsetDefStyle(org.apache.xmlbeans.XmlString defStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEFSTYLE$12);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DEFSTYLE$12);
            }
            target.set(defStyle);
        }
    }
    
    /**
     * Unsets the "defStyle" attribute
     */
    public void unsetDefStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(DEFSTYLE$12);
        }
    }
    
    /**
     * Gets the "resId" attribute
     */
    public int getResId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESID$14);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(RESID$14);
            }
            if (target == null) {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "resId" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetResId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(RESID$14);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlInt)get_default_attribute_value(RESID$14);
            }
            return target;
        }
    }
    
    /**
     * True if has "resId" attribute
     */
    public boolean isSetResId() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(RESID$14) != null;
        }
    }
    
    /**
     * Sets the "resId" attribute
     */
    public void setResId(int resId) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESID$14);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(RESID$14);
            }
            target.setIntValue(resId);
        }
    }
    
    /**
     * Sets (as xml) the "resId" attribute
     */
    public void xsetResId(org.apache.xmlbeans.XmlInt resId) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(RESID$14);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(RESID$14);
            }
            target.set(resId);
        }
    }
    
    /**
     * Unsets the "resId" attribute
     */
    public void unsetResId() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(RESID$14);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy