org.openxmlformats.schemas.drawingml.x2006.main.impl.CTTextFieldImpl 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_TextField
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/main
* Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTTextField
*
* 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_TextField(@http://schemas.openxmlformats.org/drawingml/2006/main).
*
* This is a complex type.
*/
public class CTTextFieldImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTTextField {
private static final long serialVersionUID = 1L;
public CTTextFieldImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "rPr"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "pPr"),
new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "t"),
new QName("", "id"),
new QName("", "type"),
};
/**
* Gets the "rPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties getRPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "rPr" element
*/
@Override
public boolean isSetRPr() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[0]) != 0;
}
}
/**
* Sets the "rPr" element
*/
@Override
public void setRPr(org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties rPr) {
generatedSetterHelperImpl(rPr, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "rPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties addNewRPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Unsets the "rPr" element
*/
@Override
public void unsetRPr() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[0], 0);
}
}
/**
* Gets the "pPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties getPPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties)get_store().find_element_user(PROPERTY_QNAME[1], 0);
return (target == null) ? null : target;
}
}
/**
* True if has "pPr" element
*/
@Override
public boolean isSetPPr() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
}
}
/**
* Sets the "pPr" element
*/
@Override
public void setPPr(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties pPr) {
generatedSetterHelperImpl(pPr, PROPERTY_QNAME[1], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "pPr" element
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties addNewPPr() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties)get_store().add_element_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Unsets the "pPr" element
*/
@Override
public void unsetPPr() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[1], 0);
}
}
/**
* Gets the "t" element
*/
@Override
public java.lang.String getT() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "t" element
*/
@Override
public org.apache.xmlbeans.XmlString xgetT() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[2], 0);
return target;
}
}
/**
* True if has "t" element
*/
@Override
public boolean isSetT() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[2]) != 0;
}
}
/**
* Sets the "t" element
*/
@Override
public void setT(java.lang.String t) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[2]);
}
target.setStringValue(t);
}
}
/**
* Sets (as xml) the "t" element
*/
@Override
public void xsetT(org.apache.xmlbeans.XmlString t) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[2], 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[2]);
}
target.set(t);
}
}
/**
* Unsets the "t" element
*/
@Override
public void unsetT() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[2], 0);
}
}
/**
* Gets the "id" attribute
*/
@Override
public java.lang.String getId() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "id" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid xgetId() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return target;
}
}
/**
* Sets the "id" attribute
*/
@Override
public void setId(java.lang.String id) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "id" attribute
*/
@Override
public void xsetId(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid id) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.set(id);
}
}
/**
* Gets the "type" attribute
*/
@Override
public java.lang.String getType() {
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 "type" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetType() {
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 "type" attribute
*/
@Override
public boolean isSetType() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[4]) != null;
}
}
/**
* Sets the "type" attribute
*/
@Override
public void setType(java.lang.String type) {
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(type);
}
}
/**
* Sets (as xml) the "type" attribute
*/
@Override
public void xsetType(org.apache.xmlbeans.XmlString type) {
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(type);
}
}
/**
* Unsets the "type" attribute
*/
@Override
public void unsetType() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[4]);
}
}
}