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

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

The newest version!
/*
 * XML Type:  ACTIVITY
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ACTIVITY
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML ACTIVITY(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class ACTIVITYImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.ACTIVITY
{
    private static final long serialVersionUID = 1L;
    
    public ACTIVITYImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DESCRIPTION$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "description");
    private static final javax.xml.namespace.QName TIMING$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "timing");
    private static final javax.xml.namespace.QName ACTIONARCHETYPEID$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "action_archetype_id");
    
    
    /**
     * Gets the "description" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE getDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "description" element
     */
    public void setDescription(org.openehr.schemas.v1.ITEMSTRUCTURE description)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$0);
            }
            target.set(description);
        }
    }
    
    /**
     * Appends and returns a new empty "description" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE addNewDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$0);
            return target;
        }
    }
    
    /**
     * Gets the "timing" element
     */
    public org.openehr.schemas.v1.DVPARSABLE getTiming()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVPARSABLE target = null;
            target = (org.openehr.schemas.v1.DVPARSABLE)get_store().find_element_user(TIMING$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "timing" element
     */
    public void setTiming(org.openehr.schemas.v1.DVPARSABLE timing)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVPARSABLE target = null;
            target = (org.openehr.schemas.v1.DVPARSABLE)get_store().find_element_user(TIMING$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVPARSABLE)get_store().add_element_user(TIMING$2);
            }
            target.set(timing);
        }
    }
    
    /**
     * Appends and returns a new empty "timing" element
     */
    public org.openehr.schemas.v1.DVPARSABLE addNewTiming()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVPARSABLE target = null;
            target = (org.openehr.schemas.v1.DVPARSABLE)get_store().add_element_user(TIMING$2);
            return target;
        }
    }
    
    /**
     * Gets the "action_archetype_id" element
     */
    public java.lang.String getActionArchetypeId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTIONARCHETYPEID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "action_archetype_id" element
     */
    public org.apache.xmlbeans.XmlString xgetActionArchetypeId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTIONARCHETYPEID$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "action_archetype_id" element
     */
    public void setActionArchetypeId(java.lang.String actionArchetypeId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTIONARCHETYPEID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACTIONARCHETYPEID$4);
            }
            target.setStringValue(actionArchetypeId);
        }
    }
    
    /**
     * Sets (as xml) the "action_archetype_id" element
     */
    public void xsetActionArchetypeId(org.apache.xmlbeans.XmlString actionArchetypeId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTIONARCHETYPEID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACTIONARCHETYPEID$4);
            }
            target.set(actionArchetypeId);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy