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

com.microsoft.schemas.office.visio.x2012.main.impl.SheetTypeImpl 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:  Sheet_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.SheetType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Sheet_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class SheetTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.SheetType {
    private static final long serialVersionUID = 1L;
    
    public SheetTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CELL$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Cell");
    private static final javax.xml.namespace.QName TRIGGER$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Trigger");
    private static final javax.xml.namespace.QName SECTION$4 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Section");
    private static final javax.xml.namespace.QName LINESTYLE$6 = 
        new javax.xml.namespace.QName("", "LineStyle");
    private static final javax.xml.namespace.QName FILLSTYLE$8 = 
        new javax.xml.namespace.QName("", "FillStyle");
    private static final javax.xml.namespace.QName TEXTSTYLE$10 = 
        new javax.xml.namespace.QName("", "TextStyle");
    
    
    /**
     * Gets a List of "Cell" elements
     */
    public java.util.List getCellList() {
        final class CellList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellType get(int i)
                { return SheetTypeImpl.this.getCellArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o) {
                com.microsoft.schemas.office.visio.x2012.main.CellType old = SheetTypeImpl.this.getCellArray(i);
                SheetTypeImpl.this.setCellArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o)
                { SheetTypeImpl.this.insertNewCell(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.CellType old = SheetTypeImpl.this.getCellArray(i);
                SheetTypeImpl.this.removeCell(i);
                return old;
            }
            
            @Override
            public int size()
                { return SheetTypeImpl.this.sizeOfCellArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CellList();
        }
    }
    
    /**
     * Gets array of all "Cell" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellType[] getCellArray() {
        return getXmlObjectArray(CELL$0, new com.microsoft.schemas.office.visio.x2012.main.CellType[0]);
    }
    
    /**
     * Gets ith "Cell" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellType getCellArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().find_element_user(CELL$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Cell" element
     */
    public int sizeOfCellArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CELL$0);
        }
    }
    
    /**
     * Sets array of all "Cell" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCellArray(com.microsoft.schemas.office.visio.x2012.main.CellType[] cellArray) {
        check_orphaned();
        arraySetterHelper(cellArray, CELL$0);
    }
    
    /**
     * Sets ith "Cell" element
     */
    public void setCellArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellType cell) {
        generatedSetterHelperImpl(cell, CELL$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Cell" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellType insertNewCell(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().insert_element_user(CELL$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Cell" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellType addNewCell() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().add_element_user(CELL$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "Cell" element
     */
    public void removeCell(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CELL$0, i);
        }
    }
    
    /**
     * Gets a List of "Trigger" elements
     */
    public java.util.List getTriggerList() {
        final class TriggerList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TriggerType get(int i)
                { return SheetTypeImpl.this.getTriggerArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TriggerType set(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o) {
                com.microsoft.schemas.office.visio.x2012.main.TriggerType old = SheetTypeImpl.this.getTriggerArray(i);
                SheetTypeImpl.this.setTriggerArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o)
                { SheetTypeImpl.this.insertNewTrigger(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TriggerType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.TriggerType old = SheetTypeImpl.this.getTriggerArray(i);
                SheetTypeImpl.this.removeTrigger(i);
                return old;
            }
            
            @Override
            public int size()
                { return SheetTypeImpl.this.sizeOfTriggerArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new TriggerList();
        }
    }
    
    /**
     * Gets array of all "Trigger" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.TriggerType[] getTriggerArray() {
        return getXmlObjectArray(TRIGGER$2, new com.microsoft.schemas.office.visio.x2012.main.TriggerType[0]);
    }
    
    /**
     * Gets ith "Trigger" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TriggerType getTriggerArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().find_element_user(TRIGGER$2, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Trigger" element
     */
    public int sizeOfTriggerArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TRIGGER$2);
        }
    }
    
    /**
     * Sets array of all "Trigger" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setTriggerArray(com.microsoft.schemas.office.visio.x2012.main.TriggerType[] triggerArray) {
        check_orphaned();
        arraySetterHelper(triggerArray, TRIGGER$2);
    }
    
    /**
     * Sets ith "Trigger" element
     */
    public void setTriggerArray(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType trigger) {
        generatedSetterHelperImpl(trigger, TRIGGER$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Trigger" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TriggerType insertNewTrigger(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().insert_element_user(TRIGGER$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Trigger" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TriggerType addNewTrigger() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().add_element_user(TRIGGER$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "Trigger" element
     */
    public void removeTrigger(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TRIGGER$2, i);
        }
    }
    
    /**
     * Gets a List of "Section" elements
     */
    public java.util.List getSectionList() {
        final class SectionList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionType get(int i)
                { return SheetTypeImpl.this.getSectionArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionType set(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType o) {
                com.microsoft.schemas.office.visio.x2012.main.SectionType old = SheetTypeImpl.this.getSectionArray(i);
                SheetTypeImpl.this.setSectionArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType o)
                { SheetTypeImpl.this.insertNewSection(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.SectionType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.SectionType old = SheetTypeImpl.this.getSectionArray(i);
                SheetTypeImpl.this.removeSection(i);
                return old;
            }
            
            @Override
            public int size()
                { return SheetTypeImpl.this.sizeOfSectionArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new SectionList();
        }
    }
    
    /**
     * Gets array of all "Section" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionType[] getSectionArray() {
        return getXmlObjectArray(SECTION$4, new com.microsoft.schemas.office.visio.x2012.main.SectionType[0]);
    }
    
    /**
     * Gets ith "Section" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionType getSectionArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().find_element_user(SECTION$4, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Section" element
     */
    public int sizeOfSectionArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECTION$4);
        }
    }
    
    /**
     * Sets array of all "Section" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setSectionArray(com.microsoft.schemas.office.visio.x2012.main.SectionType[] sectionArray) {
        check_orphaned();
        arraySetterHelper(sectionArray, SECTION$4);
    }
    
    /**
     * Sets ith "Section" element
     */
    public void setSectionArray(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType section) {
        generatedSetterHelperImpl(section, SECTION$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Section" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionType insertNewSection(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().insert_element_user(SECTION$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Section" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.SectionType addNewSection() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().add_element_user(SECTION$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "Section" element
     */
    public void removeSection(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECTION$4, i);
        }
    }
    
    /**
     * Gets the "LineStyle" attribute
     */
    public long getLineStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINESTYLE$6);
            if (target == null) {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "LineStyle" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedInt xgetLineStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(LINESTYLE$6);
            return target;
        }
    }
    
    /**
     * True if has "LineStyle" attribute
     */
    public boolean isSetLineStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LINESTYLE$6) != null;
        }
    }
    
    /**
     * Sets the "LineStyle" attribute
     */
    public void setLineStyle(long lineStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINESTYLE$6);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINESTYLE$6);
            }
            target.setLongValue(lineStyle);
        }
    }
    
    /**
     * Sets (as xml) the "LineStyle" attribute
     */
    public void xsetLineStyle(org.apache.xmlbeans.XmlUnsignedInt lineStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(LINESTYLE$6);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(LINESTYLE$6);
            }
            target.set(lineStyle);
        }
    }
    
    /**
     * Unsets the "LineStyle" attribute
     */
    public void unsetLineStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LINESTYLE$6);
        }
    }
    
    /**
     * Gets the "FillStyle" attribute
     */
    public long getFillStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLSTYLE$8);
            if (target == null) {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "FillStyle" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedInt xgetFillStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(FILLSTYLE$8);
            return target;
        }
    }
    
    /**
     * True if has "FillStyle" attribute
     */
    public boolean isSetFillStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(FILLSTYLE$8) != null;
        }
    }
    
    /**
     * Sets the "FillStyle" attribute
     */
    public void setFillStyle(long fillStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLSTYLE$8);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FILLSTYLE$8);
            }
            target.setLongValue(fillStyle);
        }
    }
    
    /**
     * Sets (as xml) the "FillStyle" attribute
     */
    public void xsetFillStyle(org.apache.xmlbeans.XmlUnsignedInt fillStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(FILLSTYLE$8);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(FILLSTYLE$8);
            }
            target.set(fillStyle);
        }
    }
    
    /**
     * Unsets the "FillStyle" attribute
     */
    public void unsetFillStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(FILLSTYLE$8);
        }
    }
    
    /**
     * Gets the "TextStyle" attribute
     */
    public long getTextStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXTSTYLE$10);
            if (target == null) {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "TextStyle" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedInt xgetTextStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(TEXTSTYLE$10);
            return target;
        }
    }
    
    /**
     * True if has "TextStyle" attribute
     */
    public boolean isSetTextStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(TEXTSTYLE$10) != null;
        }
    }
    
    /**
     * Sets the "TextStyle" attribute
     */
    public void setTextStyle(long textStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXTSTYLE$10);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TEXTSTYLE$10);
            }
            target.setLongValue(textStyle);
        }
    }
    
    /**
     * Sets (as xml) the "TextStyle" attribute
     */
    public void xsetTextStyle(org.apache.xmlbeans.XmlUnsignedInt textStyle) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(TEXTSTYLE$10);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(TEXTSTYLE$10);
            }
            target.set(textStyle);
        }
    }
    
    /**
     * Unsets the "TextStyle" attribute
     */
    public void unsetTextStyle() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(TEXTSTYLE$10);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy