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

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

The newest version!
/*
 * XML Type:  AUDIT_DETAILS
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.AUDITDETAILS
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML AUDIT_DETAILS(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class AUDITDETAILSImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.AUDITDETAILS
{
    private static final long serialVersionUID = 1L;
    
    public AUDITDETAILSImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SYSTEMID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "system_id");
    private static final javax.xml.namespace.QName COMMITTER$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "committer");
    private static final javax.xml.namespace.QName TIMECOMMITTED$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "time_committed");
    private static final javax.xml.namespace.QName CHANGETYPE$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "change_type");
    private static final javax.xml.namespace.QName DESCRIPTION$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "description");
    
    
    /**
     * Gets the "system_id" element
     */
    public java.lang.String getSystemId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SYSTEMID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "system_id" element
     */
    public org.apache.xmlbeans.XmlString xgetSystemId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SYSTEMID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "system_id" element
     */
    public void setSystemId(java.lang.String systemId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SYSTEMID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SYSTEMID$0);
            }
            target.setStringValue(systemId);
        }
    }
    
    /**
     * Sets (as xml) the "system_id" element
     */
    public void xsetSystemId(org.apache.xmlbeans.XmlString systemId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SYSTEMID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SYSTEMID$0);
            }
            target.set(systemId);
        }
    }
    
    /**
     * Gets the "committer" element
     */
    public org.openehr.schemas.v1.PARTYPROXY getCommitter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(COMMITTER$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "committer" element
     */
    public void setCommitter(org.openehr.schemas.v1.PARTYPROXY committer)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(COMMITTER$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(COMMITTER$2);
            }
            target.set(committer);
        }
    }
    
    /**
     * Appends and returns a new empty "committer" element
     */
    public org.openehr.schemas.v1.PARTYPROXY addNewCommitter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(COMMITTER$2);
            return target;
        }
    }
    
    /**
     * Gets the "time_committed" element
     */
    public org.openehr.schemas.v1.DVDATETIME getTimeCommitted()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIMECOMMITTED$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "time_committed" element
     */
    public void setTimeCommitted(org.openehr.schemas.v1.DVDATETIME timeCommitted)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIMECOMMITTED$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIMECOMMITTED$4);
            }
            target.set(timeCommitted);
        }
    }
    
    /**
     * Appends and returns a new empty "time_committed" element
     */
    public org.openehr.schemas.v1.DVDATETIME addNewTimeCommitted()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVDATETIME target = null;
            target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIMECOMMITTED$4);
            return target;
        }
    }
    
    /**
     * Gets the "change_type" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT getChangeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CHANGETYPE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "change_type" element
     */
    public void setChangeType(org.openehr.schemas.v1.DVCODEDTEXT changeType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CHANGETYPE$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CHANGETYPE$6);
            }
            target.set(changeType);
        }
    }
    
    /**
     * Appends and returns a new empty "change_type" element
     */
    public org.openehr.schemas.v1.DVCODEDTEXT addNewChangeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVCODEDTEXT target = null;
            target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CHANGETYPE$6);
            return target;
        }
    }
    
    /**
     * Gets the "description" element
     */
    public org.openehr.schemas.v1.DVTEXT getDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(DESCRIPTION$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "description" element
     */
    public boolean isSetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESCRIPTION$8) != 0;
        }
    }
    
    /**
     * Sets the "description" element
     */
    public void setDescription(org.openehr.schemas.v1.DVTEXT description)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(DESCRIPTION$8, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(DESCRIPTION$8);
            }
            target.set(description);
        }
    }
    
    /**
     * Appends and returns a new empty "description" element
     */
    public org.openehr.schemas.v1.DVTEXT addNewDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVTEXT target = null;
            target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(DESCRIPTION$8);
            return target;
        }
    }
    
    /**
     * Unsets the "description" element
     */
    public void unsetDescription()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESCRIPTION$8, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy