org.openxmlformats.schemas.officeDocument.x2006.math.impl.CTDImpl 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
The newest version!
/*
* XML Type: CT_D
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/math
* Java type: org.openxmlformats.schemas.officeDocument.x2006.math.CTD
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.math.impl;
/**
* An XML CT_D(@http://schemas.openxmlformats.org/officeDocument/2006/math).
*
* This is a complex type.
*/
public class CTDImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.math.CTD
{
private static final long serialVersionUID = 1L;
public CTDImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DPR$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/math", "dPr");
private static final javax.xml.namespace.QName E$2 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/math", "e");
/**
* Gets the "dPr" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr getDPr()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr)get_store().find_element_user(DPR$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "dPr" element
*/
public boolean isSetDPr()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DPR$0) != 0;
}
}
/**
* Sets the "dPr" element
*/
public void setDPr(org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr dPr)
{
generatedSetterHelperImpl(dPr, DPR$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "dPr" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr addNewDPr()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.math.CTDPr)get_store().add_element_user(DPR$0);
return target;
}
}
/**
* Unsets the "dPr" element
*/
public void unsetDPr()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DPR$0, 0);
}
}
/**
* Gets a List of "e" elements
*/
public java.util.List getEList()
{
final class EList extends java.util.AbstractList
{
@Override
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg get(int i)
{ return CTDImpl.this.getEArray(i); }
@Override
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 = CTDImpl.this.getEArray(i);
CTDImpl.this.setEArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg o)
{ CTDImpl.this.insertNewE(i).set(o); }
@Override
public org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg remove(int i)
{
org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg old = CTDImpl.this.getEArray(i);
CTDImpl.this.removeE(i);
return old;
}
@Override
public int size()
{ return CTDImpl.this.sizeOfEArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new EList();
}
}
/**
* Gets array of all "e" elements
* @deprecated
*/
@Deprecated
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$2, 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$2, 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$2);
}
}
/**
* Sets array of all "e" element WARNING: This method is not atomicaly synchronized.
*/
public void setEArray(org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg[] eArray)
{
check_orphaned();
arraySetterHelper(eArray, E$2);
}
/**
* Sets ith "e" element
*/
public void setEArray(int i, org.openxmlformats.schemas.officeDocument.x2006.math.CTOMathArg e)
{
generatedSetterHelperImpl(e, E$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* 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$2, 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$2);
return target;
}
}
/**
* Removes the ith "e" element
*/
public void removeE(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(E$2, i);
}
}
}