org.example.wsHT.impl.XMLTTasksImpl Maven / Gradle / Ivy
The newest version!
/*
* XML Type: tTasks
* Namespace: http://www.example.org/WS-HT
* Java type: org.example.wsHT.XMLTTasks
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.impl;
/**
* An XML tTasks(@http://www.example.org/WS-HT).
*
* This is a complex type.
*/
public class XMLTTasksImpl extends org.example.wsHT.impl.XMLTExtensibleElementsImpl implements org.example.wsHT.XMLTTasks
{
private static final long serialVersionUID = 1L;
public XMLTTasksImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TASK$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "task");
/**
* Gets a List of "task" elements
*/
public java.util.List getTaskList()
{
final class TaskList extends java.util.AbstractList
{
public org.example.wsHT.XMLTTask get(int i)
{ return XMLTTasksImpl.this.getTaskArray(i); }
public org.example.wsHT.XMLTTask set(int i, org.example.wsHT.XMLTTask o)
{
org.example.wsHT.XMLTTask old = XMLTTasksImpl.this.getTaskArray(i);
XMLTTasksImpl.this.setTaskArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.XMLTTask o)
{ XMLTTasksImpl.this.insertNewTask(i).set(o); }
public org.example.wsHT.XMLTTask remove(int i)
{
org.example.wsHT.XMLTTask old = XMLTTasksImpl.this.getTaskArray(i);
XMLTTasksImpl.this.removeTask(i);
return old;
}
public int size()
{ return XMLTTasksImpl.this.sizeOfTaskArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new TaskList();
}
}
/**
* Gets array of all "task" elements
* @deprecated
*/
public org.example.wsHT.XMLTTask[] getTaskArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(TASK$0, targetList);
org.example.wsHT.XMLTTask[] result = new org.example.wsHT.XMLTTask[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "task" element
*/
public org.example.wsHT.XMLTTask getTaskArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTTask target = null;
target = (org.example.wsHT.XMLTTask)get_store().find_element_user(TASK$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "task" element
*/
public int sizeOfTaskArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TASK$0);
}
}
/**
* Sets array of all "task" element
*/
public void setTaskArray(org.example.wsHT.XMLTTask[] taskArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(taskArray, TASK$0);
}
}
/**
* Sets ith "task" element
*/
public void setTaskArray(int i, org.example.wsHT.XMLTTask task)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTTask target = null;
target = (org.example.wsHT.XMLTTask)get_store().find_element_user(TASK$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(task);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "task" element
*/
public org.example.wsHT.XMLTTask insertNewTask(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTTask target = null;
target = (org.example.wsHT.XMLTTask)get_store().insert_element_user(TASK$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "task" element
*/
public org.example.wsHT.XMLTTask addNewTask()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTTask target = null;
target = (org.example.wsHT.XMLTTask)get_store().add_element_user(TASK$0);
return target;
}
}
/**
* Removes the ith "task" element
*/
public void removeTask(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TASK$0, i);
}
}
}