org.openxmlformats.schemas.drawingml.x2006.main.impl.CTNonVisualContentPartPropertiesImpl 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_NonVisualContentPartProperties
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/main
* Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualContentPartProperties
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.main.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML CT_NonVisualContentPartProperties(@http://schemas.openxmlformats.org/drawingml/2006/main).
*
* This is a complex type.
*/
public class CTNonVisualContentPartPropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualContentPartProperties {
private static final long serialVersionUID = 1L;
public CTNonVisualContentPartPropertiesImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "cpLocks"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "extLst"),
new QName("", "isComment"),
};
/**
* Gets the "cpLocks" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking getCpLocks() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "cpLocks" element
*/
@Override
public boolean isSetCpLocks() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[0]) != 0;
}
}
/**
* Sets the "cpLocks" element
*/
@Override
public void setCpLocks(org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking cpLocks) {
generatedSetterHelperImpl(cpLocks, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "cpLocks" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking addNewCpLocks() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTContentPartLocking)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Unsets the "cpLocks" element
*/
@Override
public void unsetCpLocks() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[0], 0);
}
}
/**
* Gets the "extLst" element
*/
@Override
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(PROPERTY_QNAME[1], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "extLst" element
*/
@Override
public boolean isSetExtLst() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
}
}
/**
* Sets the "extLst" element
*/
@Override
public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst) {
generatedSetterHelperImpl(extLst, PROPERTY_QNAME[1], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "extLst" element
*/
@Override
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(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Unsets the "extLst" element
*/
@Override
public void unsetExtLst() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[1], 0);
}
}
/**
* Gets the "isComment" attribute
*/
@Override
public boolean getIsComment() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(PROPERTY_QNAME[2]);
}
return (target == null) ? false : target.getBooleanValue();
}
}
/**
* Gets (as xml) the "isComment" attribute
*/
@Override
public org.apache.xmlbeans.XmlBoolean xgetIsComment() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(PROPERTY_QNAME[2]);
}
return target;
}
}
/**
* True if has "isComment" attribute
*/
@Override
public boolean isSetIsComment() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
}
}
/**
* Sets the "isComment" attribute
*/
@Override
public void setIsComment(boolean isComment) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.setBooleanValue(isComment);
}
}
/**
* Sets (as xml) the "isComment" attribute
*/
@Override
public void xsetIsComment(org.apache.xmlbeans.XmlBoolean isComment) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(isComment);
}
}
/**
* Unsets the "isComment" attribute
*/
@Override
public void unsetIsComment() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[2]);
}
}
}