org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.DecimalDocumentImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip
/*
* 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;
/**
* 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
{
public DecimalDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DECIMAL$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "decimal");
/**
* Gets the "decimal" element
*/
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(DECIMAL$0, 0);
if (target == null)
{
return null;
}
return target.getBigDecimalValue();
}
}
/**
* Gets (as xml) the "decimal" element
*/
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(DECIMAL$0, 0);
return target;
}
}
/**
* Sets the "decimal" element
*/
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(DECIMAL$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DECIMAL$0);
}
target.setBigDecimalValue(decimal);
}
}
/**
* Sets (as xml) the "decimal" element
*/
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(DECIMAL$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(DECIMAL$0);
}
target.set(decimal);
}
}
}