org.openehr.schemas.v1.impl.EXTRACTREQUESTImpl 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: EXTRACT_REQUEST
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EXTRACTREQUEST
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EXTRACT_REQUEST(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EXTRACTREQUESTImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.EXTRACTREQUEST
{
private static final long serialVersionUID = 1L;
public EXTRACTREQUESTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName EXTRACTSPEC$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "extract_spec");
private static final javax.xml.namespace.QName UPDATESPEC$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "update_spec");
/**
* Gets the "extract_spec" element
*/
public org.openehr.schemas.v1.EXTRACTSPEC getExtractSpec()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().find_element_user(EXTRACTSPEC$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "extract_spec" element
*/
public void setExtractSpec(org.openehr.schemas.v1.EXTRACTSPEC extractSpec)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().find_element_user(EXTRACTSPEC$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().add_element_user(EXTRACTSPEC$0);
}
target.set(extractSpec);
}
}
/**
* Appends and returns a new empty "extract_spec" element
*/
public org.openehr.schemas.v1.EXTRACTSPEC addNewExtractSpec()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().add_element_user(EXTRACTSPEC$0);
return target;
}
}
/**
* Gets the "update_spec" element
*/
public org.openehr.schemas.v1.EXTRACTUPDATESPEC getUpdateSpec()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTUPDATESPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTUPDATESPEC)get_store().find_element_user(UPDATESPEC$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "update_spec" element
*/
public boolean isSetUpdateSpec()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(UPDATESPEC$2) != 0;
}
}
/**
* Sets the "update_spec" element
*/
public void setUpdateSpec(org.openehr.schemas.v1.EXTRACTUPDATESPEC updateSpec)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTUPDATESPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTUPDATESPEC)get_store().find_element_user(UPDATESPEC$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXTRACTUPDATESPEC)get_store().add_element_user(UPDATESPEC$2);
}
target.set(updateSpec);
}
}
/**
* Appends and returns a new empty "update_spec" element
*/
public org.openehr.schemas.v1.EXTRACTUPDATESPEC addNewUpdateSpec()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTUPDATESPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTUPDATESPEC)get_store().add_element_user(UPDATESPEC$2);
return target;
}
}
/**
* Unsets the "update_spec" element
*/
public void unsetUpdateSpec()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(UPDATESPEC$2, 0);
}
}
}