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

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

/*
 * XML Type:  DV_TEMPORAL
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.DVTEMPORAL
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML DV_TEMPORAL(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class DVTEMPORALImpl extends org.openehr.schemas.v1.impl.DVQUANTIFIEDImpl implements org.openehr.schemas.v1.DVTEMPORAL
{
    private static final long serialVersionUID = 1L;
    
    public DVTEMPORALImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ACCURACY$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "accuracy");
    
    
    /**
     * Gets the "accuracy" element
     */
    public org.openehr.schemas.v1.DVDURATION getAccuracy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDURATION target = null;
            target = (org.openehr.schemas.v1.DVDURATION)get_store().find_element_user(ACCURACY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "accuracy" element
     */
    public boolean isSetAccuracy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ACCURACY$0) != 0;
        }
    }
    
    /**
     * Sets the "accuracy" element
     */
    public void setAccuracy(org.openehr.schemas.v1.DVDURATION accuracy)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDURATION target = null;
            target = (org.openehr.schemas.v1.DVDURATION)get_store().find_element_user(ACCURACY$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVDURATION)get_store().add_element_user(ACCURACY$0);
            }
            target.set(accuracy);
        }
    }
    
    /**
     * Appends and returns a new empty "accuracy" element
     */
    public org.openehr.schemas.v1.DVDURATION addNewAccuracy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDURATION target = null;
            target = (org.openehr.schemas.v1.DVDURATION)get_store().add_element_user(ACCURACY$0);
            return target;
        }
    }
    
    /**
     * Unsets the "accuracy" element
     */
    public void unsetAccuracy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ACCURACY$0, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy