/* * 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; /** * 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 { public CTTextFieldImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName RPR$0 = new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "rPr"); private static final javax.xml.namespace.QName PPR$2 = new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "pPr"); private static final javax.xml.namespace.QName T$4 = new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "t"); private static final javax.xml.namespace.QName ID$6 = new javax.xml.namespace.QName("", "id"); private static final javax.xml.namespace.QName TYPE$8 = new javax.xml.namespace.QName("", "type"); /** * Gets the "rPr" element */ 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(RPR$0, 0); if (target == null) { return null; } return target; } } /** * True if has "rPr" element */ public boolean isSetRPr() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(RPR$0) != 0; } } /** * Sets the "rPr" element */ public void setRPr(org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties rPr) { 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(RPR$0, 0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties)get_store().add_element_user(RPR$0); } target.set(rPr); } } /** * Appends and returns a new empty "rPr" element */ 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(RPR$0); return target; } } /** * Unsets the "rPr" element */ public void unsetRPr() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(RPR$0, 0); } } /** * Gets the "pPr" element */ 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(PPR$2, 0); if (target == null) { return null; } return target; } } /** * True if has "pPr" element */ public boolean isSetPPr() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(PPR$2) != 0; } } /** * Sets the "pPr" element */ public void setPPr(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties pPr) { 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(PPR$2, 0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties)get_store().add_element_user(PPR$2); } target.set(pPr); } } /** * Appends and returns a new empty "pPr" element */ 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(PPR$2); return target; } } /** * Unsets the "pPr" element */ public void unsetPPr() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(PPR$2, 0); } } /** * Gets the "t" element */ 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(T$4, 0); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "t" element */ 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(T$4, 0); return target; } } /** * True if has "t" element */ public boolean isSetT() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(T$4) != 0; } } /** * Sets the "t" element */ 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(T$4, 0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(T$4); } target.setStringValue(t); } } /** * Sets (as xml) the "t" element */ 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(T$4, 0); if (target == null) { target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(T$4); } target.set(t); } } /** * Unsets the "t" element */ public void unsetT() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(T$4, 0); } } /** * Gets the "id" attribute */ 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(ID$6); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "id" attribute */ public org.openxmlformats.schemas.drawingml.x2006.main.STGuid xgetId() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STGuid target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().find_attribute_user(ID$6); return target; } } /** * Sets the "id" attribute */ 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(ID$6); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6); } target.setStringValue(id); } } /** * Sets (as xml) the "id" attribute */ public void xsetId(org.openxmlformats.schemas.drawingml.x2006.main.STGuid id) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STGuid target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().find_attribute_user(ID$6); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().add_attribute_user(ID$6); } target.set(id); } } /** * Gets the "type" attribute */ 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(TYPE$8); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "type" attribute */ 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(TYPE$8); return target; } } /** * True if has "type" attribute */ public boolean isSetType() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(TYPE$8) != null; } } /** * Sets the "type" attribute */ 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(TYPE$8); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$8); } target.setStringValue(type); } } /** * Sets (as xml) the "type" attribute */ 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(TYPE$8); if (target == null) { target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$8); } target.set(type); } } /** * Unsets the "type" attribute */ public void unsetType() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(TYPE$8); } } }