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

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

The newest version!
/*
 * XML Type:  PARTICIPATION
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.PARTICIPATION
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML PARTICIPATION(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class PARTICIPATIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.PARTICIPATION
{
    private static final long serialVersionUID = 1L;
    
    public PARTICIPATIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FUNCTION$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "function");
    private static final javax.xml.namespace.QName PERFORMER$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "performer");
    private static final javax.xml.namespace.QName TIME$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "time");
    private static final javax.xml.namespace.QName MODE$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "mode");
    
    
    /**
     * Gets the "function" element
     */
    public org.openehr.schemas.v1.DVTEXT getFunction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(FUNCTION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "function" element
     */
    public void setFunction(org.openehr.schemas.v1.DVTEXT function)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(FUNCTION$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(FUNCTION$0);
            }
            target.set(function);
        }
    }
    
    /**
     * Appends and returns a new empty "function" element
     */
    public org.openehr.schemas.v1.DVTEXT addNewFunction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(FUNCTION$0);
            return target;
        }
    }
    
    /**
     * Gets the "performer" element
     */
    public org.openehr.schemas.v1.PARTYPROXY getPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(PERFORMER$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "performer" element
     */
    public void setPerformer(org.openehr.schemas.v1.PARTYPROXY performer)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(PERFORMER$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(PERFORMER$2);
            }
            target.set(performer);
        }
    }
    
    /**
     * Appends and returns a new empty "performer" element
     */
    public org.openehr.schemas.v1.PARTYPROXY addNewPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(PERFORMER$2);
            return target;
        }
    }
    
    /**
     * Gets the "time" element
     */
    public org.openehr.schemas.v1.DVINTERVAL getTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVINTERVAL target = null;
            target = (org.openehr.schemas.v1.DVINTERVAL)get_store().find_element_user(TIME$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "time" element
     */
    public boolean isSetTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TIME$4) != 0;
        }
    }
    
    /**
     * Sets the "time" element
     */
    public void setTime(org.openehr.schemas.v1.DVINTERVAL time)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVINTERVAL target = null;
            target = (org.openehr.schemas.v1.DVINTERVAL)get_store().find_element_user(TIME$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVINTERVAL)get_store().add_element_user(TIME$4);
            }
            target.set(time);
        }
    }
    
    /**
     * Appends and returns a new empty "time" element
     */
    public org.openehr.schemas.v1.DVINTERVAL addNewTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVINTERVAL target = null;
            target = (org.openehr.schemas.v1.DVINTERVAL)get_store().add_element_user(TIME$4);
            return target;
        }
    }
    
    /**
     * Unsets the "time" element
     */
    public void unsetTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TIME$4, 0);
        }
    }
    
    /**
     * Gets the "mode" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT getMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(MODE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "mode" element
     */
    public void setMode(org.openehr.schemas.v1.DVCODEDTEXT mode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(MODE$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(MODE$6);
            }
            target.set(mode);
        }
    }
    
    /**
     * Appends and returns a new empty "mode" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT addNewMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(MODE$6);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy