org.openehr.schemas.v1.impl.FOLDERImpl Maven / Gradle / Ivy
/*
* XML Type: FOLDER
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.FOLDER
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML FOLDER(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class FOLDERImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.FOLDER
{
private static final long serialVersionUID = 1L;
public FOLDERImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FOLDERS$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "folders");
private static final javax.xml.namespace.QName ITEMS$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
/**
* Gets array of all "folders" elements
*/
public org.openehr.schemas.v1.FOLDER[] getFoldersArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(FOLDERS$0, targetList);
org.openehr.schemas.v1.FOLDER[] result = new org.openehr.schemas.v1.FOLDER[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "folders" element
*/
public org.openehr.schemas.v1.FOLDER getFoldersArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.FOLDER target = null;
target = (org.openehr.schemas.v1.FOLDER)get_store().find_element_user(FOLDERS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "folders" element
*/
public int sizeOfFoldersArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FOLDERS$0);
}
}
/**
* Sets array of all "folders" element
*/
public void setFoldersArray(org.openehr.schemas.v1.FOLDER[] foldersArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(foldersArray, FOLDERS$0);
}
}
/**
* Sets ith "folders" element
*/
public void setFoldersArray(int i, org.openehr.schemas.v1.FOLDER folders)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.FOLDER target = null;
target = (org.openehr.schemas.v1.FOLDER)get_store().find_element_user(FOLDERS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(folders);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "folders" element
*/
public org.openehr.schemas.v1.FOLDER insertNewFolders(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.FOLDER target = null;
target = (org.openehr.schemas.v1.FOLDER)get_store().insert_element_user(FOLDERS$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "folders" element
*/
public org.openehr.schemas.v1.FOLDER addNewFolders()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.FOLDER target = null;
target = (org.openehr.schemas.v1.FOLDER)get_store().add_element_user(FOLDERS$0);
return target;
}
}
/**
* Removes the ith "folders" element
*/
public void removeFolders(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FOLDERS$0, i);
}
}
/**
* Gets array of all "items" elements
*/
public org.openehr.schemas.v1.OBJECTREF[] getItemsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMS$2, targetList);
org.openehr.schemas.v1.OBJECTREF[] result = new org.openehr.schemas.v1.OBJECTREF[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "items" element
*/
public org.openehr.schemas.v1.OBJECTREF getItemsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMS$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "items" element
*/
public int sizeOfItemsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEMS$2);
}
}
/**
* Sets array of all "items" element
*/
public void setItemsArray(org.openehr.schemas.v1.OBJECTREF[] itemsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemsArray, ITEMS$2);
}
}
/**
* Sets ith "items" element
*/
public void setItemsArray(int i, org.openehr.schemas.v1.OBJECTREF items)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMS$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(items);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "items" element
*/
public org.openehr.schemas.v1.OBJECTREF insertNewItems(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().insert_element_user(ITEMS$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "items" element
*/
public org.openehr.schemas.v1.OBJECTREF addNewItems()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(ITEMS$2);
return target;
}
}
/**
* Removes the ith "items" element
*/
public void removeItems(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMS$2, i);
}
}
}