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

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

/*
 * XML Type:  C_PRIMITIVE_OBJECT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CPRIMITIVEOBJECT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_PRIMITIVE_OBJECT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CPRIMITIVEOBJECTImpl extends org.openehr.schemas.v1.impl.CDEFINEDOBJECTImpl implements org.openehr.schemas.v1.CPRIMITIVEOBJECT
{
    private static final long serialVersionUID = 1L;
    
    public CPRIMITIVEOBJECTImpl(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.CPRIMITIVE getItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CPRIMITIVE target = null;
            target = (org.openehr.schemas.v1.CPRIMITIVE)get_store().find_element_user(ITEM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "item" element
     */
    public boolean isSetItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ITEM$0) != 0;
        }
    }
    
    /**
     * Sets the "item" element
     */
    public void setItem(org.openehr.schemas.v1.CPRIMITIVE item)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CPRIMITIVE target = null;
            target = (org.openehr.schemas.v1.CPRIMITIVE)get_store().find_element_user(ITEM$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CPRIMITIVE)get_store().add_element_user(ITEM$0);
            }
            target.set(item);
        }
    }
    
    /**
     * Appends and returns a new empty "item" element
     */
    public org.openehr.schemas.v1.CPRIMITIVE addNewItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CPRIMITIVE target = null;
            target = (org.openehr.schemas.v1.CPRIMITIVE)get_store().add_element_user(ITEM$0);
            return target;
        }
    }
    
    /**
     * Unsets the "item" element
     */
    public void unsetItem()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ITEM$0, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy