org.openehr.schemas.v1.impl.IntervalOfTimeImpl Maven / Gradle / Ivy
/*
* XML Type: IntervalOfTime
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.IntervalOfTime
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML IntervalOfTime(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class IntervalOfTimeImpl extends org.openehr.schemas.v1.impl.IntervalImpl implements org.openehr.schemas.v1.IntervalOfTime
{
private static final long serialVersionUID = 1L;
public IntervalOfTimeImpl(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 java.lang.String 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 null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "lower" element
*/
public org.openehr.schemas.v1.Iso8601Time xgetLower()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Time target = null;
target = (org.openehr.schemas.v1.Iso8601Time)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(java.lang.String 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.setStringValue(lower);
}
}
/**
* Sets (as xml) the "lower" element
*/
public void xsetLower(org.openehr.schemas.v1.Iso8601Time lower)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Time target = null;
target = (org.openehr.schemas.v1.Iso8601Time)get_store().find_element_user(LOWER$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.Iso8601Time)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 java.lang.String 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 null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "upper" element
*/
public org.openehr.schemas.v1.Iso8601Time xgetUpper()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Time target = null;
target = (org.openehr.schemas.v1.Iso8601Time)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(java.lang.String 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.setStringValue(upper);
}
}
/**
* Sets (as xml) the "upper" element
*/
public void xsetUpper(org.openehr.schemas.v1.Iso8601Time upper)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Time target = null;
target = (org.openehr.schemas.v1.Iso8601Time)get_store().find_element_user(UPPER$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.Iso8601Time)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);
}
}
}