/* * XML Type: CT_RelativeRect * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTRelativeRect * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.drawingml.x2006.main.impl; /** * An XML CT_RelativeRect(@http://schemas.openxmlformats.org/drawingml/2006/main). * * This is a complex type. */ public class CTRelativeRectImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTRelativeRect { public CTRelativeRectImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName L$0 = new javax.xml.namespace.QName("", "l"); private static final javax.xml.namespace.QName T$2 = new javax.xml.namespace.QName("", "t"); private static final javax.xml.namespace.QName R$4 = new javax.xml.namespace.QName("", "r"); private static final javax.xml.namespace.QName B$6 = new javax.xml.namespace.QName("", "b"); /** * Gets the "l" attribute */ public int getL() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(L$0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(L$0); } if (target == null) { return 0; } return target.getIntValue(); } } /** * Gets (as xml) the "l" attribute */ public org.openxmlformats.schemas.drawingml.x2006.main.STPercentage xgetL() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(L$0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_default_attribute_value(L$0); } return target; } } /** * True if has "l" attribute */ public boolean isSetL() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(L$0) != null; } } /** * Sets the "l" attribute */ public void setL(int l) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(L$0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(L$0); } target.setIntValue(l); } } /** * Sets (as xml) the "l" attribute */ public void xsetL(org.openxmlformats.schemas.drawingml.x2006.main.STPercentage l) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(L$0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().add_attribute_user(L$0); } target.set(l); } } /** * Unsets the "l" attribute */ public void unsetL() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(L$0); } } /** * Gets the "t" attribute */ public int getT() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(T$2); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(T$2); } if (target == null) { return 0; } return target.getIntValue(); } } /** * Gets (as xml) the "t" attribute */ public org.openxmlformats.schemas.drawingml.x2006.main.STPercentage xgetT() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(T$2); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_default_attribute_value(T$2); } return target; } } /** * True if has "t" attribute */ public boolean isSetT() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(T$2) != null; } } /** * Sets the "t" attribute */ public void setT(int t) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(T$2); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(T$2); } target.setIntValue(t); } } /** * Sets (as xml) the "t" attribute */ public void xsetT(org.openxmlformats.schemas.drawingml.x2006.main.STPercentage t) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(T$2); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().add_attribute_user(T$2); } target.set(t); } } /** * Unsets the "t" attribute */ public void unsetT() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(T$2); } } /** * Gets the "r" attribute */ public int getR() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(R$4); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(R$4); } if (target == null) { return 0; } return target.getIntValue(); } } /** * Gets (as xml) the "r" attribute */ public org.openxmlformats.schemas.drawingml.x2006.main.STPercentage xgetR() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(R$4); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_default_attribute_value(R$4); } return target; } } /** * True if has "r" attribute */ public boolean isSetR() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(R$4) != null; } } /** * Sets the "r" attribute */ public void setR(int r) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(R$4); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(R$4); } target.setIntValue(r); } } /** * Sets (as xml) the "r" attribute */ public void xsetR(org.openxmlformats.schemas.drawingml.x2006.main.STPercentage r) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(R$4); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().add_attribute_user(R$4); } target.set(r); } } /** * Unsets the "r" attribute */ public void unsetR() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(R$4); } } /** * Gets the "b" attribute */ public int getB() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(B$6); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(B$6); } if (target == null) { return 0; } return target.getIntValue(); } } /** * Gets (as xml) the "b" attribute */ public org.openxmlformats.schemas.drawingml.x2006.main.STPercentage xgetB() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(B$6); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_default_attribute_value(B$6); } return target; } } /** * True if has "b" attribute */ public boolean isSetB() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(B$6) != null; } } /** * Sets the "b" attribute */ public void setB(int b) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(B$6); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(B$6); } target.setIntValue(b); } } /** * Sets (as xml) the "b" attribute */ public void xsetB(org.openxmlformats.schemas.drawingml.x2006.main.STPercentage b) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().find_attribute_user(B$6); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPercentage)get_store().add_attribute_user(B$6); } target.set(b); } } /** * Unsets the "b" attribute */ public void unsetB() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(B$6); } } }