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

org.openehr.schemas.v1.impl.ExtractDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: extract
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ExtractDocument
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * A document containing one extract(@http://schemas.openehr.org/v1) element.
 *
 * This is a complex type.
 */
public class ExtractDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.ExtractDocument
{
    private static final long serialVersionUID = 1L;
    
    public ExtractDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EXTRACT$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "extract");
    
    
    /**
     * Gets the "extract" element
     */
    public org.openehr.schemas.v1.EXTRACT getExtract()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACT target = null;
            target = (org.openehr.schemas.v1.EXTRACT)get_store().find_element_user(EXTRACT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "extract" element
     */
    public void setExtract(org.openehr.schemas.v1.EXTRACT extract)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACT target = null;
            target = (org.openehr.schemas.v1.EXTRACT)get_store().find_element_user(EXTRACT$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.EXTRACT)get_store().add_element_user(EXTRACT$0);
            }
            target.set(extract);
        }
    }
    
    /**
     * Appends and returns a new empty "extract" element
     */
    public org.openehr.schemas.v1.EXTRACT addNewExtract()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACT target = null;
            target = (org.openehr.schemas.v1.EXTRACT)get_store().add_element_user(EXTRACT$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy