org.openehr.schemas.v1.impl.DVAMOUNTImpl Maven / Gradle / Ivy
/*
* XML Type: DV_AMOUNT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVAMOUNT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_AMOUNT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVAMOUNTImpl extends org.openehr.schemas.v1.impl.DVQUANTIFIEDImpl implements org.openehr.schemas.v1.DVAMOUNT
{
private static final long serialVersionUID = 1L;
public DVAMOUNTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ACCURACY$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "accuracy");
private static final javax.xml.namespace.QName ACCURACYISPERCENT$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "accuracy_is_percent");
/**
* Gets the "accuracy" element
*/
public float getAccuracy()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCURACY$0, 0);
if (target == null)
{
return 0.0f;
}
return target.getFloatValue();
}
}
/**
* Gets (as xml) the "accuracy" element
*/
public org.apache.xmlbeans.XmlFloat xgetAccuracy()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(ACCURACY$0, 0);
return target;
}
}
/**
* True if has "accuracy" element
*/
public boolean isSetAccuracy()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACCURACY$0) != 0;
}
}
/**
* Sets the "accuracy" element
*/
public void setAccuracy(float accuracy)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCURACY$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCURACY$0);
}
target.setFloatValue(accuracy);
}
}
/**
* Sets (as xml) the "accuracy" element
*/
public void xsetAccuracy(org.apache.xmlbeans.XmlFloat accuracy)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(ACCURACY$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(ACCURACY$0);
}
target.set(accuracy);
}
}
/**
* Unsets the "accuracy" element
*/
public void unsetAccuracy()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACCURACY$0, 0);
}
}
/**
* Gets the "accuracy_is_percent" element
*/
public boolean getAccuracyIsPercent()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCURACYISPERCENT$2, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "accuracy_is_percent" element
*/
public org.apache.xmlbeans.XmlBoolean xgetAccuracyIsPercent()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ACCURACYISPERCENT$2, 0);
return target;
}
}
/**
* True if has "accuracy_is_percent" element
*/
public boolean isSetAccuracyIsPercent()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACCURACYISPERCENT$2) != 0;
}
}
/**
* Sets the "accuracy_is_percent" element
*/
public void setAccuracyIsPercent(boolean accuracyIsPercent)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCURACYISPERCENT$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCURACYISPERCENT$2);
}
target.setBooleanValue(accuracyIsPercent);
}
}
/**
* Sets (as xml) the "accuracy_is_percent" element
*/
public void xsetAccuracyIsPercent(org.apache.xmlbeans.XmlBoolean accuracyIsPercent)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ACCURACYISPERCENT$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ACCURACYISPERCENT$2);
}
target.set(accuracyIsPercent);
}
}
/**
* Unsets the "accuracy_is_percent" element
*/
public void unsetAccuracyIsPercent()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACCURACYISPERCENT$2, 0);
}
}
}