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

openEHR.v1.template.impl.DurationConstraintImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  durationConstraint
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.DurationConstraint
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML durationConstraint(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class DurationConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.DurationConstraint
{
    private static final long serialVersionUID = 1L;
    
    public DurationConstraintImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PATTERN$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "pattern");
    private static final javax.xml.namespace.QName MAXMAGNITUDE$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "maxMagnitude");
    private static final javax.xml.namespace.QName MINMAGNITUDE$4 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "minMagnitude");
    private static final javax.xml.namespace.QName INCLUDESMAXIMUM$6 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "includesMaximum");
    private static final javax.xml.namespace.QName INCLUDESMINIMUM$8 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "includesMinimum");
    
    
    /**
     * 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.apache.xmlbeans.XmlString xgetPattern()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PATTERN$0, 0);
            return target;
        }
    }
    
    /**
     * 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.apache.xmlbeans.XmlString pattern)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PATTERN$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PATTERN$0);
            }
            target.set(pattern);
        }
    }
    
    /**
     * Gets the "maxMagnitude" element
     */
    public java.lang.String getMaxMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMAGNITUDE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "maxMagnitude" element
     */
    public org.apache.xmlbeans.XmlString xgetMaxMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MAXMAGNITUDE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "maxMagnitude" element
     */
    public boolean isSetMaxMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MAXMAGNITUDE$2) != 0;
        }
    }
    
    /**
     * Sets the "maxMagnitude" element
     */
    public void setMaxMagnitude(java.lang.String maxMagnitude)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMAGNITUDE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXMAGNITUDE$2);
            }
            target.setStringValue(maxMagnitude);
        }
    }
    
    /**
     * Sets (as xml) the "maxMagnitude" element
     */
    public void xsetMaxMagnitude(org.apache.xmlbeans.XmlString maxMagnitude)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MAXMAGNITUDE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MAXMAGNITUDE$2);
            }
            target.set(maxMagnitude);
        }
    }
    
    /**
     * Unsets the "maxMagnitude" element
     */
    public void unsetMaxMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MAXMAGNITUDE$2, 0);
        }
    }
    
    /**
     * Gets the "minMagnitude" element
     */
    public java.lang.String getMinMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINMAGNITUDE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "minMagnitude" element
     */
    public org.apache.xmlbeans.XmlString xgetMinMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MINMAGNITUDE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "minMagnitude" element
     */
    public boolean isSetMinMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MINMAGNITUDE$4) != 0;
        }
    }
    
    /**
     * Sets the "minMagnitude" element
     */
    public void setMinMagnitude(java.lang.String minMagnitude)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINMAGNITUDE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINMAGNITUDE$4);
            }
            target.setStringValue(minMagnitude);
        }
    }
    
    /**
     * Sets (as xml) the "minMagnitude" element
     */
    public void xsetMinMagnitude(org.apache.xmlbeans.XmlString minMagnitude)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MINMAGNITUDE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MINMAGNITUDE$4);
            }
            target.set(minMagnitude);
        }
    }
    
    /**
     * Unsets the "minMagnitude" element
     */
    public void unsetMinMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MINMAGNITUDE$4, 0);
        }
    }
    
    /**
     * Gets the "includesMaximum" element
     */
    public boolean getIncludesMaximum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMAXIMUM$6, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "includesMaximum" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetIncludesMaximum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMAXIMUM$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "includesMaximum" element
     */
    public void setIncludesMaximum(boolean includesMaximum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMAXIMUM$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDESMAXIMUM$6);
            }
            target.setBooleanValue(includesMaximum);
        }
    }
    
    /**
     * Sets (as xml) the "includesMaximum" element
     */
    public void xsetIncludesMaximum(org.apache.xmlbeans.XmlBoolean includesMaximum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMAXIMUM$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(INCLUDESMAXIMUM$6);
            }
            target.set(includesMaximum);
        }
    }
    
    /**
     * Gets the "includesMinimum" element
     */
    public boolean getIncludesMinimum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMINIMUM$8, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "includesMinimum" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetIncludesMinimum()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMINIMUM$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "includesMinimum" element
     */
    public void setIncludesMinimum(boolean includesMinimum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMINIMUM$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDESMINIMUM$8);
            }
            target.setBooleanValue(includesMinimum);
        }
    }
    
    /**
     * Sets (as xml) the "includesMinimum" element
     */
    public void xsetIncludesMinimum(org.apache.xmlbeans.XmlBoolean includesMinimum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMINIMUM$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(INCLUDESMINIMUM$8);
            }
            target.set(includesMinimum);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy