com.microsoft.schemas.office.visio.x2012.main.impl.ExtensionsTypeImpl 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
/*
* XML Type: Extensions_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.ExtensionsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML Extensions_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class ExtensionsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ExtensionsType {
private static final long serialVersionUID = 1L;
public ExtensionsTypeImpl(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 FUNCTIONDEF$2 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "FunctionDef");
private static final javax.xml.namespace.QName SECTIONDEF$4 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "SectionDef");
/**
* 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 ExtensionsTypeImpl.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 = ExtensionsTypeImpl.this.getCellDefArray(i);
ExtensionsTypeImpl.this.setCellDefArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
{ ExtensionsTypeImpl.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 = ExtensionsTypeImpl.this.getCellDefArray(i);
ExtensionsTypeImpl.this.removeCellDef(i);
return old;
}
@Override
public int size()
{ return ExtensionsTypeImpl.this.sizeOfCellDefArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new CellDefList();
}
}
/**
* Gets array of all "CellDef" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.CellDefType[] getCellDefArray() {
return getXmlObjectArray(CELLDEF$0, new com.microsoft.schemas.office.visio.x2012.main.CellDefType[0]);
}
/**
* 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 a List of "FunctionDef" elements
*/
public java.util.List getFunctionDefList() {
final class FunctionDefList extends java.util.AbstractList {
@Override
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType get(int i)
{ return ExtensionsTypeImpl.this.getFunctionDefArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType o) {
com.microsoft.schemas.office.visio.x2012.main.FunctionDefType old = ExtensionsTypeImpl.this.getFunctionDefArray(i);
ExtensionsTypeImpl.this.setFunctionDefArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType o)
{ ExtensionsTypeImpl.this.insertNewFunctionDef(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType remove(int i) {
com.microsoft.schemas.office.visio.x2012.main.FunctionDefType old = ExtensionsTypeImpl.this.getFunctionDefArray(i);
ExtensionsTypeImpl.this.removeFunctionDef(i);
return old;
}
@Override
public int size()
{ return ExtensionsTypeImpl.this.sizeOfFunctionDefArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new FunctionDefList();
}
}
/**
* Gets array of all "FunctionDef" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[] getFunctionDefArray() {
return getXmlObjectArray(FUNCTIONDEF$2, new com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[0]);
}
/**
* Gets ith "FunctionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType getFunctionDefArray(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().find_element_user(FUNCTIONDEF$2, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "FunctionDef" element
*/
public int sizeOfFunctionDefArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FUNCTIONDEF$2);
}
}
/**
* Sets array of all "FunctionDef" element WARNING: This method is not atomicaly synchronized.
*/
public void setFunctionDefArray(com.microsoft.schemas.office.visio.x2012.main.FunctionDefType[] functionDefArray) {
check_orphaned();
arraySetterHelper(functionDefArray, FUNCTIONDEF$2);
}
/**
* Sets ith "FunctionDef" element
*/
public void setFunctionDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.FunctionDefType functionDef) {
generatedSetterHelperImpl(functionDef, FUNCTIONDEF$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "FunctionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType insertNewFunctionDef(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().insert_element_user(FUNCTIONDEF$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "FunctionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FunctionDefType addNewFunctionDef() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FunctionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FunctionDefType)get_store().add_element_user(FUNCTIONDEF$2);
return target;
}
}
/**
* Removes the ith "FunctionDef" element
*/
public void removeFunctionDef(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FUNCTIONDEF$2, i);
}
}
/**
* Gets a List of "SectionDef" elements
*/
public java.util.List getSectionDefList() {
final class SectionDefList extends java.util.AbstractList {
@Override
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType get(int i)
{ return ExtensionsTypeImpl.this.getSectionDefArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType o) {
com.microsoft.schemas.office.visio.x2012.main.SectionDefType old = ExtensionsTypeImpl.this.getSectionDefArray(i);
ExtensionsTypeImpl.this.setSectionDefArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType o)
{ ExtensionsTypeImpl.this.insertNewSectionDef(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType remove(int i) {
com.microsoft.schemas.office.visio.x2012.main.SectionDefType old = ExtensionsTypeImpl.this.getSectionDefArray(i);
ExtensionsTypeImpl.this.removeSectionDef(i);
return old;
}
@Override
public int size()
{ return ExtensionsTypeImpl.this.sizeOfSectionDefArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SectionDefList();
}
}
/**
* Gets array of all "SectionDef" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType[] getSectionDefArray() {
return getXmlObjectArray(SECTIONDEF$4, new com.microsoft.schemas.office.visio.x2012.main.SectionDefType[0]);
}
/**
* Gets ith "SectionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType getSectionDefArray(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().find_element_user(SECTIONDEF$4, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "SectionDef" element
*/
public int sizeOfSectionDefArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SECTIONDEF$4);
}
}
/**
* Sets array of all "SectionDef" element WARNING: This method is not atomicaly synchronized.
*/
public void setSectionDefArray(com.microsoft.schemas.office.visio.x2012.main.SectionDefType[] sectionDefArray) {
check_orphaned();
arraySetterHelper(sectionDefArray, SECTIONDEF$4);
}
/**
* Sets ith "SectionDef" element
*/
public void setSectionDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.SectionDefType sectionDef) {
generatedSetterHelperImpl(sectionDef, SECTIONDEF$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "SectionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType insertNewSectionDef(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().insert_element_user(SECTIONDEF$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "SectionDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionDefType addNewSectionDef() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionDefType)get_store().add_element_user(SECTIONDEF$4);
return target;
}
}
/**
* Removes the ith "SectionDef" element
*/
public void removeSectionDef(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SECTIONDEF$4, i);
}
}
}