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

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

The newest version!
/*
 * XML Type:  ELEMENT
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.ELEMENT
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML ELEMENT(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class ELEMENTImpl extends openEHR.v1.template.impl.ITEMImpl implements openEHR.v1.template.ELEMENT
{
    private static final long serialVersionUID = 1L;
    
    public ELEMENTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DATAVALUECONSTRAINT$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "datavalueConstraint");
    private static final javax.xml.namespace.QName NULLFLAVORCONSTRAINT$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "nullFlavorConstraint");
    
    
    /**
     * Gets the "datavalueConstraint" element
     */
    public openEHR.v1.template.ValueConstraint getDatavalueConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ValueConstraint target = null;
            target = (openEHR.v1.template.ValueConstraint)get_store().find_element_user(DATAVALUECONSTRAINT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "datavalueConstraint" element
     */
    public boolean isSetDatavalueConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DATAVALUECONSTRAINT$0) != 0;
        }
    }
    
    /**
     * Sets the "datavalueConstraint" element
     */
    public void setDatavalueConstraint(openEHR.v1.template.ValueConstraint datavalueConstraint)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ValueConstraint target = null;
            target = (openEHR.v1.template.ValueConstraint)get_store().find_element_user(DATAVALUECONSTRAINT$0, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.ValueConstraint)get_store().add_element_user(DATAVALUECONSTRAINT$0);
            }
            target.set(datavalueConstraint);
        }
    }
    
    /**
     * Appends and returns a new empty "datavalueConstraint" element
     */
    public openEHR.v1.template.ValueConstraint addNewDatavalueConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ValueConstraint target = null;
            target = (openEHR.v1.template.ValueConstraint)get_store().add_element_user(DATAVALUECONSTRAINT$0);
            return target;
        }
    }
    
    /**
     * Unsets the "datavalueConstraint" element
     */
    public void unsetDatavalueConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DATAVALUECONSTRAINT$0, 0);
        }
    }
    
    /**
     * Gets the "nullFlavorConstraint" element
     */
    public openEHR.v1.template.TextConstraint getNullFlavorConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(NULLFLAVORCONSTRAINT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "nullFlavorConstraint" element
     */
    public boolean isSetNullFlavorConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NULLFLAVORCONSTRAINT$2) != 0;
        }
    }
    
    /**
     * Sets the "nullFlavorConstraint" element
     */
    public void setNullFlavorConstraint(openEHR.v1.template.TextConstraint nullFlavorConstraint)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(NULLFLAVORCONSTRAINT$2, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(NULLFLAVORCONSTRAINT$2);
            }
            target.set(nullFlavorConstraint);
        }
    }
    
    /**
     * Appends and returns a new empty "nullFlavorConstraint" element
     */
    public openEHR.v1.template.TextConstraint addNewNullFlavorConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(NULLFLAVORCONSTRAINT$2);
            return target;
        }
    }
    
    /**
     * Unsets the "nullFlavorConstraint" element
     */
    public void unsetNullFlavorConstraint()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NULLFLAVORCONSTRAINT$2, 0);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy