openEHR.v1.template.impl.ConditionImpl 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: condition
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.Condition
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML condition(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class ConditionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.Condition
{
private static final long serialVersionUID = 1L;
public ConditionImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MINIMUMAGEYEARS$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "minimumAgeYears");
private static final javax.xml.namespace.QName MAXIMUMAGEYEARS$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "maximumAgeYears");
private static final javax.xml.namespace.QName GENDER$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "gender");
private static final javax.xml.namespace.QName ARCHETYPEVALUE$6 =
new javax.xml.namespace.QName("openEHR/v1/Template", "archetypeValue");
/**
* Gets the "minimumAgeYears" element
*/
public java.math.BigInteger getMinimumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINIMUMAGEYEARS$0, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "minimumAgeYears" element
*/
public org.apache.xmlbeans.XmlPositiveInteger xgetMinimumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlPositiveInteger target = null;
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_element_user(MINIMUMAGEYEARS$0, 0);
return target;
}
}
/**
* True if has "minimumAgeYears" element
*/
public boolean isSetMinimumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MINIMUMAGEYEARS$0) != 0;
}
}
/**
* Sets the "minimumAgeYears" element
*/
public void setMinimumAgeYears(java.math.BigInteger minimumAgeYears)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINIMUMAGEYEARS$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINIMUMAGEYEARS$0);
}
target.setBigIntegerValue(minimumAgeYears);
}
}
/**
* Sets (as xml) the "minimumAgeYears" element
*/
public void xsetMinimumAgeYears(org.apache.xmlbeans.XmlPositiveInteger minimumAgeYears)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlPositiveInteger target = null;
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_element_user(MINIMUMAGEYEARS$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().add_element_user(MINIMUMAGEYEARS$0);
}
target.set(minimumAgeYears);
}
}
/**
* Unsets the "minimumAgeYears" element
*/
public void unsetMinimumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MINIMUMAGEYEARS$0, 0);
}
}
/**
* Gets the "maximumAgeYears" element
*/
public java.math.BigInteger getMaximumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXIMUMAGEYEARS$2, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "maximumAgeYears" element
*/
public org.apache.xmlbeans.XmlPositiveInteger xgetMaximumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlPositiveInteger target = null;
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_element_user(MAXIMUMAGEYEARS$2, 0);
return target;
}
}
/**
* True if has "maximumAgeYears" element
*/
public boolean isSetMaximumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MAXIMUMAGEYEARS$2) != 0;
}
}
/**
* Sets the "maximumAgeYears" element
*/
public void setMaximumAgeYears(java.math.BigInteger maximumAgeYears)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXIMUMAGEYEARS$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXIMUMAGEYEARS$2);
}
target.setBigIntegerValue(maximumAgeYears);
}
}
/**
* Sets (as xml) the "maximumAgeYears" element
*/
public void xsetMaximumAgeYears(org.apache.xmlbeans.XmlPositiveInteger maximumAgeYears)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlPositiveInteger target = null;
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_element_user(MAXIMUMAGEYEARS$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().add_element_user(MAXIMUMAGEYEARS$2);
}
target.set(maximumAgeYears);
}
}
/**
* Unsets the "maximumAgeYears" element
*/
public void unsetMaximumAgeYears()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MAXIMUMAGEYEARS$2, 0);
}
}
/**
* Gets the "gender" element
*/
public java.lang.String getGender()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GENDER$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "gender" element
*/
public org.apache.xmlbeans.XmlString xgetGender()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GENDER$4, 0);
return target;
}
}
/**
* True if has "gender" element
*/
public boolean isSetGender()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(GENDER$4) != 0;
}
}
/**
* Sets the "gender" element
*/
public void setGender(java.lang.String gender)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GENDER$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GENDER$4);
}
target.setStringValue(gender);
}
}
/**
* Sets (as xml) the "gender" element
*/
public void xsetGender(org.apache.xmlbeans.XmlString gender)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GENDER$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(GENDER$4);
}
target.set(gender);
}
}
/**
* Unsets the "gender" element
*/
public void unsetGender()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(GENDER$4, 0);
}
}
/**
* Gets the "archetypeValue" element
*/
public openEHR.v1.template.DependentCondition getArchetypeValue()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DependentCondition target = null;
target = (openEHR.v1.template.DependentCondition)get_store().find_element_user(ARCHETYPEVALUE$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "archetypeValue" element
*/
public boolean isSetArchetypeValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ARCHETYPEVALUE$6) != 0;
}
}
/**
* Sets the "archetypeValue" element
*/
public void setArchetypeValue(openEHR.v1.template.DependentCondition archetypeValue)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DependentCondition target = null;
target = (openEHR.v1.template.DependentCondition)get_store().find_element_user(ARCHETYPEVALUE$6, 0);
if (target == null)
{
target = (openEHR.v1.template.DependentCondition)get_store().add_element_user(ARCHETYPEVALUE$6);
}
target.set(archetypeValue);
}
}
/**
* Appends and returns a new empty "archetypeValue" element
*/
public openEHR.v1.template.DependentCondition addNewArchetypeValue()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DependentCondition target = null;
target = (openEHR.v1.template.DependentCondition)get_store().add_element_user(ARCHETYPEVALUE$6);
return target;
}
}
/**
* Unsets the "archetypeValue" element
*/
public void unsetArchetypeValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ARCHETYPEVALUE$6, 0);
}
}
}