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

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

/*
 * XML Type:  STATE_MACHINE
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.STATEMACHINE
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML STATE_MACHINE(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class STATEMACHINEImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.STATEMACHINE
{
    private static final long serialVersionUID = 1L;
    
    public STATEMACHINEImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STATES$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "states");
    
    
    /**
     * Gets array of all "states" elements
     */
    public org.openehr.schemas.v1.STATE[] getStatesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(STATES$0, targetList);
            org.openehr.schemas.v1.STATE[] result = new org.openehr.schemas.v1.STATE[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "states" element
     */
    public org.openehr.schemas.v1.STATE getStatesArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().find_element_user(STATES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "states" element
     */
    public int sizeOfStatesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATES$0);
        }
    }
    
    /**
     * Sets array of all "states" element
     */
    public void setStatesArray(org.openehr.schemas.v1.STATE[] statesArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(statesArray, STATES$0);
        }
    }
    
    /**
     * Sets ith "states" element
     */
    public void setStatesArray(int i, org.openehr.schemas.v1.STATE states)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().find_element_user(STATES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(states);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "states" element
     */
    public org.openehr.schemas.v1.STATE insertNewStates(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().insert_element_user(STATES$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "states" element
     */
    public org.openehr.schemas.v1.STATE addNewStates()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.STATE target = null;
            target = (org.openehr.schemas.v1.STATE)get_store().add_element_user(STATES$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "states" element
     */
    public void removeStates(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATES$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy