org.openehr.schemas.v1.impl.TemplateDocumentImpl 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!
/*
* An XML document type.
* Localname: template
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.TemplateDocument
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* A document containing one template(@http://schemas.openehr.org/v1) element.
*
* This is a complex type.
*/
public class TemplateDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.TemplateDocument
{
private static final long serialVersionUID = 1L;
public TemplateDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TEMPLATE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "template");
/**
* Gets the "template" element
*/
public org.openehr.schemas.v1.OPERATIONALTEMPLATE getTemplate()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OPERATIONALTEMPLATE target = null;
target = (org.openehr.schemas.v1.OPERATIONALTEMPLATE)get_store().find_element_user(TEMPLATE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "template" element
*/
public void setTemplate(org.openehr.schemas.v1.OPERATIONALTEMPLATE template)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OPERATIONALTEMPLATE target = null;
target = (org.openehr.schemas.v1.OPERATIONALTEMPLATE)get_store().find_element_user(TEMPLATE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OPERATIONALTEMPLATE)get_store().add_element_user(TEMPLATE$0);
}
target.set(template);
}
}
/**
* Appends and returns a new empty "template" element
*/
public org.openehr.schemas.v1.OPERATIONALTEMPLATE addNewTemplate()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OPERATIONALTEMPLATE target = null;
target = (org.openehr.schemas.v1.OPERATIONALTEMPLATE)get_store().add_element_user(TEMPLATE$0);
return target;
}
}
}