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