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

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

The newest version!
/*
 * XML Type:  C_BOOLEAN
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CBOOLEAN
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_BOOLEAN(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CBOOLEANImpl extends org.openehr.schemas.v1.impl.CPRIMITIVEImpl implements org.openehr.schemas.v1.CBOOLEAN
{
    private static final long serialVersionUID = 1L;
    
    public CBOOLEANImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRUEVALID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "true_valid");
    private static final javax.xml.namespace.QName FALSEVALID$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "false_valid");
    private static final javax.xml.namespace.QName ASSUMEDVALUE$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
    
    
    /**
     * Gets the "true_valid" element
     */
    public boolean getTrueValid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRUEVALID$0, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "true_valid" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetTrueValid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(TRUEVALID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "true_valid" element
     */
    public void setTrueValid(boolean trueValid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRUEVALID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRUEVALID$0);
            }
            target.setBooleanValue(trueValid);
        }
    }
    
    /**
     * Sets (as xml) the "true_valid" element
     */
    public void xsetTrueValid(org.apache.xmlbeans.XmlBoolean trueValid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(TRUEVALID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(TRUEVALID$0);
            }
            target.set(trueValid);
        }
    }
    
    /**
     * Gets the "false_valid" element
     */
    public boolean getFalseValid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FALSEVALID$2, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "false_valid" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetFalseValid()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FALSEVALID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "false_valid" element
     */
    public void setFalseValid(boolean falseValid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FALSEVALID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FALSEVALID$2);
            }
            target.setBooleanValue(falseValid);
        }
    }
    
    /**
     * Sets (as xml) the "false_valid" element
     */
    public void xsetFalseValid(org.apache.xmlbeans.XmlBoolean falseValid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FALSEVALID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(FALSEVALID$2);
            }
            target.set(falseValid);
        }
    }
    
    /**
     * Gets the "assumed_value" element
     */
    public boolean getAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$4, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "assumed_value" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ASSUMEDVALUE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "assumed_value" element
     */
    public boolean isSetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ASSUMEDVALUE$4) != 0;
        }
    }
    
    /**
     * Sets the "assumed_value" element
     */
    public void setAssumedValue(boolean assumedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSUMEDVALUE$4);
            }
            target.setBooleanValue(assumedValue);
        }
    }
    
    /**
     * Sets (as xml) the "assumed_value" element
     */
    public void xsetAssumedValue(org.apache.xmlbeans.XmlBoolean assumedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ASSUMEDVALUE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ASSUMEDVALUE$4);
            }
            target.set(assumedValue);
        }
    }
    
    /**
     * Unsets the "assumed_value" element
     */
    public void unsetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ASSUMEDVALUE$4, 0);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy