org.openxmlformats.schemas.drawingml.x2006.chartDrawing.impl.CTShapeImpl 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_Shape
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/chartDrawing
* Java type: org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShape
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.chartDrawing.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML CT_Shape(@http://schemas.openxmlformats.org/drawingml/2006/chartDrawing).
*
* This is a complex type.
*/
public class CTShapeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShape {
private static final long serialVersionUID = 1L;
public CTShapeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://schemas.openxmlformats.org/drawingml/2006/chartDrawing", "nvSpPr"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/chartDrawing", "spPr"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/chartDrawing", "style"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/chartDrawing", "txBody"),
new QName("", "macro"),
new QName("", "textlink"),
new QName("", "fLocksText"),
new QName("", "fPublished"),
};
/**
* Gets the "nvSpPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual getNvSpPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "nvSpPr" element
*/
@Override
public void setNvSpPr(org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual nvSpPr) {
generatedSetterHelperImpl(nvSpPr, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "nvSpPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual addNewNvSpPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.chartDrawing.CTShapeNonVisual)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Gets the "spPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getSpPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties)get_store().find_element_user(PROPERTY_QNAME[1], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "spPr" element
*/
@Override
public void setSpPr(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties spPr) {
generatedSetterHelperImpl(spPr, PROPERTY_QNAME[1], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "spPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties addNewSpPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties)get_store().add_element_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Gets the "style" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle getStyle() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle)get_store().find_element_user(PROPERTY_QNAME[2], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "style" element
*/
@Override
public boolean isSetStyle() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[2]) != 0;
}
}
/**
* Sets the "style" element
*/
@Override
public void setStyle(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle style) {
generatedSetterHelperImpl(style, PROPERTY_QNAME[2], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "style" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle addNewStyle() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle)get_store().add_element_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* Unsets the "style" element
*/
@Override
public void unsetStyle() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[2], 0);
}
}
/**
* Gets the "txBody" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTxBody() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody)get_store().find_element_user(PROPERTY_QNAME[3], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "txBody" element
*/
@Override
public boolean isSetTxBody() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[3]) != 0;
}
}
/**
* Sets the "txBody" element
*/
@Override
public void setTxBody(org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody txBody) {
generatedSetterHelperImpl(txBody, PROPERTY_QNAME[3], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "txBody" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody addNewTxBody() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody)get_store().add_element_user(PROPERTY_QNAME[3]);
return target;
}
}
/**
* Unsets the "txBody" element
*/
@Override
public void unsetTxBody() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[3], 0);
}
}
/**
* Gets the "macro" attribute
*/
@Override
public java.lang.String getMacro() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "macro" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetMacro() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[4]);
return target;
}
}
/**
* True if has "macro" attribute
*/
@Override
public boolean isSetMacro() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[4]) != null;
}
}
/**
* Sets the "macro" attribute
*/
@Override
public void setMacro(java.lang.String macro) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[4]);
}
target.setStringValue(macro);
}
}
/**
* Sets (as xml) the "macro" attribute
*/
@Override
public void xsetMacro(org.apache.xmlbeans.XmlString macro) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[4]);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[4]);
}
target.set(macro);
}
}
/**
* Unsets the "macro" attribute
*/
@Override
public void unsetMacro() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[4]);
}
}
/**
* Gets the "textlink" attribute
*/
@Override
public java.lang.String getTextlink() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[5]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "textlink" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetTextlink() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[5]);
return target;
}
}
/**
* True if has "textlink" attribute
*/
@Override
public boolean isSetTextlink() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[5]) != null;
}
}
/**
* Sets the "textlink" attribute
*/
@Override
public void setTextlink(java.lang.String textlink) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[5]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[5]);
}
target.setStringValue(textlink);
}
}
/**
* Sets (as xml) the "textlink" attribute
*/
@Override
public void xsetTextlink(org.apache.xmlbeans.XmlString textlink) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[5]);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[5]);
}
target.set(textlink);
}
}
/**
* Unsets the "textlink" attribute
*/
@Override
public void unsetTextlink() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[5]);
}
}
/**
* Gets the "fLocksText" attribute
*/
@Override
public boolean getFLocksText() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[6]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(PROPERTY_QNAME[6]);
}
return (target == null) ? false : target.getBooleanValue();
}
}
/**
* Gets (as xml) the "fLocksText" attribute
*/
@Override
public org.apache.xmlbeans.XmlBoolean xgetFLocksText() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[6]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(PROPERTY_QNAME[6]);
}
return target;
}
}
/**
* True if has "fLocksText" attribute
*/
@Override
public boolean isSetFLocksText() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[6]) != null;
}
}
/**
* Sets the "fLocksText" attribute
*/
@Override
public void setFLocksText(boolean fLocksText) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[6]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[6]);
}
target.setBooleanValue(fLocksText);
}
}
/**
* Sets (as xml) the "fLocksText" attribute
*/
@Override
public void xsetFLocksText(org.apache.xmlbeans.XmlBoolean fLocksText) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[6]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(PROPERTY_QNAME[6]);
}
target.set(fLocksText);
}
}
/**
* Unsets the "fLocksText" attribute
*/
@Override
public void unsetFLocksText() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[6]);
}
}
/**
* Gets the "fPublished" attribute
*/
@Override
public boolean getFPublished() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[7]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(PROPERTY_QNAME[7]);
}
return (target == null) ? false : target.getBooleanValue();
}
}
/**
* Gets (as xml) the "fPublished" attribute
*/
@Override
public org.apache.xmlbeans.XmlBoolean xgetFPublished() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[7]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(PROPERTY_QNAME[7]);
}
return target;
}
}
/**
* True if has "fPublished" attribute
*/
@Override
public boolean isSetFPublished() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[7]) != null;
}
}
/**
* Sets the "fPublished" attribute
*/
@Override
public void setFPublished(boolean fPublished) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[7]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[7]);
}
target.setBooleanValue(fPublished);
}
}
/**
* Sets (as xml) the "fPublished" attribute
*/
@Override
public void xsetFPublished(org.apache.xmlbeans.XmlBoolean fPublished) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[7]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(PROPERTY_QNAME[7]);
}
target.set(fPublished);
}
}
/**
* Unsets the "fPublished" attribute
*/
@Override
public void unsetFPublished() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[7]);
}
}
}