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

openEHR.v1.template.impl.CODEPHRASEImpl Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy