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

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

The newest version!
/*
 * XML Type:  DV_ENCAPSULATED
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.DVENCAPSULATED
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML DV_ENCAPSULATED(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class DVENCAPSULATEDImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVENCAPSULATED
{
    private static final long serialVersionUID = 1L;
    
    public DVENCAPSULATEDImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CHARSET$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "charset");
    private static final javax.xml.namespace.QName LANGUAGE$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
    
    
    /**
     * Gets the "charset" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getCharset()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(CHARSET$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "charset" element
     */
    public boolean isSetCharset()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHARSET$0) != 0;
        }
    }
    
    /**
     * Sets the "charset" element
     */
    public void setCharset(org.openehr.schemas.v1.CODEPHRASE charset)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(CHARSET$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(CHARSET$0);
            }
            target.set(charset);
        }
    }
    
    /**
     * Appends and returns a new empty "charset" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewCharset()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(CHARSET$0);
            return target;
        }
    }
    
    /**
     * Unsets the "charset" element
     */
    public void unsetCharset()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHARSET$0, 0);
        }
    }
    
    /**
     * Gets the "language" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "language" element
     */
    public boolean isSetLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LANGUAGE$2) != 0;
        }
    }
    
    /**
     * Sets the "language" element
     */
    public void setLanguage(org.openehr.schemas.v1.CODEPHRASE language)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$2);
            }
            target.set(language);
        }
    }
    
    /**
     * Appends and returns a new empty "language" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$2);
            return target;
        }
    }
    
    /**
     * Unsets the "language" element
     */
    public void unsetLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LANGUAGE$2, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy