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

com.microsoft.schemas.office.visio.x2012.main.impl.DataConnectionsTypeImpl 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

There is a newer version: 1.4
Show newest version
/*
 * XML Type:  DataConnections_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.DataConnectionsType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML DataConnections_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class DataConnectionsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.DataConnectionsType
{
    
    public DataConnectionsTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DATACONNECTION$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "DataConnection");
    private static final javax.xml.namespace.QName NEXTID$2 = 
        new javax.xml.namespace.QName("", "NextID");
    
    
    /**
     * Gets a List of "DataConnection" elements
     */
    public java.util.List getDataConnectionList()
    {
        final class DataConnectionList extends java.util.AbstractList
        {
            public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType get(int i)
                { return DataConnectionsTypeImpl.this.getDataConnectionArray(i); }
            
            public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType set(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.DataConnectionType old = DataConnectionsTypeImpl.this.getDataConnectionArray(i);
                DataConnectionsTypeImpl.this.setDataConnectionArray(i, o);
                return old;
            }
            
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType o)
                { DataConnectionsTypeImpl.this.insertNewDataConnection(i).set(o); }
            
            public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.DataConnectionType old = DataConnectionsTypeImpl.this.getDataConnectionArray(i);
                DataConnectionsTypeImpl.this.removeDataConnection(i);
                return old;
            }
            
            public int size()
                { return DataConnectionsTypeImpl.this.sizeOfDataConnectionArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new DataConnectionList();
        }
    }
    
    /**
     * Gets array of all "DataConnection" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[] getDataConnectionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(DATACONNECTION$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[] result = new com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "DataConnection" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType getDataConnectionArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().find_element_user(DATACONNECTION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "DataConnection" element
     */
    public int sizeOfDataConnectionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DATACONNECTION$0);
        }
    }
    
    /**
     * Sets array of all "DataConnection" element
     */
    public void setDataConnectionArray(com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[] dataConnectionArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(dataConnectionArray, DATACONNECTION$0);
        }
    }
    
    /**
     * Sets ith "DataConnection" element
     */
    public void setDataConnectionArray(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType dataConnection)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().find_element_user(DATACONNECTION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(dataConnection);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "DataConnection" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType insertNewDataConnection(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().insert_element_user(DATACONNECTION$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "DataConnection" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType addNewDataConnection()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().add_element_user(DATACONNECTION$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "DataConnection" element
     */
    public void removeDataConnection(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DATACONNECTION$0, i);
        }
    }
    
    /**
     * Gets the "NextID" attribute
     */
    public long getNextID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NEXTID$2);
            if (target == null)
            {
                return 0L;
            }
            return target.getLongValue();
        }
    }
    
    /**
     * Gets (as xml) the "NextID" attribute
     */
    public org.apache.xmlbeans.XmlUnsignedInt xgetNextID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(NEXTID$2);
            return target;
        }
    }
    
    /**
     * Sets the "NextID" attribute
     */
    public void setNextID(long nextID)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NEXTID$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NEXTID$2);
            }
            target.setLongValue(nextID);
        }
    }
    
    /**
     * Sets (as xml) the "NextID" attribute
     */
    public void xsetNextID(org.apache.xmlbeans.XmlUnsignedInt nextID)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedInt target = null;
            target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(NEXTID$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(NEXTID$2);
            }
            target.set(nextID);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy