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

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

The newest version!
/*
 * XML Type:  ITEM_SINGLE
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ITEMSINGLE
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML ITEM_SINGLE(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class ITEMSINGLEImpl extends org.openehr.schemas.v1.impl.ITEMSTRUCTUREImpl implements org.openehr.schemas.v1.ITEMSINGLE
{
    private static final long serialVersionUID = 1L;
    
    public ITEMSINGLEImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ITEM$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "item");
    
    
    /**
     * Gets the "item" element
     */
    public org.openehr.schemas.v1.ELEMENT getItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ELEMENT target = null;
            target = (org.openehr.schemas.v1.ELEMENT)get_store().find_element_user(ITEM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "item" element
     */
    public void setItem(org.openehr.schemas.v1.ELEMENT item)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ELEMENT target = null;
            target = (org.openehr.schemas.v1.ELEMENT)get_store().find_element_user(ITEM$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.ELEMENT)get_store().add_element_user(ITEM$0);
            }
            target.set(item);
        }
    }
    
    /**
     * Appends and returns a new empty "item" element
     */
    public org.openehr.schemas.v1.ELEMENT addNewItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ELEMENT target = null;
            target = (org.openehr.schemas.v1.ELEMENT)get_store().add_element_user(ITEM$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy