org.openehr.schemas.v1.impl.CQUANTITYITEMImpl 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: C_QUANTITY_ITEM
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CQUANTITYITEM
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_QUANTITY_ITEM(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CQUANTITYITEMImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.CQUANTITYITEM
{
private static final long serialVersionUID = 1L;
public CQUANTITYITEMImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MAGNITUDE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "magnitude");
private static final javax.xml.namespace.QName PRECISION$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "precision");
private static final javax.xml.namespace.QName UNITS$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "units");
/**
* Gets the "magnitude" element
*/
public org.openehr.schemas.v1.IntervalOfReal getMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfReal target = null;
target = (org.openehr.schemas.v1.IntervalOfReal)get_store().find_element_user(MAGNITUDE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "magnitude" element
*/
public boolean isSetMagnitude()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MAGNITUDE$0) != 0;
}
}
/**
* Sets the "magnitude" element
*/
public void setMagnitude(org.openehr.schemas.v1.IntervalOfReal magnitude)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfReal target = null;
target = (org.openehr.schemas.v1.IntervalOfReal)get_store().find_element_user(MAGNITUDE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfReal)get_store().add_element_user(MAGNITUDE$0);
}
target.set(magnitude);
}
}
/**
* Appends and returns a new empty "magnitude" element
*/
public org.openehr.schemas.v1.IntervalOfReal addNewMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfReal target = null;
target = (org.openehr.schemas.v1.IntervalOfReal)get_store().add_element_user(MAGNITUDE$0);
return target;
}
}
/**
* Unsets the "magnitude" element
*/
public void unsetMagnitude()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MAGNITUDE$0, 0);
}
}
/**
* Gets the "precision" element
*/
public org.openehr.schemas.v1.IntervalOfInteger getPrecision()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(PRECISION$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "precision" element
*/
public boolean isSetPrecision()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PRECISION$2) != 0;
}
}
/**
* Sets the "precision" element
*/
public void setPrecision(org.openehr.schemas.v1.IntervalOfInteger precision)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(PRECISION$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(PRECISION$2);
}
target.set(precision);
}
}
/**
* Appends and returns a new empty "precision" element
*/
public org.openehr.schemas.v1.IntervalOfInteger addNewPrecision()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(PRECISION$2);
return target;
}
}
/**
* Unsets the "precision" element
*/
public void unsetPrecision()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PRECISION$2, 0);
}
}
/**
* Gets the "units" element
*/
public java.lang.String getUnits()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "units" element
*/
public org.apache.xmlbeans.XmlString xgetUnits()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(UNITS$4, 0);
return target;
}
}
/**
* Sets the "units" element
*/
public void setUnits(java.lang.String units)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITS$4);
}
target.setStringValue(units);
}
}
/**
* Sets (as xml) the "units" element
*/
public void xsetUnits(org.apache.xmlbeans.XmlString units)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(UNITS$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(UNITS$4);
}
target.set(units);
}
}
}