org.openxmlformats.schemas.drawingml.x2006.chart.impl.CTPivotSourceImpl Maven / Gradle / Ivy
/*
* XML Type: CT_PivotSource
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/chart
* Java type: org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotSource
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.chart.impl;
/**
* An XML CT_PivotSource(@http://schemas.openxmlformats.org/drawingml/2006/chart).
*
* This is a complex type.
*/
public class CTPivotSourceImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.chart.CTPivotSource {
private static final long serialVersionUID = 1L;
public CTPivotSourceImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName NAME$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/chart", "name");
private static final javax.xml.namespace.QName FMTID$2 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/chart", "fmtId");
private static final javax.xml.namespace.QName EXTLST$4 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/chart", "extLst");
/**
* Gets the "name" element
*/
public java.lang.String getName() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" element
*/
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring xgetName() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring)get_store().find_element_user(NAME$0, 0);
return target;
}
}
/**
* Sets the "name" element
*/
public void setName(java.lang.String name) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" element
*/
public void xsetName(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring name) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring)get_store().find_element_user(NAME$0, 0);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring)get_store().add_element_user(NAME$0);
}
target.set(name);
}
}
/**
* Gets the "fmtId" element
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt getFmtId() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt)get_store().find_element_user(FMTID$2, 0);
if (target == null) {
return null;
}
return target;
}
}
/**
* Sets the "fmtId" element
*/
public void setFmtId(org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt fmtId) {
generatedSetterHelperImpl(fmtId, FMTID$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "fmtId" element
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt addNewFmtId() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt)get_store().add_element_user(FMTID$2);
return target;
}
}
/**
* Gets a List of "extLst" elements
*/
public java.util.List getExtLstList() {
final class ExtLstList extends java.util.AbstractList {
@Override
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList get(int i)
{ return CTPivotSourceImpl.this.getExtLstArray(i); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList set(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList o) {
org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList old = CTPivotSourceImpl.this.getExtLstArray(i);
CTPivotSourceImpl.this.setExtLstArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList o)
{ CTPivotSourceImpl.this.insertNewExtLst(i).set(o); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList remove(int i) {
org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList old = CTPivotSourceImpl.this.getExtLstArray(i);
CTPivotSourceImpl.this.removeExtLst(i);
return old;
}
@Override
public int size()
{ return CTPivotSourceImpl.this.sizeOfExtLstArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ExtLstList();
}
}
/**
* Gets array of all "extLst" elements
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList[] getExtLstArray() {
return getXmlObjectArray(EXTLST$4, new org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList[0]);
}
/**
* Gets ith "extLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList getExtLstArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList)get_store().find_element_user(EXTLST$4, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "extLst" element
*/
public int sizeOfExtLstArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXTLST$4);
}
}
/**
* Sets array of all "extLst" element WARNING: This method is not atomicaly synchronized.
*/
public void setExtLstArray(org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList[] extLstArray) {
check_orphaned();
arraySetterHelper(extLstArray, EXTLST$4);
}
/**
* Sets ith "extLst" element
*/
public void setExtLstArray(int i, org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList extLst) {
generatedSetterHelperImpl(extLst, EXTLST$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "extLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList insertNewExtLst(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList)get_store().insert_element_user(EXTLST$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "extLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList addNewExtLst() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chart.CTExtensionList)get_store().add_element_user(EXTLST$4);
return target;
}
}
/**
* Removes the ith "extLst" element
*/
public void removeExtLst(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXTLST$4, i);
}
}
}