/* * XML Type: CT_Ratio * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTRatio * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.drawingml.x2006.main.impl; /** * An XML CT_Ratio(@http://schemas.openxmlformats.org/drawingml/2006/main). * * This is a complex type. */ public class CTRatioImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTRatio { public CTRatioImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName N$0 = new javax.xml.namespace.QName("", "n"); private static final javax.xml.namespace.QName D$2 = new javax.xml.namespace.QName("", "d"); /** * Gets the "n" attribute */ public long getN() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$0); if (target == null) { return 0L; } return target.getLongValue(); } } /** * Gets (as xml) the "n" attribute */ public org.apache.xmlbeans.XmlLong xgetN() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlLong target = null; target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(N$0); return target; } } /** * Sets the "n" attribute */ public void setN(long n) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(N$0); } target.setLongValue(n); } } /** * Sets (as xml) the "n" attribute */ public void xsetN(org.apache.xmlbeans.XmlLong n) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlLong target = null; target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(N$0); if (target == null) { target = (org.apache.xmlbeans.XmlLong)get_store().add_attribute_user(N$0); } target.set(n); } } /** * Gets the "d" attribute */ public long getD() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(D$2); if (target == null) { return 0L; } return target.getLongValue(); } } /** * Gets (as xml) the "d" attribute */ public org.apache.xmlbeans.XmlLong xgetD() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlLong target = null; target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(D$2); return target; } } /** * Sets the "d" attribute */ public void setD(long d) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(D$2); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(D$2); } target.setLongValue(d); } } /** * Sets (as xml) the "d" attribute */ public void xsetD(org.apache.xmlbeans.XmlLong d) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlLong target = null; target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(D$2); if (target == null) { target = (org.apache.xmlbeans.XmlLong)get_store().add_attribute_user(D$2); } target.set(d); } } }