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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy