org.openehr.schemas.v1.impl.EXTRACTENTITYMANIFESTImpl Maven / Gradle / Ivy
/*
* XML Type: EXTRACT_ENTITY_MANIFEST
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EXTRACTENTITYMANIFEST
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EXTRACT_ENTITY_MANIFEST(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EXTRACTENTITYMANIFESTImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.EXTRACTENTITYMANIFEST
{
private static final long serialVersionUID = 1L;
public EXTRACTENTITYMANIFESTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ITEMLIST$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "item_list");
private static final javax.xml.namespace.QName ENTITYIDENTIFIER$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "entity_identifier");
/**
* Gets array of all "item_list" elements
*/
public org.openehr.schemas.v1.OBJECTREF[] getItemListArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMLIST$0, targetList);
org.openehr.schemas.v1.OBJECTREF[] result = new org.openehr.schemas.v1.OBJECTREF[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "item_list" element
*/
public org.openehr.schemas.v1.OBJECTREF getItemListArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMLIST$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "item_list" element
*/
public int sizeOfItemListArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEMLIST$0);
}
}
/**
* Sets array of all "item_list" element
*/
public void setItemListArray(org.openehr.schemas.v1.OBJECTREF[] itemListArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemListArray, ITEMLIST$0);
}
}
/**
* Sets ith "item_list" element
*/
public void setItemListArray(int i, org.openehr.schemas.v1.OBJECTREF itemList)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMLIST$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(itemList);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "item_list" element
*/
public org.openehr.schemas.v1.OBJECTREF insertNewItemList(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().insert_element_user(ITEMLIST$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "item_list" element
*/
public org.openehr.schemas.v1.OBJECTREF addNewItemList()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(ITEMLIST$0);
return target;
}
}
/**
* Removes the ith "item_list" element
*/
public void removeItemList(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMLIST$0, i);
}
}
/**
* Gets the "entity_identifier" element
*/
public org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER getEntityIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().find_element_user(ENTITYIDENTIFIER$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "entity_identifier" element
*/
public void setEntityIdentifier(org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER entityIdentifier)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().find_element_user(ENTITYIDENTIFIER$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().add_element_user(ENTITYIDENTIFIER$2);
}
target.set(entityIdentifier);
}
}
/**
* Appends and returns a new empty "entity_identifier" element
*/
public org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER addNewEntityIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER target = null;
target = (org.openehr.schemas.v1.EXTRACTENTITYIDENTIFIER)get_store().add_element_user(ENTITYIDENTIFIER$2);
return target;
}
}
}