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

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

/*
 * XML Type:  EXTRACT_ENTITY_IDENTIFIER
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EXTRACT_ENTITY_IDENTIFIER(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EXTRACTENTITYIDENTIFIERImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER
{
    private static final long serialVersionUID = 1L;
    
    public EXTRACTENTITYIDENTIFIERImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENTITYID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "entity_id");
    private static final javax.xml.namespace.QName SUBJECT$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "subject");
    
    
    /**
     * Gets the "entity_id" element
     */
    public org.openehr.schemas.v1.HIEROBJECTID getEntityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(ENTITYID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "entity_id" element
     */
    public boolean isSetEntityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ENTITYID$0) != 0;
        }
    }
    
    /**
     * Sets the "entity_id" element
     */
    public void setEntityId(org.openehr.schemas.v1.HIEROBJECTID entityId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(ENTITYID$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(ENTITYID$0);
            }
            target.set(entityId);
        }
    }
    
    /**
     * Appends and returns a new empty "entity_id" element
     */
    public org.openehr.schemas.v1.HIEROBJECTID addNewEntityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.HIEROBJECTID target = null;
            target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(ENTITYID$0);
            return target;
        }
    }
    
    /**
     * Unsets the "entity_id" element
     */
    public void unsetEntityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENTITYID$0, 0);
        }
    }
    
    /**
     * Gets the "subject" element
     */
    public org.openehr.schemas.v1.PARTYIDENTIFIED getSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
            target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().find_element_user(SUBJECT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "subject" element
     */
    public boolean isSetSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SUBJECT$2) != 0;
        }
    }
    
    /**
     * Sets the "subject" element
     */
    public void setSubject(org.openehr.schemas.v1.PARTYIDENTIFIED subject)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
            target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().find_element_user(SUBJECT$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().add_element_user(SUBJECT$2);
            }
            target.set(subject);
        }
    }
    
    /**
     * Appends and returns a new empty "subject" element
     */
    public org.openehr.schemas.v1.PARTYIDENTIFIED addNewSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
            target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().add_element_user(SUBJECT$2);
            return target;
        }
    }
    
    /**
     * Unsets the "subject" element
     */
    public void unsetSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SUBJECT$2, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy