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

com.microsoft.schemas.office.visio.x2012.main.impl.CellTypeImpl 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:  Cell_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.CellType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Cell_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class CellTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.CellType
{
    private static final long serialVersionUID = 1L;
    
    public CellTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName REFBY$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "RefBy");
    private static final javax.xml.namespace.QName N$2 = 
        new javax.xml.namespace.QName("", "N");
    private static final javax.xml.namespace.QName U$4 = 
        new javax.xml.namespace.QName("", "U");
    private static final javax.xml.namespace.QName E$6 = 
        new javax.xml.namespace.QName("", "E");
    private static final javax.xml.namespace.QName F$8 = 
        new javax.xml.namespace.QName("", "F");
    private static final javax.xml.namespace.QName V$10 = 
        new javax.xml.namespace.QName("", "V");
    
    
    /**
     * Gets a List of "RefBy" elements
     */
    public java.util.List getRefByList()
    {
        final class RefByList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType get(int i)
                { return CellTypeImpl.this.getRefByArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType set(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.RefByType old = CellTypeImpl.this.getRefByArray(i);
                CellTypeImpl.this.setRefByArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType o)
                { CellTypeImpl.this.insertNewRefBy(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.RefByType old = CellTypeImpl.this.getRefByArray(i);
                CellTypeImpl.this.removeRefBy(i);
                return old;
            }
            
            @Override
            public int size()
                { return CellTypeImpl.this.sizeOfRefByArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new RefByList();
        }
    }
    
    /**
     * Gets array of all "RefBy" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.RefByType[] getRefByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(REFBY$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.RefByType[] result = new com.microsoft.schemas.office.visio.x2012.main.RefByType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType getRefByArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().find_element_user(REFBY$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RefBy" element
     */
    public int sizeOfRefByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REFBY$0);
        }
    }
    
    /**
     * Sets array of all "RefBy" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setRefByArray(com.microsoft.schemas.office.visio.x2012.main.RefByType[] refByArray)
    {
        check_orphaned();
        arraySetterHelper(refByArray, REFBY$0);
    }
    
    /**
     * Sets ith "RefBy" element
     */
    public void setRefByArray(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType refBy)
    {
        generatedSetterHelperImpl(refBy, REFBY$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType insertNewRefBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().insert_element_user(REFBY$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType addNewRefBy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().add_element_user(REFBY$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "RefBy" element
     */
    public void removeRefBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REFBY$0, 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$2);
            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$2);
            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$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(N$2);
            }
            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$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(N$2);
            }
            target.set(n);
        }
    }
    
    /**
     * Gets the "U" attribute
     */
    public java.lang.String getU()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(U$4);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "U" attribute
     */
    public org.apache.xmlbeans.XmlString xgetU()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(U$4);
            return target;
        }
    }
    
    /**
     * True if has "U" attribute
     */
    public boolean isSetU()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(U$4) != null;
        }
    }
    
    /**
     * Sets the "U" attribute
     */
    public void setU(java.lang.String u)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(U$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(U$4);
            }
            target.setStringValue(u);
        }
    }
    
    /**
     * Sets (as xml) the "U" attribute
     */
    public void xsetU(org.apache.xmlbeans.XmlString u)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(U$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(U$4);
            }
            target.set(u);
        }
    }
    
    /**
     * Unsets the "U" attribute
     */
    public void unsetU()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(U$4);
        }
    }
    
    /**
     * Gets the "E" attribute
     */
    public java.lang.String getE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(E$6);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "E" attribute
     */
    public org.apache.xmlbeans.XmlString xgetE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(E$6);
            return target;
        }
    }
    
    /**
     * True if has "E" attribute
     */
    public boolean isSetE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(E$6) != null;
        }
    }
    
    /**
     * Sets the "E" attribute
     */
    public void setE(java.lang.String e)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(E$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(E$6);
            }
            target.setStringValue(e);
        }
    }
    
    /**
     * Sets (as xml) the "E" attribute
     */
    public void xsetE(org.apache.xmlbeans.XmlString e)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(E$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(E$6);
            }
            target.set(e);
        }
    }
    
    /**
     * Unsets the "E" attribute
     */
    public void unsetE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(E$6);
        }
    }
    
    /**
     * Gets the "F" attribute
     */
    public java.lang.String getF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(F$8);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "F" attribute
     */
    public org.apache.xmlbeans.XmlString xgetF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(F$8);
            return target;
        }
    }
    
    /**
     * True if has "F" attribute
     */
    public boolean isSetF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(F$8) != null;
        }
    }
    
    /**
     * Sets the "F" attribute
     */
    public void setF(java.lang.String f)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(F$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(F$8);
            }
            target.setStringValue(f);
        }
    }
    
    /**
     * Sets (as xml) the "F" attribute
     */
    public void xsetF(org.apache.xmlbeans.XmlString f)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(F$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(F$8);
            }
            target.set(f);
        }
    }
    
    /**
     * Unsets the "F" attribute
     */
    public void unsetF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(F$8);
        }
    }
    
    /**
     * Gets the "V" attribute
     */
    public java.lang.String getV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(V$10);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "V" attribute
     */
    public org.apache.xmlbeans.XmlString xgetV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(V$10);
            return target;
        }
    }
    
    /**
     * True if has "V" attribute
     */
    public boolean isSetV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(V$10) != null;
        }
    }
    
    /**
     * Sets the "V" attribute
     */
    public void setV(java.lang.String v)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(V$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(V$10);
            }
            target.setStringValue(v);
        }
    }
    
    /**
     * Sets (as xml) the "V" attribute
     */
    public void xsetV(org.apache.xmlbeans.XmlString v)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(V$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(V$10);
            }
            target.set(v);
        }
    }
    
    /**
     * Unsets the "V" attribute
     */
    public void unsetV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(V$10);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy