org.openxmlformats.schemas.officeDocument.x2006.math.impl.CTMRImpl 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_MR
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/math
* Java type: org.openxmlformats.schemas.officeDocument.x2006.math.CTMR
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.math.impl;
/**
* An XML CT_MR(@http://schemas.openxmlformats.org/officeDocument/2006/math).
*
* This is a complex type.
*/
public class CTMRImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.math.CTMR
{
public CTMRImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName E$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/math", "e");
/**
* Gets a List of "e" elements
*/
public java.util.List getEList()
{
final class EList extends java.util.AbstractList
{
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg get(int i)
{ return CTMRImpl.this.getEArray(i); }
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg set(int i, org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg o)
{
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg old = CTMRImpl.this.getEArray(i);
CTMRImpl.this.setEArray(i, o);
return old;
}
public void add(int i, org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg o)
{ CTMRImpl.this.insertNewE(i).set(o); }
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg remove(int i)
{
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg old = CTMRImpl.this.getEArray(i);
CTMRImpl.this.removeE(i);
return old;
}
public int size()
{ return CTMRImpl.this.sizeOfEArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new EList();
}
}
/**
* Gets array of all "e" elements
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg[] getEArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(E$0, targetList);
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg[] result = new org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "e" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg getEArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg)get_store().find_element_user(E$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "e" element
*/
public int sizeOfEArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(E$0);
}
}
/**
* Sets array of all "e" element
*/
public void setEArray(org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg[] eArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(eArray, E$0);
}
}
/**
* Sets ith "e" element
*/
public void setEArray(int i, org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg e)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg)get_store().find_element_user(E$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(e);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "e" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg insertNewE(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg)get_store().insert_element_user(E$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "e" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg addNewE()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg)get_store().add_element_user(E$0);
return target;
}
}
/**
* Removes the ith "e" element
*/
public void removeE(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(E$0, i);
}
}
}