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

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

The newest version!
/*
 * XML Type:  ACTION
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.ACTION
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML ACTION(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class ACTIONImpl extends openEHR.v1.template.impl.ENTRYImpl implements openEHR.v1.template.ACTION
{
    private static final long serialVersionUID = 1L;
    
    public ACTIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DESCRIPTION$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "description");
    
    
    /**
     * Gets the "description" element
     */
    public openEHR.v1.template.ITEMSTRUCTURE getDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEMSTRUCTURE target = null;
            target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "description" element
     */
    public boolean isSetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESCRIPTION$0) != 0;
        }
    }
    
    /**
     * Sets the "description" element
     */
    public void setDescription(openEHR.v1.template.ITEMSTRUCTURE description)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEMSTRUCTURE target = null;
            target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$0, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$0);
            }
            target.set(description);
        }
    }
    
    /**
     * Appends and returns a new empty "description" element
     */
    public openEHR.v1.template.ITEMSTRUCTURE addNewDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEMSTRUCTURE target = null;
            target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$0);
            return target;
        }
    }
    
    /**
     * Unsets the "description" element
     */
    public void unsetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESCRIPTION$0, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy