org.openehr.schemas.v1.impl.CDURATIONImpl 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_DURATION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CDURATION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_DURATION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CDURATIONImpl extends org.openehr.schemas.v1.impl.CPRIMITIVEImpl implements org.openehr.schemas.v1.CDURATION
{
private static final long serialVersionUID = 1L;
public CDURATIONImpl(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 RANGE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "range");
private static final javax.xml.namespace.QName ASSUMEDVALUE$4 =
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.DurationConstraintPattern xgetPattern()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DurationConstraintPattern target = null;
target = (org.openehr.schemas.v1.DurationConstraintPattern)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.DurationConstraintPattern pattern)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DurationConstraintPattern target = null;
target = (org.openehr.schemas.v1.DurationConstraintPattern)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DurationConstraintPattern)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 "range" element
*/
public org.openehr.schemas.v1.IntervalOfDuration getRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDuration target = null;
target = (org.openehr.schemas.v1.IntervalOfDuration)get_store().find_element_user(RANGE$2, 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$2) != 0;
}
}
/**
* Sets the "range" element
*/
public void setRange(org.openehr.schemas.v1.IntervalOfDuration range)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDuration target = null;
target = (org.openehr.schemas.v1.IntervalOfDuration)get_store().find_element_user(RANGE$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfDuration)get_store().add_element_user(RANGE$2);
}
target.set(range);
}
}
/**
* Appends and returns a new empty "range" element
*/
public org.openehr.schemas.v1.IntervalOfDuration addNewRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfDuration target = null;
target = (org.openehr.schemas.v1.IntervalOfDuration)get_store().add_element_user(RANGE$2);
return target;
}
}
/**
* Unsets the "range" element
*/
public void unsetRange()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RANGE$2, 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$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "assumed_value" element
*/
public org.openehr.schemas.v1.Iso8601Duration xgetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Duration target = null;
target = (org.openehr.schemas.v1.Iso8601Duration)get_store().find_element_user(ASSUMEDVALUE$4, 0);
return target;
}
}
/**
* True if has "assumed_value" element
*/
public boolean isSetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ASSUMEDVALUE$4) != 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$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSUMEDVALUE$4);
}
target.setStringValue(assumedValue);
}
}
/**
* Sets (as xml) the "assumed_value" element
*/
public void xsetAssumedValue(org.openehr.schemas.v1.Iso8601Duration assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.Iso8601Duration target = null;
target = (org.openehr.schemas.v1.Iso8601Duration)get_store().find_element_user(ASSUMEDVALUE$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.Iso8601Duration)get_store().add_element_user(ASSUMEDVALUE$4);
}
target.set(assumedValue);
}
}
/**
* Unsets the "assumed_value" element
*/
public void unsetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ASSUMEDVALUE$4, 0);
}
}
}