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

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

The newest version!
/*
 * XML Type:  PARTICIPATION
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.PARTICIPATION
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML PARTICIPATION(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class PARTICIPATIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.PARTICIPATION
{
    private static final long serialVersionUID = 1L;
    
    public PARTICIPATIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PARTICIPATIONNAME$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "participationName");
    private static final javax.xml.namespace.QName FUNCTION$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "function");
    private static final javax.xml.namespace.QName TIMINGREQUIRED$4 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "timingRequired");
    private static final javax.xml.namespace.QName MODE$6 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "mode");
    private static final javax.xml.namespace.QName PERFORMER$8 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "performer");
    
    
    /**
     * Gets the "participationName" element
     */
    public java.lang.String getParticipationName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARTICIPATIONNAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "participationName" element
     */
    public org.apache.xmlbeans.XmlString xgetParticipationName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARTICIPATIONNAME$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "participationName" element
     */
    public void setParticipationName(java.lang.String participationName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARTICIPATIONNAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PARTICIPATIONNAME$0);
            }
            target.setStringValue(participationName);
        }
    }
    
    /**
     * Sets (as xml) the "participationName" element
     */
    public void xsetParticipationName(org.apache.xmlbeans.XmlString participationName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARTICIPATIONNAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PARTICIPATIONNAME$0);
            }
            target.set(participationName);
        }
    }
    
    /**
     * Gets the "function" element
     */
    public openEHR.v1.template.TextConstraint getFunction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(FUNCTION$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "function" element
     */
    public void setFunction(openEHR.v1.template.TextConstraint function)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(FUNCTION$2, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(FUNCTION$2);
            }
            target.set(function);
        }
    }
    
    /**
     * Appends and returns a new empty "function" element
     */
    public openEHR.v1.template.TextConstraint addNewFunction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(FUNCTION$2);
            return target;
        }
    }
    
    /**
     * Gets the "timingRequired" element
     */
    public boolean getTimingRequired()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMINGREQUIRED$4, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "timingRequired" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetTimingRequired()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(TIMINGREQUIRED$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "timingRequired" element
     */
    public void setTimingRequired(boolean timingRequired)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMINGREQUIRED$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TIMINGREQUIRED$4);
            }
            target.setBooleanValue(timingRequired);
        }
    }
    
    /**
     * Sets (as xml) the "timingRequired" element
     */
    public void xsetTimingRequired(org.apache.xmlbeans.XmlBoolean timingRequired)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(TIMINGREQUIRED$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(TIMINGREQUIRED$4);
            }
            target.set(timingRequired);
        }
    }
    
    /**
     * Gets the "mode" element
     */
    public openEHR.v1.template.TextConstraint getMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(MODE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "mode" element
     */
    public void setMode(openEHR.v1.template.TextConstraint mode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(MODE$6, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(MODE$6);
            }
            target.set(mode);
        }
    }
    
    /**
     * Appends and returns a new empty "mode" element
     */
    public openEHR.v1.template.TextConstraint addNewMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(MODE$6);
            return target;
        }
    }
    
    /**
     * Gets the "performer" element
     */
    public openEHR.v1.template.PARTY getPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.PARTY target = null;
            target = (openEHR.v1.template.PARTY)get_store().find_element_user(PERFORMER$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "performer" element
     */
    public boolean isSetPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PERFORMER$8) != 0;
        }
    }
    
    /**
     * Sets the "performer" element
     */
    public void setPerformer(openEHR.v1.template.PARTY performer)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.PARTY target = null;
            target = (openEHR.v1.template.PARTY)get_store().find_element_user(PERFORMER$8, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.PARTY)get_store().add_element_user(PERFORMER$8);
            }
            target.set(performer);
        }
    }
    
    /**
     * Appends and returns a new empty "performer" element
     */
    public openEHR.v1.template.PARTY addNewPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.PARTY target = null;
            target = (openEHR.v1.template.PARTY)get_store().add_element_user(PERFORMER$8);
            return target;
        }
    }
    
    /**
     * Unsets the "performer" element
     */
    public void unsetPerformer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PERFORMER$8, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy