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

com.microsoft.schemas.office.visio.x2012.main.impl.SectionDefTypeImpl Maven / Gradle / Ivy

Go to download

XmlBeans generated from the Ecma supplied xsds: http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip

The newest version!
/*
 * XML Type:  SectionDef_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.SectionDefType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML SectionDef_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class SectionDefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.SectionDefType
{
    private static final long serialVersionUID = 1L;
    
    public SectionDefTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CELLDEF$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "CellDef");
    private static final javax.xml.namespace.QName ROWDEF$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "RowDef");
    private static final javax.xml.namespace.QName N$4 = 
        new javax.xml.namespace.QName("", "N");
    private static final javax.xml.namespace.QName T$6 = 
        new javax.xml.namespace.QName("", "T");
    private static final javax.xml.namespace.QName S$8 = 
        new javax.xml.namespace.QName("", "S");
    
    
    /**
     * Gets a List of "CellDef" elements
     */
    public java.util.List getCellDefList()
    {
        final class CellDefList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType get(int i)
                { return SectionDefTypeImpl.this.getCellDefArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = SectionDefTypeImpl.this.getCellDefArray(i);
                SectionDefTypeImpl.this.setCellDefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
                { SectionDefTypeImpl.this.insertNewCellDef(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CellDefType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.CellDefType old = SectionDefTypeImpl.this.getCellDefArray(i);
                SectionDefTypeImpl.this.removeCellDef(i);
                return old;
            }
            
            @Override
            public int size()
                { return SectionDefTypeImpl.this.sizeOfCellDefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CellDefList();
        }
    }
    
    /**
     * Gets array of all "CellDef" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType[] getCellDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CELLDEF$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.CellDefType[] result = new com.microsoft.schemas.office.visio.x2012.main.CellDefType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType getCellDefArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().find_element_user(CELLDEF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "CellDef" element
     */
    public int sizeOfCellDefArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CELLDEF$0);
        }
    }
    
    /**
     * Sets array of all "CellDef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCellDefArray(com.microsoft.schemas.office.visio.x2012.main.CellDefType[] cellDefArray)
    {
        check_orphaned();
        arraySetterHelper(cellDefArray, CELLDEF$0);
    }
    
    /**
     * Sets ith "CellDef" element
     */
    public void setCellDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType cellDef)
    {
        generatedSetterHelperImpl(cellDef, CELLDEF$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType insertNewCellDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().insert_element_user(CELLDEF$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "CellDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CellDefType addNewCellDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().add_element_user(CELLDEF$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "CellDef" element
     */
    public void removeCellDef(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CELLDEF$0, i);
        }
    }
    
    /**
     * Gets the "RowDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowDefType getRowDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RowDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RowDefType)get_store().find_element_user(ROWDEF$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RowDef" element
     */
    public boolean isSetRowDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ROWDEF$2) != 0;
        }
    }
    
    /**
     * Sets the "RowDef" element
     */
    public void setRowDef(com.microsoft.schemas.office.visio.x2012.main.RowDefType rowDef)
    {
        generatedSetterHelperImpl(rowDef, ROWDEF$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "RowDef" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowDefType addNewRowDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RowDefType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RowDefType)get_store().add_element_user(ROWDEF$2);
            return target;
        }
    }
    
    /**
     * Unsets the "RowDef" element
     */
    public void unsetRowDef()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ROWDEF$2, 0);
        }
    }
    
    /**
     * 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;
        }
    }
    
    /**
     * 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);
        }
    }
    
    /**
     * 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$6);
            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$6);
            return target;
        }
    }
    
    /**
     * True if has "T" attribute
     */
    public boolean isSetT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(T$6) != 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$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(T$6);
            }
            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$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(T$6);
            }
            target.set(t);
        }
    }
    
    /**
     * Unsets the "T" attribute
     */
    public void unsetT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(T$6);
        }
    }
    
    /**
     * Gets the "S" attribute
     */
    public short getS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(S$8);
            if (target == null)
            {
                return 0;
            }
            return target.getShortValue();
        }
    }
    
    /**
     * Gets (as xml) the "S" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedByte xgetS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedByte target = null;
            target = (org.apache.xmlbeans.XmlUnsignedByte)get_store().find_attribute_user(S$8);
            return target;
        }
    }
    
    /**
     * True if has "S" attribute
     */
    public boolean isSetS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(S$8) != null;
        }
    }
    
    /**
     * Sets the "S" attribute
     */
    public void setS(short s)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(S$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(S$8);
            }
            target.setShortValue(s);
        }
    }
    
    /**
     * Sets (as xml) the "S" attribute
     */
    public void xsetS(org.apache.xmlbeans.XmlUnsignedByte s)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedByte target = null;
            target = (org.apache.xmlbeans.XmlUnsignedByte)get_store().find_attribute_user(S$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlUnsignedByte)get_store().add_attribute_user(S$8);
            }
            target.set(s);
        }
    }
    
    /**
     * Unsets the "S" attribute
     */
    public void unsetS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(S$8);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy