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

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

/*
 * XML Type:  EVENT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EVENT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EVENT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EVENTImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.EVENT
{
    private static final long serialVersionUID = 1L;
    
    public EVENTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TIME$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "time");
    private static final javax.xml.namespace.QName DATA$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "data");
    private static final javax.xml.namespace.QName STATE$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "state");
    
    
    /**
     * Gets the "time" element
     */
    public org.openehr.schemas.v1.DVDATETIME getTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "time" element
     */
    public void setTime(org.openehr.schemas.v1.DVDATETIME time)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIME$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIME$0);
            }
            target.set(time);
        }
    }
    
    /**
     * Appends and returns a new empty "time" element
     */
    public org.openehr.schemas.v1.DVDATETIME addNewTime()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIME$0);
            return target;
        }
    }
    
    /**
     * Gets the "data" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE getData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DATA$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "data" element
     */
    public void setData(org.openehr.schemas.v1.ITEMSTRUCTURE data)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DATA$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DATA$2);
            }
            target.set(data);
        }
    }
    
    /**
     * Appends and returns a new empty "data" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE addNewData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DATA$2);
            return target;
        }
    }
    
    /**
     * Gets the "state" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE getState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(STATE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "state" element
     */
    public boolean isSetState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATE$4) != 0;
        }
    }
    
    /**
     * Sets the "state" element
     */
    public void setState(org.openehr.schemas.v1.ITEMSTRUCTURE state)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(STATE$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(STATE$4);
            }
            target.set(state);
        }
    }
    
    /**
     * Appends and returns a new empty "state" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE addNewState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(STATE$4);
            return target;
        }
    }
    
    /**
     * Unsets the "state" element
     */
    public void unsetState()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATE$4, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy