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

com.microsoft.schemas.office.visio.x2012.main.impl.RowTypeImpl 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:  Row_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.RowType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Row_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class RowTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.RowType {
    private static final long serialVersionUID = 1L;
    
    public RowTypeImpl(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 N$4 = 
        new javax.xml.namespace.QName("", "N");
    private static final javax.xml.namespace.QName LOCALNAME$6 = 
        new javax.xml.namespace.QName("", "LocalName");
    private static final javax.xml.namespace.QName IX$8 = 
        new javax.xml.namespace.QName("", "IX");
    private static final javax.xml.namespace.QName T$10 = 
        new javax.xml.namespace.QName("", "T");
    private static final javax.xml.namespace.QName DEL$12 = 
        new javax.xml.namespace.QName("", "Del");
    
    
    /**
     * 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 RowTypeImpl.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 = RowTypeImpl.this.getCellArray(i);
                RowTypeImpl.this.setCellArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o)
                { RowTypeImpl.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 = RowTypeImpl.this.getCellArray(i);
                RowTypeImpl.this.removeCell(i);
                return old;
            }
            
            @Override
            public int size()
                { return RowTypeImpl.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 RowTypeImpl.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 = RowTypeImpl.this.getTriggerArray(i);
                RowTypeImpl.this.setTriggerArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o)
                { RowTypeImpl.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 = RowTypeImpl.this.getTriggerArray(i);
                RowTypeImpl.this.removeTrigger(i);
                return old;
            }
            
            @Override
            public int size()
                { return RowTypeImpl.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 the "N" attribute
     */
    public java.lang.String getN() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$4);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "N" attribute
     */
    public org.apache.xmlbeans.XmlString xgetN() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$4);
            return target;
        }
    }
    
    /**
     * True if has "N" attribute
     */
    public boolean isSetN() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(N$4) != null;
        }
    }
    
    /**
     * Sets the "N" attribute
     */
    public void setN(java.lang.String n) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$4);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(N$4);
            }
            target.setStringValue(n);
        }
    }
    
    /**
     * Sets (as xml) the "N" attribute
     */
    public void xsetN(org.apache.xmlbeans.XmlString n) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$4);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(N$4);
            }
            target.set(n);
        }
    }
    
    /**
     * Unsets the "N" attribute
     */
    public void unsetN() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(N$4);
        }
    }
    
    /**
     * Gets the "LocalName" attribute
     */
    public java.lang.String getLocalName() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCALNAME$6);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LocalName" attribute
     */
    public org.apache.xmlbeans.XmlString xgetLocalName() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(LOCALNAME$6);
            return target;
        }
    }
    
    /**
     * True if has "LocalName" attribute
     */
    public boolean isSetLocalName() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LOCALNAME$6) != null;
        }
    }
    
    /**
     * Sets the "LocalName" attribute
     */
    public void setLocalName(java.lang.String localName) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCALNAME$6);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCALNAME$6);
            }
            target.setStringValue(localName);
        }
    }
    
    /**
     * Sets (as xml) the "LocalName" attribute
     */
    public void xsetLocalName(org.apache.xmlbeans.XmlString localName) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(LOCALNAME$6);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(LOCALNAME$6);
            }
            target.set(localName);
        }
    }
    
    /**
     * Unsets the "LocalName" attribute
     */
    public void unsetLocalName() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LOCALNAME$6);
        }
    }
    
    /**
     * Gets the "IX" attribute
     */
    public long getIX() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IX$8);
            if (target == null) {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "IX" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedInt xgetIX() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(IX$8);
            return target;
        }
    }
    
    /**
     * True if has "IX" attribute
     */
    public boolean isSetIX() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(IX$8) != null;
        }
    }
    
    /**
     * Sets the "IX" attribute
     */
    public void setIX(long ix) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IX$8);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(IX$8);
            }
            target.setLongValue(ix);
        }
    }
    
    /**
     * Sets (as xml) the "IX" attribute
     */
    public void xsetIX(org.apache.xmlbeans.XmlUnsignedInt ix) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(IX$8);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(IX$8);
            }
            target.set(ix);
        }
    }
    
    /**
     * Unsets the "IX" attribute
     */
    public void unsetIX() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(IX$8);
        }
    }
    
    /**
     * Gets the "T" attribute
     */
    public java.lang.String getT() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(T$10);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "T" attribute
     */
    public org.apache.xmlbeans.XmlString xgetT() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(T$10);
            return target;
        }
    }
    
    /**
     * True if has "T" attribute
     */
    public boolean isSetT() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(T$10) != null;
        }
    }
    
    /**
     * Sets the "T" attribute
     */
    public void setT(java.lang.String t) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(T$10);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(T$10);
            }
            target.setStringValue(t);
        }
    }
    
    /**
     * Sets (as xml) the "T" attribute
     */
    public void xsetT(org.apache.xmlbeans.XmlString t) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(T$10);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(T$10);
            }
            target.set(t);
        }
    }
    
    /**
     * Unsets the "T" attribute
     */
    public void unsetT() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(T$10);
        }
    }
    
    /**
     * Gets the "Del" attribute
     */
    public boolean getDel() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEL$12);
            if (target == null) {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "Del" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetDel() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DEL$12);
            return target;
        }
    }
    
    /**
     * True if has "Del" attribute
     */
    public boolean isSetDel() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(DEL$12) != null;
        }
    }
    
    /**
     * Sets the "Del" attribute
     */
    public void setDel(boolean del) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEL$12);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEL$12);
            }
            target.setBooleanValue(del);
        }
    }
    
    /**
     * Sets (as xml) the "Del" attribute
     */
    public void xsetDel(org.apache.xmlbeans.XmlBoolean del) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DEL$12);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(DEL$12);
            }
            target.set(del);
        }
    }
    
    /**
     * Unsets the "Del" attribute
     */
    public void unsetDel() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(DEL$12);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy