org.openehr.schemas.v1.impl.ITEMTABLEImpl Maven / Gradle / Ivy
/*
* XML Type: ITEM_TABLE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ITEMTABLE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ITEM_TABLE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ITEMTABLEImpl extends org.openehr.schemas.v1.impl.ITEMSTRUCTUREImpl implements org.openehr.schemas.v1.ITEMTABLE
{
private static final long serialVersionUID = 1L;
public ITEMTABLEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ROWS$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "rows");
/**
* Gets array of all "rows" elements
*/
public org.openehr.schemas.v1.CLUSTER[] getRowsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ROWS$0, targetList);
org.openehr.schemas.v1.CLUSTER[] result = new org.openehr.schemas.v1.CLUSTER[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "rows" element
*/
public org.openehr.schemas.v1.CLUSTER getRowsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CLUSTER target = null;
target = (org.openehr.schemas.v1.CLUSTER)get_store().find_element_user(ROWS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "rows" element
*/
public int sizeOfRowsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ROWS$0);
}
}
/**
* Sets array of all "rows" element
*/
public void setRowsArray(org.openehr.schemas.v1.CLUSTER[] rowsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(rowsArray, ROWS$0);
}
}
/**
* Sets ith "rows" element
*/
public void setRowsArray(int i, org.openehr.schemas.v1.CLUSTER rows)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CLUSTER target = null;
target = (org.openehr.schemas.v1.CLUSTER)get_store().find_element_user(ROWS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(rows);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "rows" element
*/
public org.openehr.schemas.v1.CLUSTER insertNewRows(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CLUSTER target = null;
target = (org.openehr.schemas.v1.CLUSTER)get_store().insert_element_user(ROWS$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "rows" element
*/
public org.openehr.schemas.v1.CLUSTER addNewRows()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CLUSTER target = null;
target = (org.openehr.schemas.v1.CLUSTER)get_store().add_element_user(ROWS$0);
return target;
}
}
/**
* Removes the ith "rows" element
*/
public void removeRows(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ROWS$0, i);
}
}
}