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

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

The newest version!
/*
 * XML Type:  OPERATIONAL_TEMPLATE
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.OPERATIONALTEMPLATE
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML OPERATIONAL_TEMPLATE(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class OPERATIONALTEMPLATEImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.OPERATIONALTEMPLATE
{
    private static final long serialVersionUID = 1L;
    
    public OPERATIONALTEMPLATEImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LANGUAGE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
    private static final javax.xml.namespace.QName ISCONTROLLED$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "is_controlled");
    private static final javax.xml.namespace.QName DESCRIPTION$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "description");
    private static final javax.xml.namespace.QName REVISIONHISTORY$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "revision_history");
    private static final javax.xml.namespace.QName UID$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "uid");
    private static final javax.xml.namespace.QName TEMPLATEID$10 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "template_id");
    private static final javax.xml.namespace.QName CONCEPT$12 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "concept");
    private static final javax.xml.namespace.QName DEFINITION$14 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "definition");
    
    
    /**
     * 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$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * 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$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
            }
            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$0);
            return target;
        }
    }
    
    /**
     * Gets the "is_controlled" element
     */
    public boolean getIsControlled()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISCONTROLLED$2, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "is_controlled" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetIsControlled()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISCONTROLLED$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "is_controlled" element
     */
    public boolean isSetIsControlled()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ISCONTROLLED$2) != 0;
        }
    }
    
    /**
     * Sets the "is_controlled" element
     */
    public void setIsControlled(boolean isControlled)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISCONTROLLED$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISCONTROLLED$2);
            }
            target.setBooleanValue(isControlled);
        }
    }
    
    /**
     * Sets (as xml) the "is_controlled" element
     */
    public void xsetIsControlled(org.apache.xmlbeans.XmlBoolean isControlled)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISCONTROLLED$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ISCONTROLLED$2);
            }
            target.set(isControlled);
        }
    }
    
    /**
     * Unsets the "is_controlled" element
     */
    public void unsetIsControlled()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ISCONTROLLED$2, 0);
        }
    }
    
    /**
     * Gets the "description" element
     */
    public org.openehr.schemas.v1.RESOURCEDESCRIPTION getDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.RESOURCEDESCRIPTION target = null;
            target = (org.openehr.schemas.v1.RESOURCEDESCRIPTION)get_store().find_element_user(DESCRIPTION$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "description" element
     */
    public boolean isSetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESCRIPTION$4) != 0;
        }
    }
    
    /**
     * Sets the "description" element
     */
    public void setDescription(org.openehr.schemas.v1.RESOURCEDESCRIPTION description)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.RESOURCEDESCRIPTION target = null;
            target = (org.openehr.schemas.v1.RESOURCEDESCRIPTION)get_store().find_element_user(DESCRIPTION$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.RESOURCEDESCRIPTION)get_store().add_element_user(DESCRIPTION$4);
            }
            target.set(description);
        }
    }
    
    /**
     * Appends and returns a new empty "description" element
     */
    public org.openehr.schemas.v1.RESOURCEDESCRIPTION addNewDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.RESOURCEDESCRIPTION target = null;
            target = (org.openehr.schemas.v1.RESOURCEDESCRIPTION)get_store().add_element_user(DESCRIPTION$4);
            return target;
        }
    }
    
    /**
     * Unsets the "description" element
     */
    public void unsetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESCRIPTION$4, 0);
        }
    }
    
    /**
     * Gets the "revision_history" element
     */
    public org.openehr.schemas.v1.REVISIONHISTORY getRevisionHistory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.REVISIONHISTORY target = null;
            target = (org.openehr.schemas.v1.REVISIONHISTORY)get_store().find_element_user(REVISIONHISTORY$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "revision_history" element
     */
    public boolean isSetRevisionHistory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REVISIONHISTORY$6) != 0;
        }
    }
    
    /**
     * Sets the "revision_history" element
     */
    public void setRevisionHistory(org.openehr.schemas.v1.REVISIONHISTORY revisionHistory)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.REVISIONHISTORY target = null;
            target = (org.openehr.schemas.v1.REVISIONHISTORY)get_store().find_element_user(REVISIONHISTORY$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.REVISIONHISTORY)get_store().add_element_user(REVISIONHISTORY$6);
            }
            target.set(revisionHistory);
        }
    }
    
    /**
     * Appends and returns a new empty "revision_history" element
     */
    public org.openehr.schemas.v1.REVISIONHISTORY addNewRevisionHistory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.REVISIONHISTORY target = null;
            target = (org.openehr.schemas.v1.REVISIONHISTORY)get_store().add_element_user(REVISIONHISTORY$6);
            return target;
        }
    }
    
    /**
     * Unsets the "revision_history" element
     */
    public void unsetRevisionHistory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REVISIONHISTORY$6, 0);
        }
    }
    
    /**
     * Gets the "uid" element
     */
    public org.openehr.schemas.v1.HIEROBJECTID getUid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(UID$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "uid" element
     */
    public boolean isSetUid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(UID$8) != 0;
        }
    }
    
    /**
     * Sets the "uid" element
     */
    public void setUid(org.openehr.schemas.v1.HIEROBJECTID uid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(UID$8, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(UID$8);
            }
            target.set(uid);
        }
    }
    
    /**
     * Appends and returns a new empty "uid" element
     */
    public org.openehr.schemas.v1.HIEROBJECTID addNewUid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(UID$8);
            return target;
        }
    }
    
    /**
     * Unsets the "uid" element
     */
    public void unsetUid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UID$8, 0);
        }
    }
    
    /**
     * Gets the "template_id" element
     */
    public org.openehr.schemas.v1.TEMPLATEID getTemplateId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TEMPLATEID target = null;
            target = (org.openehr.schemas.v1.TEMPLATEID)get_store().find_element_user(TEMPLATEID$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "template_id" element
     */
    public void setTemplateId(org.openehr.schemas.v1.TEMPLATEID templateId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TEMPLATEID target = null;
            target = (org.openehr.schemas.v1.TEMPLATEID)get_store().find_element_user(TEMPLATEID$10, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.TEMPLATEID)get_store().add_element_user(TEMPLATEID$10);
            }
            target.set(templateId);
        }
    }
    
    /**
     * Appends and returns a new empty "template_id" element
     */
    public org.openehr.schemas.v1.TEMPLATEID addNewTemplateId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TEMPLATEID target = null;
            target = (org.openehr.schemas.v1.TEMPLATEID)get_store().add_element_user(TEMPLATEID$10);
            return target;
        }
    }
    
    /**
     * Gets the "concept" element
     */
    public java.lang.String getConcept()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONCEPT$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "concept" element
     */
    public org.apache.xmlbeans.XmlString xgetConcept()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONCEPT$12, 0);
            return target;
        }
    }
    
    /**
     * Sets the "concept" element
     */
    public void setConcept(java.lang.String concept)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONCEPT$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONCEPT$12);
            }
            target.setStringValue(concept);
        }
    }
    
    /**
     * Sets (as xml) the "concept" element
     */
    public void xsetConcept(org.apache.xmlbeans.XmlString concept)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONCEPT$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CONCEPT$12);
            }
            target.set(concept);
        }
    }
    
    /**
     * Gets the "definition" element
     */
    public org.openehr.schemas.v1.CARCHETYPEROOT getDefinition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CARCHETYPEROOT target = null;
            target = (org.openehr.schemas.v1.CARCHETYPEROOT)get_store().find_element_user(DEFINITION$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "definition" element
     */
    public void setDefinition(org.openehr.schemas.v1.CARCHETYPEROOT definition)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CARCHETYPEROOT target = null;
            target = (org.openehr.schemas.v1.CARCHETYPEROOT)get_store().find_element_user(DEFINITION$14, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CARCHETYPEROOT)get_store().add_element_user(DEFINITION$14);
            }
            target.set(definition);
        }
    }
    
    /**
     * Appends and returns a new empty "definition" element
     */
    public org.openehr.schemas.v1.CARCHETYPEROOT addNewDefinition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CARCHETYPEROOT target = null;
            target = (org.openehr.schemas.v1.CARCHETYPEROOT)get_store().add_element_user(DEFINITION$14);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy