org.openehr.schemas.v1.impl.IntervalOfRealImpl Maven / Gradle / Ivy
/*
* XML Type: IntervalOfReal
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.IntervalOfReal
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML IntervalOfReal(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class IntervalOfRealImpl extends org.openehr.schemas.v1.impl.IntervalImpl implements org.openehr.schemas.v1.IntervalOfReal
{
private static final long serialVersionUID = 1L;
public IntervalOfRealImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LOWER$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "lower");
private static final javax.xml.namespace.QName UPPER$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "upper");
/**
* Gets the "lower" element
*/
public float getLower()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWER$0, 0);
if (target == null)
{
return 0.0f;
}
return target.getFloatValue();
}
}
/**
* Gets (as xml) the "lower" element
*/
public org.apache.xmlbeans.XmlFloat xgetLower()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(LOWER$0, 0);
return target;
}
}
/**
* True if has "lower" element
*/
public boolean isSetLower()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LOWER$0) != 0;
}
}
/**
* Sets the "lower" element
*/
public void setLower(float lower)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOWER$0);
}
target.setFloatValue(lower);
}
}
/**
* Sets (as xml) the "lower" element
*/
public void xsetLower(org.apache.xmlbeans.XmlFloat lower)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(LOWER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(LOWER$0);
}
target.set(lower);
}
}
/**
* Unsets the "lower" element
*/
public void unsetLower()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LOWER$0, 0);
}
}
/**
* Gets the "upper" element
*/
public float getUpper()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPER$2, 0);
if (target == null)
{
return 0.0f;
}
return target.getFloatValue();
}
}
/**
* Gets (as xml) the "upper" element
*/
public org.apache.xmlbeans.XmlFloat xgetUpper()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(UPPER$2, 0);
return target;
}
}
/**
* True if has "upper" element
*/
public boolean isSetUpper()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(UPPER$2) != 0;
}
}
/**
* Sets the "upper" element
*/
public void setUpper(float upper)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPER$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UPPER$2);
}
target.setFloatValue(upper);
}
}
/**
* Sets (as xml) the "upper" element
*/
public void xsetUpper(org.apache.xmlbeans.XmlFloat upper)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlFloat target = null;
target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(UPPER$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(UPPER$2);
}
target.set(upper);
}
}
/**
* Unsets the "upper" element
*/
public void unsetUpper()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(UPPER$2, 0);
}
}
}