org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTExtensionListImpl 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: CT_ExtensionList
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtensionList
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
/**
* An XML CT_ExtensionList(@http://schemas.openxmlformats.org/spreadsheetml/2006/main).
*
* This is a complex type.
*/
public class CTExtensionListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtensionList
{
public CTExtensionListImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName EXT$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "ext");
/**
* Gets a List of "ext" elements
*/
public java.util.List getExtList()
{
final class ExtList extends java.util.AbstractList
{
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension get(int i)
{ return CTExtensionListImpl.this.getExtArray(i); }
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension set(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension o)
{
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension old = CTExtensionListImpl.this.getExtArray(i);
CTExtensionListImpl.this.setExtArray(i, o);
return old;
}
public void add(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension o)
{ CTExtensionListImpl.this.insertNewExt(i).set(o); }
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension remove(int i)
{
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension old = CTExtensionListImpl.this.getExtArray(i);
CTExtensionListImpl.this.removeExt(i);
return old;
}
public int size()
{ return CTExtensionListImpl.this.sizeOfExtArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ExtList();
}
}
/**
* Gets array of all "ext" elements
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension[] getExtArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(EXT$0, targetList);
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension[] result = new org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "ext" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension getExtArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension)get_store().find_element_user(EXT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "ext" element
*/
public int sizeOfExtArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXT$0);
}
}
/**
* Sets array of all "ext" element
*/
public void setExtArray(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension[] extArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(extArray, EXT$0);
}
}
/**
* Sets ith "ext" element
*/
public void setExtArray(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension ext)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension)get_store().find_element_user(EXT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(ext);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "ext" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension insertNewExt(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension)get_store().insert_element_user(EXT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "ext" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension addNewExt()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtension)get_store().add_element_user(EXT$0);
return target;
}
}
/**
* Removes the ith "ext" element
*/
public void removeExt(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXT$0, i);
}
}
}