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

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

/*
 * XML Type:  TRANSITION
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.TRANSITION
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML TRANSITION(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class TRANSITIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.TRANSITION
{
    private static final long serialVersionUID = 1L;
    
    public TRANSITIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EVENT$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "event");
    private static final javax.xml.namespace.QName ACTION$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "action");
    private static final javax.xml.namespace.QName GUARD$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "guard");
    private static final javax.xml.namespace.QName NEXTSTATE$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "next_state");
    
    
    /**
     * Gets the "event" element
     */
    public java.lang.String getEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EVENT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "event" element
     */
    public org.apache.xmlbeans.XmlString xgetEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EVENT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "event" element
     */
    public void setEvent(java.lang.String event)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EVENT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EVENT$0);
            }
            target.setStringValue(event);
        }
    }
    
    /**
     * Sets (as xml) the "event" element
     */
    public void xsetEvent(org.apache.xmlbeans.XmlString event)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EVENT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(EVENT$0);
            }
            target.set(event);
        }
    }
    
    /**
     * Gets the "action" element
     */
    public java.lang.String getAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "action" element
     */
    public org.apache.xmlbeans.XmlString xgetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTION$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "action" element
     */
    public boolean isSetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ACTION$2) != 0;
        }
    }
    
    /**
     * Sets the "action" element
     */
    public void setAction(java.lang.String action)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACTION$2);
            }
            target.setStringValue(action);
        }
    }
    
    /**
     * Sets (as xml) the "action" element
     */
    public void xsetAction(org.apache.xmlbeans.XmlString action)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTION$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACTION$2);
            }
            target.set(action);
        }
    }
    
    /**
     * Unsets the "action" element
     */
    public void unsetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ACTION$2, 0);
        }
    }
    
    /**
     * Gets the "guard" element
     */
    public java.lang.String getGuard()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GUARD$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "guard" element
     */
    public org.apache.xmlbeans.XmlString xgetGuard()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GUARD$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "guard" element
     */
    public boolean isSetGuard()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GUARD$4) != 0;
        }
    }
    
    /**
     * Sets the "guard" element
     */
    public void setGuard(java.lang.String guard)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GUARD$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GUARD$4);
            }
            target.setStringValue(guard);
        }
    }
    
    /**
     * Sets (as xml) the "guard" element
     */
    public void xsetGuard(org.apache.xmlbeans.XmlString guard)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GUARD$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(GUARD$4);
            }
            target.set(guard);
        }
    }
    
    /**
     * Unsets the "guard" element
     */
    public void unsetGuard()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GUARD$4, 0);
        }
    }
    
    /**
     * Gets the "next_state" element
     */
    public org.openehr.schemas.v1.STATE getNextState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().find_element_user(NEXTSTATE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "next_state" element
     */
    public boolean isSetNextState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NEXTSTATE$6) != 0;
        }
    }
    
    /**
     * Sets the "next_state" element
     */
    public void setNextState(org.openehr.schemas.v1.STATE nextState)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().find_element_user(NEXTSTATE$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.STATE)get_store().add_element_user(NEXTSTATE$6);
            }
            target.set(nextState);
        }
    }
    
    /**
     * Appends and returns a new empty "next_state" element
     */
    public org.openehr.schemas.v1.STATE addNewNextState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().add_element_user(NEXTSTATE$6);
            return target;
        }
    }
    
    /**
     * Unsets the "next_state" element
     */
    public void unsetNextState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NEXTSTATE$6, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy