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

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

The newest version!
/*
 * XML Type:  C_OBJECT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.COBJECT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_OBJECT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class COBJECTImpl extends org.openehr.schemas.v1.impl.ARCHETYPECONSTRAINTImpl implements org.openehr.schemas.v1.COBJECT
{
    private static final long serialVersionUID = 1L;
    
    public COBJECTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RMTYPENAME$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "rm_type_name");
    private static final javax.xml.namespace.QName OCCURRENCES$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "occurrences");
    private static final javax.xml.namespace.QName NODEID$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "node_id");
    
    
    /**
     * Gets the "rm_type_name" element
     */
    public java.lang.String getRmTypeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RMTYPENAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "rm_type_name" element
     */
    public org.apache.xmlbeans.XmlString xgetRmTypeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RMTYPENAME$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rm_type_name" element
     */
    public void setRmTypeName(java.lang.String rmTypeName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RMTYPENAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RMTYPENAME$0);
            }
            target.setStringValue(rmTypeName);
        }
    }
    
    /**
     * Sets (as xml) the "rm_type_name" element
     */
    public void xsetRmTypeName(org.apache.xmlbeans.XmlString rmTypeName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RMTYPENAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RMTYPENAME$0);
            }
            target.set(rmTypeName);
        }
    }
    
    /**
     * Gets the "occurrences" element
     */
    public org.openehr.schemas.v1.IntervalOfInteger getOccurrences()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfInteger target = null;
            target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(OCCURRENCES$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "occurrences" element
     */
    public void setOccurrences(org.openehr.schemas.v1.IntervalOfInteger occurrences)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfInteger target = null;
            target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(OCCURRENCES$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(OCCURRENCES$2);
            }
            target.set(occurrences);
        }
    }
    
    /**
     * Appends and returns a new empty "occurrences" element
     */
    public org.openehr.schemas.v1.IntervalOfInteger addNewOccurrences()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfInteger target = null;
            target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(OCCURRENCES$2);
            return target;
        }
    }
    
    /**
     * Gets the "node_id" element
     */
    public java.lang.String getNodeId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "node_id" element
     */
    public org.apache.xmlbeans.XmlString xgetNodeId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NODEID$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "node_id" element
     */
    public void setNodeId(java.lang.String nodeId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NODEID$4);
            }
            target.setStringValue(nodeId);
        }
    }
    
    /**
     * Sets (as xml) the "node_id" element
     */
    public void xsetNodeId(org.apache.xmlbeans.XmlString nodeId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NODEID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NODEID$4);
            }
            target.set(nodeId);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy