org.openxmlformats.schemas.drawingml.x2006.main.impl.CTRatioImpl Maven / Gradle / Ivy
/*
* 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;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* 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 {
private static final long serialVersionUID = 1L;
public CTRatioImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "n"),
new QName("", "d"),
};
/**
* Gets the "n" attribute
*/
@Override
public long getN() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return (target == null) ? 0L : target.getLongValue();
}
}
/**
* Gets (as xml) the "n" attribute
*/
@Override
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(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Sets the "n" attribute
*/
@Override
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(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.setLongValue(n);
}
}
/**
* Sets (as xml) the "n" attribute
*/
@Override
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(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.XmlLong)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(n);
}
}
/**
* Gets the "d" attribute
*/
@Override
public long getD() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return (target == null) ? 0L : target.getLongValue();
}
}
/**
* Gets (as xml) the "d" attribute
*/
@Override
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(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Sets the "d" attribute
*/
@Override
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(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.setLongValue(d);
}
}
/**
* Sets (as xml) the "d" attribute
*/
@Override
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(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.XmlLong)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(d);
}
}
}