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

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

The newest version!
/*
 * XML Type:  ATTESTATION
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ATTESTATION
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML ATTESTATION(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class ATTESTATIONImpl extends org.openehr.schemas.v1.impl.AUDITDETAILSImpl implements org.openehr.schemas.v1.ATTESTATION
{
    private static final long serialVersionUID = 1L;
    
    public ATTESTATIONImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ATTESTEDVIEW$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "attested_view");
    private static final javax.xml.namespace.QName PROOF$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "proof");
    private static final javax.xml.namespace.QName ITEMS$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
    private static final javax.xml.namespace.QName REASON$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "reason");
    private static final javax.xml.namespace.QName ISPENDING$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "is_pending");
    
    
    /**
     * Gets the "attested_view" element
     */
    public org.openehr.schemas.v1.DVMULTIMEDIA getAttestedView()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVMULTIMEDIA target = null;
            target = (org.openehr.schemas.v1.DVMULTIMEDIA)get_store().find_element_user(ATTESTEDVIEW$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "attested_view" element
     */
    public boolean isSetAttestedView()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ATTESTEDVIEW$0) != 0;
        }
    }
    
    /**
     * Sets the "attested_view" element
     */
    public void setAttestedView(org.openehr.schemas.v1.DVMULTIMEDIA attestedView)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVMULTIMEDIA target = null;
            target = (org.openehr.schemas.v1.DVMULTIMEDIA)get_store().find_element_user(ATTESTEDVIEW$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVMULTIMEDIA)get_store().add_element_user(ATTESTEDVIEW$0);
            }
            target.set(attestedView);
        }
    }
    
    /**
     * Appends and returns a new empty "attested_view" element
     */
    public org.openehr.schemas.v1.DVMULTIMEDIA addNewAttestedView()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVMULTIMEDIA target = null;
            target = (org.openehr.schemas.v1.DVMULTIMEDIA)get_store().add_element_user(ATTESTEDVIEW$0);
            return target;
        }
    }
    
    /**
     * Unsets the "attested_view" element
     */
    public void unsetAttestedView()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ATTESTEDVIEW$0, 0);
        }
    }
    
    /**
     * Gets the "proof" element
     */
    public java.lang.String getProof()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROOF$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "proof" element
     */
    public org.apache.xmlbeans.XmlString xgetProof()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROOF$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "proof" element
     */
    public boolean isSetProof()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PROOF$2) != 0;
        }
    }
    
    /**
     * Sets the "proof" element
     */
    public void setProof(java.lang.String proof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROOF$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROOF$2);
            }
            target.setStringValue(proof);
        }
    }
    
    /**
     * Sets (as xml) the "proof" element
     */
    public void xsetProof(org.apache.xmlbeans.XmlString proof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROOF$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROOF$2);
            }
            target.set(proof);
        }
    }
    
    /**
     * Unsets the "proof" element
     */
    public void unsetProof()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PROOF$2, 0);
        }
    }
    
    /**
     * Gets array of all "items" elements
     */
    public org.openehr.schemas.v1.DVEHRURI[] getItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ITEMS$4, targetList);
            org.openehr.schemas.v1.DVEHRURI[] result = new org.openehr.schemas.v1.DVEHRURI[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "items" element
     */
    public org.openehr.schemas.v1.DVEHRURI getItemsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVEHRURI target = null;
            target = (org.openehr.schemas.v1.DVEHRURI)get_store().find_element_user(ITEMS$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "items" element
     */
    public int sizeOfItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ITEMS$4);
        }
    }
    
    /**
     * Sets array of all "items" element
     */
    public void setItemsArray(org.openehr.schemas.v1.DVEHRURI[] itemsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(itemsArray, ITEMS$4);
        }
    }
    
    /**
     * Sets ith "items" element
     */
    public void setItemsArray(int i, org.openehr.schemas.v1.DVEHRURI items)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVEHRURI target = null;
            target = (org.openehr.schemas.v1.DVEHRURI)get_store().find_element_user(ITEMS$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(items);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "items" element
     */
    public org.openehr.schemas.v1.DVEHRURI insertNewItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVEHRURI target = null;
            target = (org.openehr.schemas.v1.DVEHRURI)get_store().insert_element_user(ITEMS$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "items" element
     */
    public org.openehr.schemas.v1.DVEHRURI addNewItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVEHRURI target = null;
            target = (org.openehr.schemas.v1.DVEHRURI)get_store().add_element_user(ITEMS$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "items" element
     */
    public void removeItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ITEMS$4, i);
        }
    }
    
    /**
     * Gets the "reason" element
     */
    public org.openehr.schemas.v1.DVTEXT getReason()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(REASON$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "reason" element
     */
    public void setReason(org.openehr.schemas.v1.DVTEXT reason)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(REASON$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(REASON$6);
            }
            target.set(reason);
        }
    }
    
    /**
     * Appends and returns a new empty "reason" element
     */
    public org.openehr.schemas.v1.DVTEXT addNewReason()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(REASON$6);
            return target;
        }
    }
    
    /**
     * Gets the "is_pending" element
     */
    public boolean getIsPending()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISPENDING$8, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "is_pending" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetIsPending()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISPENDING$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "is_pending" element
     */
    public void setIsPending(boolean isPending)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISPENDING$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISPENDING$8);
            }
            target.setBooleanValue(isPending);
        }
    }
    
    /**
     * Sets (as xml) the "is_pending" element
     */
    public void xsetIsPending(org.apache.xmlbeans.XmlBoolean isPending)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISPENDING$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ISPENDING$8);
            }
            target.set(isPending);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy