org.openehr.schemas.v1.impl.CDATETIMEImpl Maven / Gradle / Ivy
/*
* XML Type: C_DATE_TIME
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CDATETIME
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_DATE_TIME(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CDATETIMEImpl extends org.openehr.schemas.v1.impl.CPRIMITIVEImpl implements org.openehr.schemas.v1.CDATETIME
{
private static final long serialVersionUID = 1L;
public CDATETIMEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PATTERN$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "pattern");
private static final javax.xml.namespace.QName TIMEZONEVALIDITY$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "timezone_validity");
private static final javax.xml.namespace.QName RANGE$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "range");
private static final javax.xml.namespace.QName ASSUMEDVALUE$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
/**
* Gets the "pattern" element
*/
public java.lang.String getPattern()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "pattern" element
*/
public org.openehr.schemas.v1.DateTimeConstraintPattern xgetPattern()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DateTimeConstraintPattern target = null;
target = (org.openehr.schemas.v1.DateTimeConstraintPattern)get_store().find_element_user(PATTERN$0, 0);
return target;
}
}
/**
* True if has "pattern" element
*/
public boolean isSetPattern()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PATTERN$0) != 0;
}
}
/**
* Sets the "pattern" element
*/
public void setPattern(java.lang.String pattern)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PATTERN$0);
}
target.setStringValue(pattern);
}
}
/**
* Sets (as xml) the "pattern" element
*/
public void xsetPattern(org.openehr.schemas.v1.DateTimeConstraintPattern pattern)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DateTimeConstraintPattern target = null;
target = (org.openehr.schemas.v1.DateTimeConstraintPattern)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DateTimeConstraintPattern)get_store().add_element_user(PATTERN$0);
}
target.set(pattern);
}
}
/**
* Unsets the "pattern" element
*/
public void unsetPattern()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PATTERN$0, 0);
}
}
/**
* Gets the "timezone_validity" element
*/
public java.math.BigInteger getTimezoneValidity()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "timezone_validity" element
*/
public org.openehr.schemas.v1.VALIDITYKIND xgetTimezoneValidity()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.VALIDITYKIND target = null;
target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
return target;
}
}
/**
* True if has "timezone_validity" element
*/
public boolean isSetTimezoneValidity()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TIMEZONEVALIDITY$2) != 0;
}
}
/**
* Sets the "timezone_validity" element
*/
public void setTimezoneValidity(java.math.BigInteger timezoneValidity)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TIMEZONEVALIDITY$2);
}
target.setBigIntegerValue(timezoneValidity);
}
}
/**
* Sets (as xml) the "timezone_validity" element
*/
public void xsetTimezoneValidity(org.openehr.schemas.v1.VALIDITYKIND timezoneValidity)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.VALIDITYKIND target = null;
target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().add_element_user(TIMEZONEVALIDITY$2);
}
target.set(timezoneValidity);
}
}
/**
* Unsets the "timezone_validity" element
*/
public void unsetTimezoneValidity()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TIMEZONEVALIDITY$2, 0);
}
}
/**
* Gets the "range" element
*/
public org.openehr.schemas.v1.IntervalOfDateTime getRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDateTime target = null;
target = (org.openehr.schemas.v1.IntervalOfDateTime)get_store().find_element_user(RANGE$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "range" element
*/
public boolean isSetRange()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RANGE$4) != 0;
}
}
/**
* Sets the "range" element
*/
public void setRange(org.openehr.schemas.v1.IntervalOfDateTime range)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDateTime target = null;
target = (org.openehr.schemas.v1.IntervalOfDateTime)get_store().find_element_user(RANGE$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfDateTime)get_store().add_element_user(RANGE$4);
}
target.set(range);
}
}
/**
* Appends and returns a new empty "range" element
*/
public org.openehr.schemas.v1.IntervalOfDateTime addNewRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDateTime target = null;
target = (org.openehr.schemas.v1.IntervalOfDateTime)get_store().add_element_user(RANGE$4);
return target;
}
}
/**
* Unsets the "range" element
*/
public void unsetRange()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RANGE$4, 0);
}
}
/**
* Gets the "assumed_value" element
*/
public java.lang.String getAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "assumed_value" element
*/
public org.openehr.schemas.v1.Iso8601DateTime xgetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601DateTime target = null;
target = (org.openehr.schemas.v1.Iso8601DateTime)get_store().find_element_user(ASSUMEDVALUE$6, 0);
return target;
}
}
/**
* True if has "assumed_value" element
*/
public boolean isSetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ASSUMEDVALUE$6) != 0;
}
}
/**
* Sets the "assumed_value" element
*/
public void setAssumedValue(java.lang.String assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSUMEDVALUE$6);
}
target.setStringValue(assumedValue);
}
}
/**
* Sets (as xml) the "assumed_value" element
*/
public void xsetAssumedValue(org.openehr.schemas.v1.Iso8601DateTime assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601DateTime target = null;
target = (org.openehr.schemas.v1.Iso8601DateTime)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.Iso8601DateTime)get_store().add_element_user(ASSUMEDVALUE$6);
}
target.set(assumedValue);
}
}
/**
* Unsets the "assumed_value" element
*/
public void unsetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ASSUMEDVALUE$6, 0);
}
}
}