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

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

The newest version!
/*
 * XML Type:  INSTRUCTION_DETAILS
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.INSTRUCTIONDETAILS
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML INSTRUCTION_DETAILS(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class INSTRUCTIONDETAILSImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.INSTRUCTIONDETAILS
{
    private static final long serialVersionUID = 1L;
    
    public INSTRUCTIONDETAILSImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INSTRUCTIONID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "instruction_id");
    private static final javax.xml.namespace.QName ACTIVITYID$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "activity_id");
    private static final javax.xml.namespace.QName WFDETAILS$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "wf_details");
    
    
    /**
     * Gets the "instruction_id" element
     */
    public org.openehr.schemas.v1.LOCATABLEREF getInstructionId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLEREF target = null;
            target = (org.openehr.schemas.v1.LOCATABLEREF)get_store().find_element_user(INSTRUCTIONID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "instruction_id" element
     */
    public void setInstructionId(org.openehr.schemas.v1.LOCATABLEREF instructionId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLEREF target = null;
            target = (org.openehr.schemas.v1.LOCATABLEREF)get_store().find_element_user(INSTRUCTIONID$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.LOCATABLEREF)get_store().add_element_user(INSTRUCTIONID$0);
            }
            target.set(instructionId);
        }
    }
    
    /**
     * Appends and returns a new empty "instruction_id" element
     */
    public org.openehr.schemas.v1.LOCATABLEREF addNewInstructionId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.LOCATABLEREF target = null;
            target = (org.openehr.schemas.v1.LOCATABLEREF)get_store().add_element_user(INSTRUCTIONID$0);
            return target;
        }
    }
    
    /**
     * Gets the "activity_id" element
     */
    public java.lang.String getActivityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTIVITYID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "activity_id" element
     */
    public org.openehr.schemas.v1.AtCode xgetActivityId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AtCode target = null;
            target = (org.openehr.schemas.v1.AtCode)get_store().find_element_user(ACTIVITYID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "activity_id" element
     */
    public void setActivityId(java.lang.String activityId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTIVITYID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACTIVITYID$2);
            }
            target.setStringValue(activityId);
        }
    }
    
    /**
     * Sets (as xml) the "activity_id" element
     */
    public void xsetActivityId(org.openehr.schemas.v1.AtCode activityId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AtCode target = null;
            target = (org.openehr.schemas.v1.AtCode)get_store().find_element_user(ACTIVITYID$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.AtCode)get_store().add_element_user(ACTIVITYID$2);
            }
            target.set(activityId);
        }
    }
    
    /**
     * Gets the "wf_details" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE getWfDetails()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(WFDETAILS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "wf_details" element
     */
    public boolean isSetWfDetails()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WFDETAILS$4) != 0;
        }
    }
    
    /**
     * Sets the "wf_details" element
     */
    public void setWfDetails(org.openehr.schemas.v1.ITEMSTRUCTURE wfDetails)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(WFDETAILS$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(WFDETAILS$4);
            }
            target.set(wfDetails);
        }
    }
    
    /**
     * Appends and returns a new empty "wf_details" element
     */
    public org.openehr.schemas.v1.ITEMSTRUCTURE addNewWfDetails()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
            target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(WFDETAILS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "wf_details" element
     */
    public void unsetWfDetails()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WFDETAILS$4, 0);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy