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