org.openehr.schemas.v1.impl.NONTERMINALSTATEImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oet-parser Show documentation
Show all versions of oet-parser Show documentation
Java implementation of openEHR OET Template Parser and Flattener
The newest version!
/*
* XML Type: NON_TERMINAL_STATE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.NONTERMINALSTATE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML NON_TERMINAL_STATE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class NONTERMINALSTATEImpl extends org.openehr.schemas.v1.impl.STATEImpl implements org.openehr.schemas.v1.NONTERMINALSTATE
{
private static final long serialVersionUID = 1L;
public NONTERMINALSTATEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TRANSITIONS$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "transitions");
/**
* Gets array of all "transitions" elements
*/
public org.openehr.schemas.v1.TRANSITION[] getTransitionsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(TRANSITIONS$0, targetList);
org.openehr.schemas.v1.TRANSITION[] result = new org.openehr.schemas.v1.TRANSITION[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "transitions" element
*/
public org.openehr.schemas.v1.TRANSITION getTransitionsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TRANSITION target = null;
target = (org.openehr.schemas.v1.TRANSITION)get_store().find_element_user(TRANSITIONS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "transitions" element
*/
public int sizeOfTransitionsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TRANSITIONS$0);
}
}
/**
* Sets array of all "transitions" element
*/
public void setTransitionsArray(org.openehr.schemas.v1.TRANSITION[] transitionsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(transitionsArray, TRANSITIONS$0);
}
}
/**
* Sets ith "transitions" element
*/
public void setTransitionsArray(int i, org.openehr.schemas.v1.TRANSITION transitions)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TRANSITION target = null;
target = (org.openehr.schemas.v1.TRANSITION)get_store().find_element_user(TRANSITIONS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(transitions);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "transitions" element
*/
public org.openehr.schemas.v1.TRANSITION insertNewTransitions(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TRANSITION target = null;
target = (org.openehr.schemas.v1.TRANSITION)get_store().insert_element_user(TRANSITIONS$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "transitions" element
*/
public org.openehr.schemas.v1.TRANSITION addNewTransitions()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TRANSITION target = null;
target = (org.openehr.schemas.v1.TRANSITION)get_store().add_element_user(TRANSITIONS$0);
return target;
}
}
/**
* Removes the ith "transitions" element
*/
public void removeTransitions(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TRANSITIONS$0, i);
}
}
}