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

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

The newest version!
/*
 * An XML document type.
 * Localname: items
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ItemsDocument
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * A document containing one items(@http://schemas.openehr.org/v1) element.
 *
 * This is a complex type.
 */
public class ItemsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.ItemsDocument
{
    private static final long serialVersionUID = 1L;
    
    public ItemsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ITEMS$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
    
    
    /**
     * Gets the "items" element
     */
    public org.openehr.schemas.v1.LOCATABLE getItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLE target = null;
            target = (org.openehr.schemas.v1.LOCATABLE)get_store().find_element_user(ITEMS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "items" element
     */
    public void setItems(org.openehr.schemas.v1.LOCATABLE items)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLE target = null;
            target = (org.openehr.schemas.v1.LOCATABLE)get_store().find_element_user(ITEMS$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.LOCATABLE)get_store().add_element_user(ITEMS$0);
            }
            target.set(items);
        }
    }
    
    /**
     * Appends and returns a new empty "items" element
     */
    public org.openehr.schemas.v1.LOCATABLE addNewItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLE target = null;
            target = (org.openehr.schemas.v1.LOCATABLE)get_store().add_element_user(ITEMS$0);
            return target;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy