org.example.wsHT.api.xsd.impl.XMLGetMyTasksResponseDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: getMyTasksResponse
* Namespace: http://www.example.org/WS-HT/api/xsd
* Java type: org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.api.xsd.impl;
/**
* A document containing one getMyTasksResponse(@http://www.example.org/WS-HT/api/xsd) element.
*
* This is a complex type.
*/
public class XMLGetMyTasksResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument
{
private static final long serialVersionUID = 1L;
public XMLGetMyTasksResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName GETMYTASKSRESPONSE$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "getMyTasksResponse");
/**
* Gets the "getMyTasksResponse" element
*/
public org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse getGetMyTasksResponse()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse target = null;
target = (org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse)get_store().find_element_user(GETMYTASKSRESPONSE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "getMyTasksResponse" element
*/
public void setGetMyTasksResponse(org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse getMyTasksResponse)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse target = null;
target = (org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse)get_store().find_element_user(GETMYTASKSRESPONSE$0, 0);
if (target == null)
{
target = (org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse)get_store().add_element_user(GETMYTASKSRESPONSE$0);
}
target.set(getMyTasksResponse);
}
}
/**
* Appends and returns a new empty "getMyTasksResponse" element
*/
public org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse addNewGetMyTasksResponse()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse target = null;
target = (org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse)get_store().add_element_user(GETMYTASKSRESPONSE$0);
return target;
}
}
/**
* An XML getMyTasksResponse(@http://www.example.org/WS-HT/api/xsd).
*
* This is a complex type.
*/
public static class GetMyTasksResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLGetMyTasksResponseDocument.GetMyTasksResponse
{
private static final long serialVersionUID = 1L;
public GetMyTasksResponseImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TASKABSTRACT$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "taskAbstract");
/**
* Gets a List of "taskAbstract" elements
*/
public java.util.List getTaskAbstractList()
{
final class TaskAbstractList extends java.util.AbstractList
{
public org.example.wsHT.api.XMLTTask get(int i)
{ return GetMyTasksResponseImpl.this.getTaskAbstractArray(i); }
public org.example.wsHT.api.XMLTTask set(int i, org.example.wsHT.api.XMLTTask o)
{
org.example.wsHT.api.XMLTTask old = GetMyTasksResponseImpl.this.getTaskAbstractArray(i);
GetMyTasksResponseImpl.this.setTaskAbstractArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.api.XMLTTask o)
{ GetMyTasksResponseImpl.this.insertNewTaskAbstract(i).set(o); }
public org.example.wsHT.api.XMLTTask remove(int i)
{
org.example.wsHT.api.XMLTTask old = GetMyTasksResponseImpl.this.getTaskAbstractArray(i);
GetMyTasksResponseImpl.this.removeTaskAbstract(i);
return old;
}
public int size()
{ return GetMyTasksResponseImpl.this.sizeOfTaskAbstractArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new TaskAbstractList();
}
}
/**
* Gets array of all "taskAbstract" elements
* @deprecated
*/
public org.example.wsHT.api.XMLTTask[] getTaskAbstractArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(TASKABSTRACT$0, targetList);
org.example.wsHT.api.XMLTTask[] result = new org.example.wsHT.api.XMLTTask[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "taskAbstract" element
*/
public org.example.wsHT.api.XMLTTask getTaskAbstractArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().find_element_user(TASKABSTRACT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "taskAbstract" element
*/
public int sizeOfTaskAbstractArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TASKABSTRACT$0);
}
}
/**
* Sets array of all "taskAbstract" element
*/
public void setTaskAbstractArray(org.example.wsHT.api.XMLTTask[] taskAbstractArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(taskAbstractArray, TASKABSTRACT$0);
}
}
/**
* Sets ith "taskAbstract" element
*/
public void setTaskAbstractArray(int i, org.example.wsHT.api.XMLTTask taskAbstract)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().find_element_user(TASKABSTRACT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(taskAbstract);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "taskAbstract" element
*/
public org.example.wsHT.api.XMLTTask insertNewTaskAbstract(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().insert_element_user(TASKABSTRACT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "taskAbstract" element
*/
public org.example.wsHT.api.XMLTTask addNewTaskAbstract()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().add_element_user(TASKABSTRACT$0);
return target;
}
}
/**
* Removes the ith "taskAbstract" element
*/
public void removeTaskAbstract(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TASKABSTRACT$0, i);
}
}
}
}