![JAR search and dependency download from the Maven repository](/logo.png)
openEHR.v1.template.impl.SECTIONImpl 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: SECTION
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.SECTION
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML SECTION(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class SECTIONImpl extends openEHR.v1.template.impl.ContentItemImpl implements openEHR.v1.template.SECTION
{
private static final long serialVersionUID = 1L;
public SECTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ITEM$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "Item");
/**
* Gets array of all "Item" elements
*/
public openEHR.v1.template.ContentItem[] getItemArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEM$0, targetList);
openEHR.v1.template.ContentItem[] result = new openEHR.v1.template.ContentItem[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Item" element
*/
public openEHR.v1.template.ContentItem getItemArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ContentItem target = null;
target = (openEHR.v1.template.ContentItem)get_store().find_element_user(ITEM$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Item" element
*/
public int sizeOfItemArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEM$0);
}
}
/**
* Sets array of all "Item" element
*/
public void setItemArray(openEHR.v1.template.ContentItem[] itemArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemArray, ITEM$0);
}
}
/**
* Sets ith "Item" element
*/
public void setItemArray(int i, openEHR.v1.template.ContentItem item)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ContentItem target = null;
target = (openEHR.v1.template.ContentItem)get_store().find_element_user(ITEM$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(item);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Item" element
*/
public openEHR.v1.template.ContentItem insertNewItem(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ContentItem target = null;
target = (openEHR.v1.template.ContentItem)get_store().insert_element_user(ITEM$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Item" element
*/
public openEHR.v1.template.ContentItem addNewItem()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ContentItem target = null;
target = (openEHR.v1.template.ContentItem)get_store().add_element_user(ITEM$0);
return target;
}
}
/**
* Removes the ith "Item" element
*/
public void removeItem(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEM$0, i);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy