org.example.wsHT.api.impl.XMLTTaskQueryResultSetImpl Maven / Gradle / Ivy
The newest version!
/*
* XML Type: tTaskQueryResultSet
* Namespace: http://www.example.org/WS-HT/api
* Java type: org.example.wsHT.api.XMLTTaskQueryResultSet
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.api.impl;
/**
* An XML tTaskQueryResultSet(@http://www.example.org/WS-HT/api).
*
* This is a complex type.
*/
public class XMLTTaskQueryResultSetImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.XMLTTaskQueryResultSet
{
private static final long serialVersionUID = 1L;
public XMLTTaskQueryResultSetImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ROW$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api", "row");
/**
* Gets a List of "row" elements
*/
public java.util.List getRowList()
{
final class RowList extends java.util.AbstractList
{
public org.example.wsHT.api.XMLTTaskQueryResultRow get(int i)
{ return XMLTTaskQueryResultSetImpl.this.getRowArray(i); }
public org.example.wsHT.api.XMLTTaskQueryResultRow set(int i, org.example.wsHT.api.XMLTTaskQueryResultRow o)
{
org.example.wsHT.api.XMLTTaskQueryResultRow old = XMLTTaskQueryResultSetImpl.this.getRowArray(i);
XMLTTaskQueryResultSetImpl.this.setRowArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.api.XMLTTaskQueryResultRow o)
{ XMLTTaskQueryResultSetImpl.this.insertNewRow(i).set(o); }
public org.example.wsHT.api.XMLTTaskQueryResultRow remove(int i)
{
org.example.wsHT.api.XMLTTaskQueryResultRow old = XMLTTaskQueryResultSetImpl.this.getRowArray(i);
XMLTTaskQueryResultSetImpl.this.removeRow(i);
return old;
}
public int size()
{ return XMLTTaskQueryResultSetImpl.this.sizeOfRowArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new RowList();
}
}
/**
* Gets array of all "row" elements
* @deprecated
*/
public org.example.wsHT.api.XMLTTaskQueryResultRow[] getRowArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ROW$0, targetList);
org.example.wsHT.api.XMLTTaskQueryResultRow[] result = new org.example.wsHT.api.XMLTTaskQueryResultRow[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "row" element
*/
public org.example.wsHT.api.XMLTTaskQueryResultRow getRowArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTaskQueryResultRow target = null;
target = (org.example.wsHT.api.XMLTTaskQueryResultRow)get_store().find_element_user(ROW$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "row" element
*/
public int sizeOfRowArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ROW$0);
}
}
/**
* Sets array of all "row" element
*/
public void setRowArray(org.example.wsHT.api.XMLTTaskQueryResultRow[] rowArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(rowArray, ROW$0);
}
}
/**
* Sets ith "row" element
*/
public void setRowArray(int i, org.example.wsHT.api.XMLTTaskQueryResultRow row)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTaskQueryResultRow target = null;
target = (org.example.wsHT.api.XMLTTaskQueryResultRow)get_store().find_element_user(ROW$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(row);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "row" element
*/
public org.example.wsHT.api.XMLTTaskQueryResultRow insertNewRow(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTaskQueryResultRow target = null;
target = (org.example.wsHT.api.XMLTTaskQueryResultRow)get_store().insert_element_user(ROW$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "row" element
*/
public org.example.wsHT.api.XMLTTaskQueryResultRow addNewRow()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTaskQueryResultRow target = null;
target = (org.example.wsHT.api.XMLTTaskQueryResultRow)get_store().add_element_user(ROW$0);
return target;
}
}
/**
* Removes the ith "row" element
*/
public void removeRow(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ROW$0, i);
}
}
}