org.openehr.schemas.v1.impl.DVORDEREDImpl Maven / Gradle / Ivy
/*
* XML Type: DV_ORDERED
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVORDERED
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_ORDERED(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVORDEREDImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVORDERED
{
private static final long serialVersionUID = 1L;
public DVORDEREDImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NORMALRANGE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "normal_range");
private static final javax.xml.namespace.QName OTHERREFERENCERANGES$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_reference_ranges");
private static final javax.xml.namespace.QName NORMALSTATUS$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "normal_status");
/**
* Gets the "normal_range" element
*/
public org.openehr.schemas.v1.DVINTERVAL getNormalRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVINTERVAL target = null;
target = (org.openehr.schemas.v1.DVINTERVAL)get_store().find_element_user(NORMALRANGE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "normal_range" element
*/
public boolean isSetNormalRange()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NORMALRANGE$0) != 0;
}
}
/**
* Sets the "normal_range" element
*/
public void setNormalRange(org.openehr.schemas.v1.DVINTERVAL normalRange)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVINTERVAL target = null;
target = (org.openehr.schemas.v1.DVINTERVAL)get_store().find_element_user(NORMALRANGE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVINTERVAL)get_store().add_element_user(NORMALRANGE$0);
}
target.set(normalRange);
}
}
/**
* Appends and returns a new empty "normal_range" element
*/
public org.openehr.schemas.v1.DVINTERVAL addNewNormalRange()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVINTERVAL target = null;
target = (org.openehr.schemas.v1.DVINTERVAL)get_store().add_element_user(NORMALRANGE$0);
return target;
}
}
/**
* Unsets the "normal_range" element
*/
public void unsetNormalRange()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NORMALRANGE$0, 0);
}
}
/**
* Gets array of all "other_reference_ranges" elements
*/
public org.openehr.schemas.v1.REFERENCERANGE[] getOtherReferenceRangesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(OTHERREFERENCERANGES$2, targetList);
org.openehr.schemas.v1.REFERENCERANGE[] result = new org.openehr.schemas.v1.REFERENCERANGE[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "other_reference_ranges" element
*/
public org.openehr.schemas.v1.REFERENCERANGE getOtherReferenceRangesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.REFERENCERANGE target = null;
target = (org.openehr.schemas.v1.REFERENCERANGE)get_store().find_element_user(OTHERREFERENCERANGES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "other_reference_ranges" element
*/
public int sizeOfOtherReferenceRangesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OTHERREFERENCERANGES$2);
}
}
/**
* Sets array of all "other_reference_ranges" element
*/
public void setOtherReferenceRangesArray(org.openehr.schemas.v1.REFERENCERANGE[] otherReferenceRangesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(otherReferenceRangesArray, OTHERREFERENCERANGES$2);
}
}
/**
* Sets ith "other_reference_ranges" element
*/
public void setOtherReferenceRangesArray(int i, org.openehr.schemas.v1.REFERENCERANGE otherReferenceRanges)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.REFERENCERANGE target = null;
target = (org.openehr.schemas.v1.REFERENCERANGE)get_store().find_element_user(OTHERREFERENCERANGES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(otherReferenceRanges);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "other_reference_ranges" element
*/
public org.openehr.schemas.v1.REFERENCERANGE insertNewOtherReferenceRanges(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.REFERENCERANGE target = null;
target = (org.openehr.schemas.v1.REFERENCERANGE)get_store().insert_element_user(OTHERREFERENCERANGES$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "other_reference_ranges" element
*/
public org.openehr.schemas.v1.REFERENCERANGE addNewOtherReferenceRanges()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.REFERENCERANGE target = null;
target = (org.openehr.schemas.v1.REFERENCERANGE)get_store().add_element_user(OTHERREFERENCERANGES$2);
return target;
}
}
/**
* Removes the ith "other_reference_ranges" element
*/
public void removeOtherReferenceRanges(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERREFERENCERANGES$2, i);
}
}
/**
* Gets the "normal_status" element
*/
public org.openehr.schemas.v1.CODEPHRASE getNormalStatus()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(NORMALSTATUS$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "normal_status" element
*/
public boolean isSetNormalStatus()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NORMALSTATUS$4) != 0;
}
}
/**
* Sets the "normal_status" element
*/
public void setNormalStatus(org.openehr.schemas.v1.CODEPHRASE normalStatus)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(NORMALSTATUS$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(NORMALSTATUS$4);
}
target.set(normalStatus);
}
}
/**
* Appends and returns a new empty "normal_status" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewNormalStatus()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(NORMALSTATUS$4);
return target;
}
}
/**
* Unsets the "normal_status" element
*/
public void unsetNormalStatus()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NORMALSTATUS$4, 0);
}
}
}