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

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

/*
 * XML Type:  C_TIME
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CTIME
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_TIME(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CTIMEImpl extends org.openehr.schemas.v1.impl.CPRIMITIVEImpl implements org.openehr.schemas.v1.CTIME
{
    private static final long serialVersionUID = 1L;
    
    public CTIMEImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PATTERN$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "pattern");
    private static final javax.xml.namespace.QName TIMEZONEVALIDITY$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "timezone_validity");
    private static final javax.xml.namespace.QName RANGE$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "range");
    private static final javax.xml.namespace.QName ASSUMEDVALUE$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
    
    
    /**
     * Gets the "pattern" element
     */
    public java.lang.String getPattern()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "pattern" element
     */
    public org.openehr.schemas.v1.TimeConstraintPattern xgetPattern()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TimeConstraintPattern target = null;
            target = (org.openehr.schemas.v1.TimeConstraintPattern)get_store().find_element_user(PATTERN$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "pattern" element
     */
    public boolean isSetPattern()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PATTERN$0) != 0;
        }
    }
    
    /**
     * Sets the "pattern" element
     */
    public void setPattern(java.lang.String pattern)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PATTERN$0);
            }
            target.setStringValue(pattern);
        }
    }
    
    /**
     * Sets (as xml) the "pattern" element
     */
    public void xsetPattern(org.openehr.schemas.v1.TimeConstraintPattern pattern)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.TimeConstraintPattern target = null;
            target = (org.openehr.schemas.v1.TimeConstraintPattern)get_store().find_element_user(PATTERN$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.TimeConstraintPattern)get_store().add_element_user(PATTERN$0);
            }
            target.set(pattern);
        }
    }
    
    /**
     * Unsets the "pattern" element
     */
    public void unsetPattern()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PATTERN$0, 0);
        }
    }
    
    /**
     * Gets the "timezone_validity" element
     */
    public java.math.BigInteger getTimezoneValidity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getBigIntegerValue();
        }
    }
    
    /**
     * Gets (as xml) the "timezone_validity" element
     */
    public org.openehr.schemas.v1.VALIDITYKIND xgetTimezoneValidity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.VALIDITYKIND target = null;
            target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "timezone_validity" element
     */
    public boolean isSetTimezoneValidity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TIMEZONEVALIDITY$2) != 0;
        }
    }
    
    /**
     * Sets the "timezone_validity" element
     */
    public void setTimezoneValidity(java.math.BigInteger timezoneValidity)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TIMEZONEVALIDITY$2);
            }
            target.setBigIntegerValue(timezoneValidity);
        }
    }
    
    /**
     * Sets (as xml) the "timezone_validity" element
     */
    public void xsetTimezoneValidity(org.openehr.schemas.v1.VALIDITYKIND timezoneValidity)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.VALIDITYKIND target = null;
            target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().find_element_user(TIMEZONEVALIDITY$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.VALIDITYKIND)get_store().add_element_user(TIMEZONEVALIDITY$2);
            }
            target.set(timezoneValidity);
        }
    }
    
    /**
     * Unsets the "timezone_validity" element
     */
    public void unsetTimezoneValidity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TIMEZONEVALIDITY$2, 0);
        }
    }
    
    /**
     * Gets the "range" element
     */
    public org.openehr.schemas.v1.IntervalOfTime getRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfTime target = null;
            target = (org.openehr.schemas.v1.IntervalOfTime)get_store().find_element_user(RANGE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "range" element
     */
    public boolean isSetRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RANGE$4) != 0;
        }
    }
    
    /**
     * Sets the "range" element
     */
    public void setRange(org.openehr.schemas.v1.IntervalOfTime range)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfTime target = null;
            target = (org.openehr.schemas.v1.IntervalOfTime)get_store().find_element_user(RANGE$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.IntervalOfTime)get_store().add_element_user(RANGE$4);
            }
            target.set(range);
        }
    }
    
    /**
     * Appends and returns a new empty "range" element
     */
    public org.openehr.schemas.v1.IntervalOfTime addNewRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.IntervalOfTime target = null;
            target = (org.openehr.schemas.v1.IntervalOfTime)get_store().add_element_user(RANGE$4);
            return target;
        }
    }
    
    /**
     * Unsets the "range" element
     */
    public void unsetRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RANGE$4, 0);
        }
    }
    
    /**
     * Gets the "assumed_value" element
     */
    public java.lang.String getAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "assumed_value" element
     */
    public org.openehr.schemas.v1.Iso8601Time xgetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.Iso8601Time target = null;
            target = (org.openehr.schemas.v1.Iso8601Time)get_store().find_element_user(ASSUMEDVALUE$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "assumed_value" element
     */
    public boolean isSetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ASSUMEDVALUE$6) != 0;
        }
    }
    
    /**
     * Sets the "assumed_value" element
     */
    public void setAssumedValue(java.lang.String assumedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSUMEDVALUE$6);
            }
            target.setStringValue(assumedValue);
        }
    }
    
    /**
     * Sets (as xml) the "assumed_value" element
     */
    public void xsetAssumedValue(org.openehr.schemas.v1.Iso8601Time assumedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.Iso8601Time target = null;
            target = (org.openehr.schemas.v1.Iso8601Time)get_store().find_element_user(ASSUMEDVALUE$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.Iso8601Time)get_store().add_element_user(ASSUMEDVALUE$6);
            }
            target.set(assumedValue);
        }
    }
    
    /**
     * Unsets the "assumed_value" element
     */
    public void unsetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ASSUMEDVALUE$6, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy