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

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

/*
 * XML Type:  ISM_TRANSITION
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ISMTRANSITION
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML ISM_TRANSITION(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class ISMTRANSITIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.ISMTRANSITION
{
    private static final long serialVersionUID = 1L;
    
    public ISMTRANSITIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CURRENTSTATE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "current_state");
    private static final javax.xml.namespace.QName TRANSITION$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "transition");
    private static final javax.xml.namespace.QName CAREFLOWSTEP$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "careflow_step");
    
    
    /**
     * Gets the "current_state" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT getCurrentState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CURRENTSTATE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "current_state" element
     */
    public void setCurrentState(org.openehr.schemas.v1.DVCODEDTEXT currentState)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CURRENTSTATE$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CURRENTSTATE$0);
            }
            target.set(currentState);
        }
    }
    
    /**
     * Appends and returns a new empty "current_state" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT addNewCurrentState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CURRENTSTATE$0);
            return target;
        }
    }
    
    /**
     * Gets the "transition" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT getTransition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(TRANSITION$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "transition" element
     */
    public boolean isSetTransition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TRANSITION$2) != 0;
        }
    }
    
    /**
     * Sets the "transition" element
     */
    public void setTransition(org.openehr.schemas.v1.DVCODEDTEXT transition)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(TRANSITION$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(TRANSITION$2);
            }
            target.set(transition);
        }
    }
    
    /**
     * Appends and returns a new empty "transition" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT addNewTransition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(TRANSITION$2);
            return target;
        }
    }
    
    /**
     * Unsets the "transition" element
     */
    public void unsetTransition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TRANSITION$2, 0);
        }
    }
    
    /**
     * Gets the "careflow_step" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT getCareflowStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CAREFLOWSTEP$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "careflow_step" element
     */
    public boolean isSetCareflowStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CAREFLOWSTEP$4) != 0;
        }
    }
    
    /**
     * Sets the "careflow_step" element
     */
    public void setCareflowStep(org.openehr.schemas.v1.DVCODEDTEXT careflowStep)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CAREFLOWSTEP$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CAREFLOWSTEP$4);
            }
            target.set(careflowStep);
        }
    }
    
    /**
     * Appends and returns a new empty "careflow_step" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT addNewCareflowStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CAREFLOWSTEP$4);
            return target;
        }
    }
    
    /**
     * Unsets the "careflow_step" element
     */
    public void unsetCareflowStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CAREFLOWSTEP$4, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy