openEHR.v1.template.impl.HashTableStringStringImpl 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: hashTableStringString
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.HashTableStringString
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML hashTableStringString(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class HashTableStringStringImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.HashTableStringString
{
private static final long serialVersionUID = 1L;
public HashTableStringStringImpl(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.DictionaryItem[] 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.DictionaryItem[] result = new openEHR.v1.template.DictionaryItem[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "item" element
*/
public openEHR.v1.template.DictionaryItem getItemArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DictionaryItem target = null;
target = (openEHR.v1.template.DictionaryItem)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.DictionaryItem[] itemArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemArray, ITEM$0);
}
}
/**
* Sets ith "item" element
*/
public void setItemArray(int i, openEHR.v1.template.DictionaryItem item)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DictionaryItem target = null;
target = (openEHR.v1.template.DictionaryItem)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.DictionaryItem insertNewItem(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DictionaryItem target = null;
target = (openEHR.v1.template.DictionaryItem)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.DictionaryItem addNewItem()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.DictionaryItem target = null;
target = (openEHR.v1.template.DictionaryItem)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);
}
}
}