com.microsoft.schemas.office.visio.x2012.main.impl.PublishSettingsTypeImpl 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
/*
* 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
{
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
{
public com.microsoft.schemas.office.visio.x2012.main.PublishedPageType get(int i)
{ return PublishSettingsTypeImpl.this.getPublishedPageArray(i); }
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;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.PublishedPageType o)
{ PublishSettingsTypeImpl.this.insertNewPublishedPage(i).set(o); }
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;
}
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()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PUBLISHEDPAGE$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[] result = new com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* 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
*/
public void setPublishedPageArray(com.microsoft.schemas.office.visio.x2012.main.PublishedPageType[] publishedPageArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(publishedPageArray, PUBLISHEDPAGE$0);
}
}
/**
* Sets ith "PublishedPage" element
*/
public void setPublishedPageArray(int i, com.microsoft.schemas.office.visio.x2012.main.PublishedPageType publishedPage)
{
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();
}
target.set(publishedPage);
}
}
/**
* 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
{
public com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType get(int i)
{ return PublishSettingsTypeImpl.this.getRefreshableDataArray(i); }
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;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType o)
{ PublishSettingsTypeImpl.this.insertNewRefreshableData(i).set(o); }
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;
}
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()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(REFRESHABLEDATA$2, targetList);
com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[] result = new com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* 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
*/
public void setRefreshableDataArray(com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType[] refreshableDataArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(refreshableDataArray, REFRESHABLEDATA$2);
}
}
/**
* Sets ith "RefreshableData" element
*/
public void setRefreshableDataArray(int i, com.microsoft.schemas.office.visio.x2012.main.RefreshableDataType refreshableData)
{
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();
}
target.set(refreshableData);
}
}
/**
* 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);
}
}
}