All Downloads are FREE. Search and download functionalities are using the official Maven repository.

openEHR.v1.template.impl.TemplateDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: template
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.TemplateDocument
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * A document containing one template(@openEHR/v1/Template) element.
 *
 * This is a complex type.
 */
public class TemplateDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.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("openEHR/v1/Template", "template");
    
    
    /**
     * Gets the "template" element
     */
    public openEHR.v1.template.TEMPLATE getTemplate()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TEMPLATE target = null;
            target = (openEHR.v1.template.TEMPLATE)get_store().find_element_user(TEMPLATE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "template" element
     */
    public void setTemplate(openEHR.v1.template.TEMPLATE template)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TEMPLATE target = null;
            target = (openEHR.v1.template.TEMPLATE)get_store().find_element_user(TEMPLATE$0, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.TEMPLATE)get_store().add_element_user(TEMPLATE$0);
            }
            target.set(template);
        }
    }
    
    /**
     * Appends and returns a new empty "template" element
     */
    public openEHR.v1.template.TEMPLATE addNewTemplate()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TEMPLATE target = null;
            target = (openEHR.v1.template.TEMPLATE)get_store().add_element_user(TEMPLATE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy