org.openehr.schemas.v1.impl.DVPARAGRAPHImpl Maven / Gradle / Ivy
/*
* XML Type: DV_PARAGRAPH
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVPARAGRAPH
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_PARAGRAPH(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVPARAGRAPHImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVPARAGRAPH
{
private static final long serialVersionUID = 1L;
public DVPARAGRAPHImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ITEMS$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
/**
* Gets array of all "items" elements
*/
public org.openehr.schemas.v1.DVTEXT[] getItemsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMS$0, targetList);
org.openehr.schemas.v1.DVTEXT[] result = new org.openehr.schemas.v1.DVTEXT[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "items" element
*/
public org.openehr.schemas.v1.DVTEXT getItemsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(ITEMS$0, 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$0);
}
}
/**
* Sets array of all "items" element
*/
public void setItemsArray(org.openehr.schemas.v1.DVTEXT[] itemsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemsArray, ITEMS$0);
}
}
/**
* Sets ith "items" element
*/
public void setItemsArray(int i, org.openehr.schemas.v1.DVTEXT items)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(ITEMS$0, 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.DVTEXT insertNewItems(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().insert_element_user(ITEMS$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "items" element
*/
public org.openehr.schemas.v1.DVTEXT addNewItems()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(ITEMS$0);
return target;
}
}
/**
* Removes the ith "items" element
*/
public void removeItems(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMS$0, i);
}
}
}