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

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

/*
 * XML Type:  IntervalOfInteger
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.IntervalOfInteger
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML IntervalOfInteger(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class IntervalOfIntegerImpl extends org.openehr.schemas.v1.impl.IntervalImpl implements org.openehr.schemas.v1.IntervalOfInteger
{
    private static final long serialVersionUID = 1L;
    
    public IntervalOfIntegerImpl(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");
    
    
    /**
     * Gets the "lower" element
     */
    public int getLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWER$0, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "lower" element
     */
    public org.apache.xmlbeans.XmlInt xgetLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LOWER$0, 0);
            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(int lower)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOWER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOWER$0);
            }
            target.setIntValue(lower);
        }
    }
    
    /**
     * Sets (as xml) the "lower" element
     */
    public void xsetLower(org.apache.xmlbeans.XmlInt lower)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LOWER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LOWER$0);
            }
            target.set(lower);
        }
    }
    
    /**
     * Unsets the "lower" element
     */
    public void unsetLower()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOWER$0, 0);
        }
    }
    
    /**
     * Gets the "upper" element
     */
    public int getUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPER$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "upper" element
     */
    public org.apache.xmlbeans.XmlInt xgetUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(UPPER$2, 0);
            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(int upper)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UPPER$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UPPER$2);
            }
            target.setIntValue(upper);
        }
    }
    
    /**
     * Sets (as xml) the "upper" element
     */
    public void xsetUpper(org.apache.xmlbeans.XmlInt upper)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(UPPER$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(UPPER$2);
            }
            target.set(upper);
        }
    }
    
    /**
     * Unsets the "upper" element
     */
    public void unsetUpper()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UPPER$2, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy