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

com.microsoft.schemas.office.visio.x2012.main.impl.PublishSettingsTypeImpl 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:  PublishSettings_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.PublishSettingsType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML PublishSettings_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class PublishSettingsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.PublishSettingsType {
    private static final long serialVersionUID = 1L;
    
    public PublishSettingsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PUBLISHEDPAGE$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "PublishedPage");
    private static final javax.xml.namespace.QName REFRESHABLEDATA$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "RefreshableData");
    
    
    /**
     * Gets a List of "PublishedPage" elements
     */
    public java.util.List getPublishedPageList() {
        final class PublishedPageList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType get(int i)
                { return PublishSettingsTypeImpl.this.getPublishedPageArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType set(int i, com.microsoft.schemas.office.visio.x2012.main.PublishedPageType o) {
                com.microsoft.schemas.office.visio.x2012.main.PublishedPageType old = PublishSettingsTypeImpl.this.getPublishedPageArray(i);
                PublishSettingsTypeImpl.this.setPublishedPageArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.PublishedPageType o)
                { PublishSettingsTypeImpl.this.insertNewPublishedPage(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.PublishedPageType old = PublishSettingsTypeImpl.this.getPublishedPageArray(i);
                PublishSettingsTypeImpl.this.removePublishedPage(i);
                return old;
            }
            
            @Override
            public int size()
                { return PublishSettingsTypeImpl.this.sizeOfPublishedPageArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PublishedPageList();
        }
    }
    
    /**
     * Gets array of all "PublishedPage" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[] getPublishedPageArray() {
        return getXmlObjectArray(PUBLISHEDPAGE$0, new com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[0]);
    }
    
    /**
     * Gets ith "PublishedPage" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType getPublishedPageArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PublishedPageType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PublishedPageType)get_store().find_element_user(PUBLISHEDPAGE$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PublishedPage" element
     */
    public int sizeOfPublishedPageArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PUBLISHEDPAGE$0);
        }
    }
    
    /**
     * Sets array of all "PublishedPage" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setPublishedPageArray(com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[] publishedPageArray) {
        check_orphaned();
        arraySetterHelper(publishedPageArray, PUBLISHEDPAGE$0);
    }
    
    /**
     * Sets ith "PublishedPage" element
     */
    public void setPublishedPageArray(int i, com.microsoft.schemas.office.visio.x2012.main.PublishedPageType publishedPage) {
        generatedSetterHelperImpl(publishedPage, PUBLISHEDPAGE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PublishedPage" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType insertNewPublishedPage(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PublishedPageType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PublishedPageType)get_store().insert_element_user(PUBLISHEDPAGE$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PublishedPage" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType addNewPublishedPage() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PublishedPageType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PublishedPageType)get_store().add_element_user(PUBLISHEDPAGE$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "PublishedPage" element
     */
    public void removePublishedPage(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PUBLISHEDPAGE$0, i);
        }
    }
    
    /**
     * Gets a List of "RefreshableData" elements
     */
    public java.util.List getRefreshableDataList() {
        final class RefreshableDataList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType get(int i)
                { return PublishSettingsTypeImpl.this.getRefreshableDataArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType set(int i, com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType o) {
                com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType old = PublishSettingsTypeImpl.this.getRefreshableDataArray(i);
                PublishSettingsTypeImpl.this.setRefreshableDataArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType o)
                { PublishSettingsTypeImpl.this.insertNewRefreshableData(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType old = PublishSettingsTypeImpl.this.getRefreshableDataArray(i);
                PublishSettingsTypeImpl.this.removeRefreshableData(i);
                return old;
            }
            
            @Override
            public int size()
                { return PublishSettingsTypeImpl.this.sizeOfRefreshableDataArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new RefreshableDataList();
        }
    }
    
    /**
     * Gets array of all "RefreshableData" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[] getRefreshableDataArray() {
        return getXmlObjectArray(REFRESHABLEDATA$2, new com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[0]);
    }
    
    /**
     * Gets ith "RefreshableData" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType getRefreshableDataArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType)get_store().find_element_user(REFRESHABLEDATA$2, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RefreshableData" element
     */
    public int sizeOfRefreshableDataArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REFRESHABLEDATA$2);
        }
    }
    
    /**
     * Sets array of all "RefreshableData" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setRefreshableDataArray(com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[] refreshableDataArray) {
        check_orphaned();
        arraySetterHelper(refreshableDataArray, REFRESHABLEDATA$2);
    }
    
    /**
     * Sets ith "RefreshableData" element
     */
    public void setRefreshableDataArray(int i, com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType refreshableData) {
        generatedSetterHelperImpl(refreshableData, REFRESHABLEDATA$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RefreshableData" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType insertNewRefreshableData(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType)get_store().insert_element_user(REFRESHABLEDATA$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RefreshableData" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType addNewRefreshableData() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType)get_store().add_element_user(REFRESHABLEDATA$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "RefreshableData" element
     */
    public void removeRefreshableData(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REFRESHABLEDATA$2, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy