org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.DecimalDocumentImpl 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
/*
* An XML document type.
* Localname: decimal
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
* Java type: org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.DecimalDocument
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* A document containing one decimal(@http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes) element.
*
* This is a complex type.
*/
public class DecimalDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.DecimalDocument {
private static final long serialVersionUID = 1L;
public DecimalDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "decimal"),
};
/**
* Gets the "decimal" element
*/
@Override
public java.math.BigDecimal getDecimal() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target.getBigDecimalValue();
}
}
/**
* Gets (as xml) the "decimal" element
*/
@Override
public org.apache.xmlbeans.XmlDecimal xgetDecimal() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlDecimal target = null;
target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return target;
}
}
/**
* Sets the "decimal" element
*/
@Override
public void setDecimal(java.math.BigDecimal decimal) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
}
target.setBigDecimalValue(decimal);
}
}
/**
* Sets (as xml) the "decimal" element
*/
@Override
public void xsetDecimal(org.apache.xmlbeans.XmlDecimal decimal) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlDecimal target = null;
target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[0], 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(PROPERTY_QNAME[0]);
}
target.set(decimal);
}
}
}