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

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

The newest version!
/*
 * XML Type:  CODE_PHRASE
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CODEPHRASE
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML CODE_PHRASE(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CODEPHRASEImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.CODEPHRASE
{
    private static final long serialVersionUID = 1L;
    
    public CODEPHRASEImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TERMINOLOGYID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "terminology_id");
    private static final javax.xml.namespace.QName CODESTRING$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "code_string");
    
    
    /**
     * Gets the "terminology_id" element
     */
    public org.openehr.schemas.v1.TERMINOLOGYID getTerminologyId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TERMINOLOGYID target = null;
            target = (org.openehr.schemas.v1.TERMINOLOGYID)get_store().find_element_user(TERMINOLOGYID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "terminology_id" element
     */
    public void setTerminologyId(org.openehr.schemas.v1.TERMINOLOGYID terminologyId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TERMINOLOGYID target = null;
            target = (org.openehr.schemas.v1.TERMINOLOGYID)get_store().find_element_user(TERMINOLOGYID$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.TERMINOLOGYID)get_store().add_element_user(TERMINOLOGYID$0);
            }
            target.set(terminologyId);
        }
    }
    
    /**
     * Appends and returns a new empty "terminology_id" element
     */
    public org.openehr.schemas.v1.TERMINOLOGYID addNewTerminologyId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TERMINOLOGYID target = null;
            target = (org.openehr.schemas.v1.TERMINOLOGYID)get_store().add_element_user(TERMINOLOGYID$0);
            return target;
        }
    }
    
    /**
     * Gets the "code_string" element
     */
    public java.lang.String getCodeString()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CODESTRING$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "code_string" element
     */
    public org.apache.xmlbeans.XmlString xgetCodeString()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CODESTRING$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "code_string" element
     */
    public void setCodeString(java.lang.String codeString)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CODESTRING$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CODESTRING$2);
            }
            target.setStringValue(codeString);
        }
    }
    
    /**
     * Sets (as xml) the "code_string" element
     */
    public void xsetCodeString(org.apache.xmlbeans.XmlString codeString)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CODESTRING$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CODESTRING$2);
            }
            target.set(codeString);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy