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

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

/*
 * XML Type:  EXTRACT_CHAPTER
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EXTRACTCHAPTER
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EXTRACT_CHAPTER(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EXTRACTCHAPTERImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.EXTRACTCHAPTER
{
    private static final long serialVersionUID = 1L;
    
    public EXTRACTCHAPTERImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DIRECTORY$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "directory");
    private static final javax.xml.namespace.QName CONTENT$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "content");
    private static final javax.xml.namespace.QName ENTITYIDENTIFIER$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "entity_identifier");
    
    
    /**
     * Gets the "directory" element
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER getDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().find_element_user(DIRECTORY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "directory" element
     */
    public boolean isSetDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DIRECTORY$0) != 0;
        }
    }
    
    /**
     * Sets the "directory" element
     */
    public void setDirectory(org.openehr.schemas.v1.EXTRACTFOLDER directory)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().find_element_user(DIRECTORY$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().add_element_user(DIRECTORY$0);
            }
            target.set(directory);
        }
    }
    
    /**
     * Appends and returns a new empty "directory" element
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER addNewDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().add_element_user(DIRECTORY$0);
            return target;
        }
    }
    
    /**
     * Unsets the "directory" element
     */
    public void unsetDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DIRECTORY$0, 0);
        }
    }
    
    /**
     * Gets the "content" element
     */
    public org.openehr.schemas.v1.EXTRACTCONTENT getContent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTCONTENT target = null;
            target = (org.openehr.schemas.v1.EXTRACTCONTENT)get_store().find_element_user(CONTENT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "content" element
     */
    public void setContent(org.openehr.schemas.v1.EXTRACTCONTENT content)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTCONTENT target = null;
            target = (org.openehr.schemas.v1.EXTRACTCONTENT)get_store().find_element_user(CONTENT$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.EXTRACTCONTENT)get_store().add_element_user(CONTENT$2);
            }
            target.set(content);
        }
    }
    
    /**
     * Appends and returns a new empty "content" element
     */
    public org.openehr.schemas.v1.EXTRACTCONTENT addNewContent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTCONTENT target = null;
            target = (org.openehr.schemas.v1.EXTRACTCONTENT)get_store().add_element_user(CONTENT$2);
            return target;
        }
    }
    
    /**
     * Gets the "entity_identifier" element
     */
    public org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER getEntityIdentifier()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().find_element_user(ENTITYIDENTIFIER$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "entity_identifier" element
     */
    public void setEntityIdentifier(org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER entityIdentifier)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().find_element_user(ENTITYIDENTIFIER$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().add_element_user(ENTITYIDENTIFIER$4);
            }
            target.set(entityIdentifier);
        }
    }
    
    /**
     * Appends and returns a new empty "entity_identifier" element
     */
    public org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER addNewEntityIdentifier()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().add_element_user(ENTITYIDENTIFIER$4);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy