org.openehr.schemas.v1.impl.DVPROPORTIONImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oet-parser Show documentation
Show all versions of oet-parser Show documentation
Java implementation of openEHR OET Template Parser and Flattener
The newest version!
/*
* XML Type: DV_PROPORTION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVPROPORTION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_PROPORTION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVPROPORTIONImpl extends org.openehr.schemas.v1.impl.DVAMOUNTImpl implements org.openehr.schemas.v1.DVPROPORTION
{
private static final long serialVersionUID = 1L;
public DVPROPORTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NUMERATOR$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "numerator");
private static final javax.xml.namespace.QName DENOMINATOR$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "denominator");
private static final javax.xml.namespace.QName TYPE$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "type");
private static final javax.xml.namespace.QName PRECISION$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "precision");
/**
* Gets the "numerator" element
*/
public float getNumerator()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NUMERATOR$0, 0);
if (target == null)
{
return 0.0f;
}
return target.getFloatValue();
}
}
/**
* Gets (as xml) the "numerator" element
*/
public org.apache.xmlbeans.XmlFloat xgetNumerator()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(NUMERATOR$0, 0);
return target;
}
}
/**
* Sets the "numerator" element
*/
public void setNumerator(float numerator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NUMERATOR$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NUMERATOR$0);
}
target.setFloatValue(numerator);
}
}
/**
* Sets (as xml) the "numerator" element
*/
public void xsetNumerator(org.apache.xmlbeans.XmlFloat numerator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(NUMERATOR$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(NUMERATOR$0);
}
target.set(numerator);
}
}
/**
* Gets the "denominator" element
*/
public float getDenominator()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DENOMINATOR$2, 0);
if (target == null)
{
return 0.0f;
}
return target.getFloatValue();
}
}
/**
* Gets (as xml) the "denominator" element
*/
public org.apache.xmlbeans.XmlFloat xgetDenominator()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(DENOMINATOR$2, 0);
return target;
}
}
/**
* Sets the "denominator" element
*/
public void setDenominator(float denominator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DENOMINATOR$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DENOMINATOR$2);
}
target.setFloatValue(denominator);
}
}
/**
* Sets (as xml) the "denominator" element
*/
public void xsetDenominator(org.apache.xmlbeans.XmlFloat denominator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(DENOMINATOR$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(DENOMINATOR$2);
}
target.set(denominator);
}
}
/**
* Gets the "type" element
*/
public java.math.BigInteger getType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "type" element
*/
public org.openehr.schemas.v1.PROPORTIONKIND xgetType()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PROPORTIONKIND target = null;
target = (org.openehr.schemas.v1.PROPORTIONKIND)get_store().find_element_user(TYPE$4, 0);
return target;
}
}
/**
* Sets the "type" element
*/
public void setType(java.math.BigInteger type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPE$4);
}
target.setBigIntegerValue(type);
}
}
/**
* Sets (as xml) the "type" element
*/
public void xsetType(org.openehr.schemas.v1.PROPORTIONKIND type)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PROPORTIONKIND target = null;
target = (org.openehr.schemas.v1.PROPORTIONKIND)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.PROPORTIONKIND)get_store().add_element_user(TYPE$4);
}
target.set(type);
}
}
/**
* Gets the "precision" element
*/
public int getPrecision()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRECISION$6, 0);
if (target == null)
{
return 0;
}
return target.getIntValue();
}
}
/**
* Gets (as xml) the "precision" element
*/
public org.apache.xmlbeans.XmlInt xgetPrecision()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PRECISION$6, 0);
return target;
}
}
/**
* True if has "precision" element
*/
public boolean isSetPrecision()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PRECISION$6) != 0;
}
}
/**
* Sets the "precision" element
*/
public void setPrecision(int precision)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PRECISION$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PRECISION$6);
}
target.setIntValue(precision);
}
}
/**
* Sets (as xml) the "precision" element
*/
public void xsetPrecision(org.apache.xmlbeans.XmlInt precision)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PRECISION$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(PRECISION$6);
}
target.set(precision);
}
}
/**
* Unsets the "precision" element
*/
public void unsetPrecision()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PRECISION$6, 0);
}
}
}