org.openxmlformats.schemas.drawingml.x2006.diagram.impl.CTStyleDefinitionImpl 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_StyleDefinition
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/diagram
* Java type: org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleDefinition
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.diagram.impl;
/**
* An XML CT_StyleDefinition(@http://schemas.openxmlformats.org/drawingml/2006/diagram).
*
* This is a complex type.
*/
public class CTStyleDefinitionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleDefinition {
private static final long serialVersionUID = 1L;
public CTStyleDefinitionImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName TITLE$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "title");
private static final javax.xml.namespace.QName DESC$2 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "desc");
private static final javax.xml.namespace.QName CATLST$4 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "catLst");
private static final javax.xml.namespace.QName SCENE3D$6 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "scene3d");
private static final javax.xml.namespace.QName STYLELBL$8 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "styleLbl");
private static final javax.xml.namespace.QName EXTLST$10 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/diagram", "extLst");
private static final javax.xml.namespace.QName UNIQUEID$12 =
new javax.xml.namespace.QName("", "uniqueId");
private static final javax.xml.namespace.QName MINVER$14 =
new javax.xml.namespace.QName("", "minVer");
/**
* Gets a List of "title" elements
*/
public java.util.List getTitleList() {
final class TitleList extends java.util.AbstractList {
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName get(int i)
{ return CTStyleDefinitionImpl.this.getTitleArray(i); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName o) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName old = CTStyleDefinitionImpl.this.getTitleArray(i);
CTStyleDefinitionImpl.this.setTitleArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName o)
{ CTStyleDefinitionImpl.this.insertNewTitle(i).set(o); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName remove(int i) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName old = CTStyleDefinitionImpl.this.getTitleArray(i);
CTStyleDefinitionImpl.this.removeTitle(i);
return old;
}
@Override
public int size()
{ return CTStyleDefinitionImpl.this.sizeOfTitleArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new TitleList();
}
}
/**
* Gets array of all "title" elements
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName[] getTitleArray() {
return getXmlObjectArray(TITLE$0, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName[0]);
}
/**
* Gets ith "title" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName getTitleArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName)get_store().find_element_user(TITLE$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "title" element
*/
public int sizeOfTitleArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TITLE$0);
}
}
/**
* Sets array of all "title" element WARNING: This method is not atomicaly synchronized.
*/
public void setTitleArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName[] titleArray) {
check_orphaned();
arraySetterHelper(titleArray, TITLE$0);
}
/**
* Sets ith "title" element
*/
public void setTitleArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName title) {
generatedSetterHelperImpl(title, TITLE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "title" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName insertNewTitle(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName)get_store().insert_element_user(TITLE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "title" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName addNewTitle() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDName)get_store().add_element_user(TITLE$0);
return target;
}
}
/**
* Removes the ith "title" element
*/
public void removeTitle(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TITLE$0, i);
}
}
/**
* Gets a List of "desc" elements
*/
public java.util.List getDescList() {
final class DescList extends java.util.AbstractList {
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription get(int i)
{ return CTStyleDefinitionImpl.this.getDescArray(i); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription o) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription old = CTStyleDefinitionImpl.this.getDescArray(i);
CTStyleDefinitionImpl.this.setDescArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription o)
{ CTStyleDefinitionImpl.this.insertNewDesc(i).set(o); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription remove(int i) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription old = CTStyleDefinitionImpl.this.getDescArray(i);
CTStyleDefinitionImpl.this.removeDesc(i);
return old;
}
@Override
public int size()
{ return CTStyleDefinitionImpl.this.sizeOfDescArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new DescList();
}
}
/**
* Gets array of all "desc" elements
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription[] getDescArray() {
return getXmlObjectArray(DESC$2, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription[0]);
}
/**
* Gets ith "desc" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription getDescArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription)get_store().find_element_user(DESC$2, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "desc" element
*/
public int sizeOfDescArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DESC$2);
}
}
/**
* Sets array of all "desc" element WARNING: This method is not atomicaly synchronized.
*/
public void setDescArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription[] descArray) {
check_orphaned();
arraySetterHelper(descArray, DESC$2);
}
/**
* Sets ith "desc" element
*/
public void setDescArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription desc) {
generatedSetterHelperImpl(desc, DESC$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "desc" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription insertNewDesc(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription)get_store().insert_element_user(DESC$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "desc" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription addNewDesc() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDDescription)get_store().add_element_user(DESC$2);
return target;
}
}
/**
* Removes the ith "desc" element
*/
public void removeDesc(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DESC$2, i);
}
}
/**
* Gets the "catLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories getCatLst() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories)get_store().find_element_user(CATLST$4, 0);
if (target == null) {
return null;
}
return target;
}
}
/**
* True if has "catLst" element
*/
public boolean isSetCatLst() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CATLST$4) != 0;
}
}
/**
* Sets the "catLst" element
*/
public void setCatLst(org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories catLst) {
generatedSetterHelperImpl(catLst, CATLST$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "catLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories addNewCatLst() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTSDCategories)get_store().add_element_user(CATLST$4);
return target;
}
}
/**
* Unsets the "catLst" element
*/
public void unsetCatLst() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CATLST$4, 0);
}
}
/**
* Gets the "scene3d" element
*/
public org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D getScene3D() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D)get_store().find_element_user(SCENE3D$6, 0);
if (target == null) {
return null;
}
return target;
}
}
/**
* True if has "scene3d" element
*/
public boolean isSetScene3D() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SCENE3D$6) != 0;
}
}
/**
* Sets the "scene3d" element
*/
public void setScene3D(org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D scene3D) {
generatedSetterHelperImpl(scene3D, SCENE3D$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "scene3d" element
*/
public org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D addNewScene3D() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTScene3D)get_store().add_element_user(SCENE3D$6);
return target;
}
}
/**
* Unsets the "scene3d" element
*/
public void unsetScene3D() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SCENE3D$6, 0);
}
}
/**
* Gets a List of "styleLbl" elements
*/
public java.util.List getStyleLblList() {
final class StyleLblList extends java.util.AbstractList {
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel get(int i)
{ return CTStyleDefinitionImpl.this.getStyleLblArray(i); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel set(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel o) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel old = CTStyleDefinitionImpl.this.getStyleLblArray(i);
CTStyleDefinitionImpl.this.setStyleLblArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel o)
{ CTStyleDefinitionImpl.this.insertNewStyleLbl(i).set(o); }
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel remove(int i) {
org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel old = CTStyleDefinitionImpl.this.getStyleLblArray(i);
CTStyleDefinitionImpl.this.removeStyleLbl(i);
return old;
}
@Override
public int size()
{ return CTStyleDefinitionImpl.this.sizeOfStyleLblArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new StyleLblList();
}
}
/**
* Gets array of all "styleLbl" elements
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel[] getStyleLblArray() {
return getXmlObjectArray(STYLELBL$8, new org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel[0]);
}
/**
* Gets ith "styleLbl" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel getStyleLblArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel)get_store().find_element_user(STYLELBL$8, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "styleLbl" element
*/
public int sizeOfStyleLblArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(STYLELBL$8);
}
}
/**
* Sets array of all "styleLbl" element WARNING: This method is not atomicaly synchronized.
*/
public void setStyleLblArray(org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel[] styleLblArray) {
check_orphaned();
arraySetterHelper(styleLblArray, STYLELBL$8);
}
/**
* Sets ith "styleLbl" element
*/
public void setStyleLblArray(int i, org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel styleLbl) {
generatedSetterHelperImpl(styleLbl, STYLELBL$8, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "styleLbl" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel insertNewStyleLbl(int i) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel)get_store().insert_element_user(STYLELBL$8, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "styleLbl" element
*/
public org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel addNewStyleLbl() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.CTStyleLabel)get_store().add_element_user(STYLELBL$8);
return target;
}
}
/**
* Removes the ith "styleLbl" element
*/
public void removeStyleLbl(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(STYLELBL$8, i);
}
}
/**
* Gets the "extLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList getExtLst() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$10, 0);
if (target == null) {
return null;
}
return target;
}
}
/**
* True if has "extLst" element
*/
public boolean isSetExtLst() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXTLST$10) != 0;
}
}
/**
* Sets the "extLst" element
*/
public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst) {
generatedSetterHelperImpl(extLst, EXTLST$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "extLst" element
*/
public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList addNewExtLst() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$10);
return target;
}
}
/**
* Unsets the "extLst" element
*/
public void unsetExtLst() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXTLST$10, 0);
}
}
/**
* Gets the "uniqueId" attribute
*/
public java.lang.String getUniqueId() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIQUEID$12);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(UNIQUEID$12);
}
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "uniqueId" attribute
*/
public org.apache.xmlbeans.XmlString xgetUniqueId() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIQUEID$12);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(UNIQUEID$12);
}
return target;
}
}
/**
* True if has "uniqueId" attribute
*/
public boolean isSetUniqueId() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(UNIQUEID$12) != null;
}
}
/**
* Sets the "uniqueId" attribute
*/
public void setUniqueId(java.lang.String uniqueId) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIQUEID$12);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(UNIQUEID$12);
}
target.setStringValue(uniqueId);
}
}
/**
* Sets (as xml) the "uniqueId" attribute
*/
public void xsetUniqueId(org.apache.xmlbeans.XmlString uniqueId) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIQUEID$12);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(UNIQUEID$12);
}
target.set(uniqueId);
}
}
/**
* Unsets the "uniqueId" attribute
*/
public void unsetUniqueId() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(UNIQUEID$12);
}
}
/**
* Gets the "minVer" attribute
*/
public java.lang.String getMinVer() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MINVER$14);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "minVer" attribute
*/
public org.apache.xmlbeans.XmlString xgetMinVer() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MINVER$14);
return target;
}
}
/**
* True if has "minVer" attribute
*/
public boolean isSetMinVer() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(MINVER$14) != null;
}
}
/**
* Sets the "minVer" attribute
*/
public void setMinVer(java.lang.String minVer) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MINVER$14);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MINVER$14);
}
target.setStringValue(minVer);
}
}
/**
* Sets (as xml) the "minVer" attribute
*/
public void xsetMinVer(org.apache.xmlbeans.XmlString minVer) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MINVER$14);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MINVER$14);
}
target.set(minVer);
}
}
/**
* Unsets the "minVer" attribute
*/
public void unsetMinVer() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(MINVER$14);
}
}
}