openEHR.v1.template.impl.INSTRUCTIONImpl 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: INSTRUCTION
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.INSTRUCTION
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML INSTRUCTION(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class INSTRUCTIONImpl extends openEHR.v1.template.impl.ENTRYImpl implements openEHR.v1.template.INSTRUCTION
{
private static final long serialVersionUID = 1L;
public INSTRUCTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ACTIVITYDESCRIPTION$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "activityDescription");
/**
* Gets array of all "activityDescription" elements
*/
public openEHR.v1.template.ITEMSTRUCTURE[] getActivityDescriptionArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ACTIVITYDESCRIPTION$0, targetList);
openEHR.v1.template.ITEMSTRUCTURE[] result = new openEHR.v1.template.ITEMSTRUCTURE[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "activityDescription" element
*/
public openEHR.v1.template.ITEMSTRUCTURE getActivityDescriptionArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(ACTIVITYDESCRIPTION$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "activityDescription" element
*/
public int sizeOfActivityDescriptionArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACTIVITYDESCRIPTION$0);
}
}
/**
* Sets array of all "activityDescription" element
*/
public void setActivityDescriptionArray(openEHR.v1.template.ITEMSTRUCTURE[] activityDescriptionArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(activityDescriptionArray, ACTIVITYDESCRIPTION$0);
}
}
/**
* Sets ith "activityDescription" element
*/
public void setActivityDescriptionArray(int i, openEHR.v1.template.ITEMSTRUCTURE activityDescription)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(ACTIVITYDESCRIPTION$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(activityDescription);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "activityDescription" element
*/
public openEHR.v1.template.ITEMSTRUCTURE insertNewActivityDescription(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().insert_element_user(ACTIVITYDESCRIPTION$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "activityDescription" element
*/
public openEHR.v1.template.ITEMSTRUCTURE addNewActivityDescription()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().add_element_user(ACTIVITYDESCRIPTION$0);
return target;
}
}
/**
* Removes the ith "activityDescription" element
*/
public void removeActivityDescription(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACTIVITYDESCRIPTION$0, i);
}
}
}