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