org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTTuplesImpl 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: CT_Tuples
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuples
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
/**
* An XML CT_Tuples(@http://schemas.openxmlformats.org/spreadsheetml/2006/main).
*
* This is a complex type.
*/
public class CTTuplesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuples {
private static final long serialVersionUID = 1L;
public CTTuplesImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName TPL$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "tpl");
private static final javax.xml.namespace.QName C$2 =
new javax.xml.namespace.QName("", "c");
/**
* Gets a List of "tpl" elements
*/
public java.util.List getTplList() {
final class TplList extends java.util.AbstractList {
@Override
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple get(int i)
{ return CTTuplesImpl.this.getTplArray(i); }
@Override
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple set(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple o) {
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple old = CTTuplesImpl.this.getTplArray(i);
CTTuplesImpl.this.setTplArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple o)
{ CTTuplesImpl.this.insertNewTpl(i).set(o); }
@Override
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple remove(int i) {
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple old = CTTuplesImpl.this.getTplArray(i);
CTTuplesImpl.this.removeTpl(i);
return old;
}
@Override
public int size()
{ return CTTuplesImpl.this.sizeOfTplArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new TplList();
}
}
/**
* Gets array of all "tpl" elements
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple[] getTplArray() {
return getXmlObjectArray(TPL$0, new org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple[0]);
}
/**
* Gets ith "tpl" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple getTplArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple)get_store().find_element_user(TPL$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "tpl" element
*/
public int sizeOfTplArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TPL$0);
}
}
/**
* Sets array of all "tpl" element WARNING: This method is not atomicaly synchronized.
*/
public void setTplArray(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple[] tplArray) {
check_orphaned();
arraySetterHelper(tplArray, TPL$0);
}
/**
* Sets ith "tpl" element
*/
public void setTplArray(int i, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple tpl) {
generatedSetterHelperImpl(tpl, TPL$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "tpl" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple insertNewTpl(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple)get_store().insert_element_user(TPL$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "tpl" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple addNewTpl() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTuple)get_store().add_element_user(TPL$0);
return target;
}
}
/**
* Removes the ith "tpl" element
*/
public void removeTpl(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TPL$0, i);
}
}
/**
* Gets the "c" attribute
*/
public long getC() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(C$2);
if (target == null) {
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "c" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetC() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(C$2);
return target;
}
}
/**
* True if has "c" attribute
*/
public boolean isSetC() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(C$2) != null;
}
}
/**
* Sets the "c" attribute
*/
public void setC(long c) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(C$2);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(C$2);
}
target.setLongValue(c);
}
}
/**
* Sets (as xml) the "c" attribute
*/
public void xsetC(org.apache.xmlbeans.XmlUnsignedInt c) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(C$2);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(C$2);
}
target.set(c);
}
}
/**
* Unsets the "c" attribute
*/
public void unsetC() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(C$2);
}
}
}