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

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

The newest version!
/*
 * XML Type:  DV_CODED_TEXT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.DVCODEDTEXT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML DV_CODED_TEXT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class DVCODEDTEXTImpl extends org.openehr.schemas.v1.impl.DVTEXTImpl implements org.openehr.schemas.v1.DVCODEDTEXT
{
    private static final long serialVersionUID = 1L;
    
    public DVCODEDTEXTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DEFININGCODE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "defining_code");
    
    
    /**
     * Gets the "defining_code" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getDefiningCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(DEFININGCODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "defining_code" element
     */
    public void setDefiningCode(org.openehr.schemas.v1.CODEPHRASE definingCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(DEFININGCODE$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(DEFININGCODE$0);
            }
            target.set(definingCode);
        }
    }
    
    /**
     * Appends and returns a new empty "defining_code" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewDefiningCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(DEFININGCODE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy