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

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

/*
 * XML Type:  DV_INTERVAL
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.DVINTERVAL
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML DV_INTERVAL(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class DVINTERVALImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVINTERVAL
{
    private static final long serialVersionUID = 1L;
    
    public DVINTERVALImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LOWER$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "lower");
    private static final javax.xml.namespace.QName UPPER$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "upper");
    private static final javax.xml.namespace.QName LOWERINCLUDED$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "lower_included");
    private static final javax.xml.namespace.QName UPPERINCLUDED$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "upper_included");
    private static final javax.xml.namespace.QName LOWERUNBOUNDED$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "lower_unbounded");
    private static final javax.xml.namespace.QName UPPERUNBOUNDED$10 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "upper_unbounded");
    
    
    /**
     * Gets the "lower" element
     */
    public org.openehr.schemas.v1.DVORDERED getLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().find_element_user(LOWER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "lower" element
     */
    public boolean isSetLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOWER$0) != 0;
        }
    }
    
    /**
     * Sets the "lower" element
     */
    public void setLower(org.openehr.schemas.v1.DVORDERED lower)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().find_element_user(LOWER$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVORDERED)get_store().add_element_user(LOWER$0);
            }
            target.set(lower);
        }
    }
    
    /**
     * Appends and returns a new empty "lower" element
     */
    public org.openehr.schemas.v1.DVORDERED addNewLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().add_element_user(LOWER$0);
            return target;
        }
    }
    
    /**
     * Unsets the "lower" element
     */
    public void unsetLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOWER$0, 0);
        }
    }
    
    /**
     * Gets the "upper" element
     */
    public org.openehr.schemas.v1.DVORDERED getUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().find_element_user(UPPER$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "upper" element
     */
    public boolean isSetUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(UPPER$2) != 0;
        }
    }
    
    /**
     * Sets the "upper" element
     */
    public void setUpper(org.openehr.schemas.v1.DVORDERED upper)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().find_element_user(UPPER$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVORDERED)get_store().add_element_user(UPPER$2);
            }
            target.set(upper);
        }
    }
    
    /**
     * Appends and returns a new empty "upper" element
     */
    public org.openehr.schemas.v1.DVORDERED addNewUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVORDERED target = null;
            target = (org.openehr.schemas.v1.DVORDERED)get_store().add_element_user(UPPER$2);
            return target;
        }
    }
    
    /**
     * Unsets the "upper" element
     */
    public void unsetUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UPPER$2, 0);
        }
    }
    
    /**
     * Gets the "lower_included" element
     */
    public boolean getLowerIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWERINCLUDED$4, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "lower_included" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetLowerIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LOWERINCLUDED$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "lower_included" element
     */
    public boolean isSetLowerIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOWERINCLUDED$4) != 0;
        }
    }
    
    /**
     * Sets the "lower_included" element
     */
    public void setLowerIncluded(boolean lowerIncluded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWERINCLUDED$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOWERINCLUDED$4);
            }
            target.setBooleanValue(lowerIncluded);
        }
    }
    
    /**
     * Sets (as xml) the "lower_included" element
     */
    public void xsetLowerIncluded(org.apache.xmlbeans.XmlBoolean lowerIncluded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LOWERINCLUDED$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(LOWERINCLUDED$4);
            }
            target.set(lowerIncluded);
        }
    }
    
    /**
     * Unsets the "lower_included" element
     */
    public void unsetLowerIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOWERINCLUDED$4, 0);
        }
    }
    
    /**
     * Gets the "upper_included" element
     */
    public boolean getUpperIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPERINCLUDED$6, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "upper_included" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetUpperIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(UPPERINCLUDED$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "upper_included" element
     */
    public boolean isSetUpperIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(UPPERINCLUDED$6) != 0;
        }
    }
    
    /**
     * Sets the "upper_included" element
     */
    public void setUpperIncluded(boolean upperIncluded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPERINCLUDED$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UPPERINCLUDED$6);
            }
            target.setBooleanValue(upperIncluded);
        }
    }
    
    /**
     * Sets (as xml) the "upper_included" element
     */
    public void xsetUpperIncluded(org.apache.xmlbeans.XmlBoolean upperIncluded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(UPPERINCLUDED$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(UPPERINCLUDED$6);
            }
            target.set(upperIncluded);
        }
    }
    
    /**
     * Unsets the "upper_included" element
     */
    public void unsetUpperIncluded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UPPERINCLUDED$6, 0);
        }
    }
    
    /**
     * Gets the "lower_unbounded" element
     */
    public boolean getLowerUnbounded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWERUNBOUNDED$8, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "lower_unbounded" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetLowerUnbounded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LOWERUNBOUNDED$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "lower_unbounded" element
     */
    public void setLowerUnbounded(boolean lowerUnbounded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWERUNBOUNDED$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOWERUNBOUNDED$8);
            }
            target.setBooleanValue(lowerUnbounded);
        }
    }
    
    /**
     * Sets (as xml) the "lower_unbounded" element
     */
    public void xsetLowerUnbounded(org.apache.xmlbeans.XmlBoolean lowerUnbounded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LOWERUNBOUNDED$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(LOWERUNBOUNDED$8);
            }
            target.set(lowerUnbounded);
        }
    }
    
    /**
     * Gets the "upper_unbounded" element
     */
    public boolean getUpperUnbounded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPERUNBOUNDED$10, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "upper_unbounded" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetUpperUnbounded()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(UPPERUNBOUNDED$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "upper_unbounded" element
     */
    public void setUpperUnbounded(boolean upperUnbounded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPERUNBOUNDED$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UPPERUNBOUNDED$10);
            }
            target.setBooleanValue(upperUnbounded);
        }
    }
    
    /**
     * Sets (as xml) the "upper_unbounded" element
     */
    public void xsetUpperUnbounded(org.apache.xmlbeans.XmlBoolean upperUnbounded)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(UPPERUNBOUNDED$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(UPPERUNBOUNDED$10);
            }
            target.set(upperUnbounded);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy