org.example.wsHT.impl.XMLTUserlistImpl Maven / Gradle / Ivy
The newest version!
/*
* XML Type: tUserlist
* Namespace: http://www.example.org/WS-HT
* Java type: org.example.wsHT.XMLTUserlist
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.impl;
/**
* An XML tUserlist(@http://www.example.org/WS-HT).
*
* This is a complex type.
*/
public class XMLTUserlistImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.XMLTUserlist
{
private static final long serialVersionUID = 1L;
public XMLTUserlistImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName USER$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "user");
/**
* Gets a List of "user" elements
*/
public java.util.List getUserList()
{
final class UserList extends java.util.AbstractList
{
public java.lang.String get(int i)
{ return XMLTUserlistImpl.this.getUserArray(i); }
public java.lang.String set(int i, java.lang.String o)
{
java.lang.String old = XMLTUserlistImpl.this.getUserArray(i);
XMLTUserlistImpl.this.setUserArray(i, o);
return old;
}
public void add(int i, java.lang.String o)
{ XMLTUserlistImpl.this.insertUser(i, o); }
public java.lang.String remove(int i)
{
java.lang.String old = XMLTUserlistImpl.this.getUserArray(i);
XMLTUserlistImpl.this.removeUser(i);
return old;
}
public int size()
{ return XMLTUserlistImpl.this.sizeOfUserArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new UserList();
}
}
/**
* Gets array of all "user" elements
* @deprecated
*/
public java.lang.String[] getUserArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(USER$0, targetList);
java.lang.String[] result = new java.lang.String[targetList.size()];
for (int i = 0, len = targetList.size() ; i < len ; i++)
result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
return result;
}
}
/**
* Gets ith "user" element
*/
public java.lang.String getUserArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) a List of "user" elements
*/
public java.util.List xgetUserList()
{
final class UserList extends java.util.AbstractList
{
public org.example.wsHT.XMLTUser get(int i)
{ return XMLTUserlistImpl.this.xgetUserArray(i); }
public org.example.wsHT.XMLTUser set(int i, org.example.wsHT.XMLTUser o)
{
org.example.wsHT.XMLTUser old = XMLTUserlistImpl.this.xgetUserArray(i);
XMLTUserlistImpl.this.xsetUserArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.XMLTUser o)
{ XMLTUserlistImpl.this.insertNewUser(i).set(o); }
public org.example.wsHT.XMLTUser remove(int i)
{
org.example.wsHT.XMLTUser old = XMLTUserlistImpl.this.xgetUserArray(i);
XMLTUserlistImpl.this.removeUser(i);
return old;
}
public int size()
{ return XMLTUserlistImpl.this.sizeOfUserArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new UserList();
}
}
/**
* Gets array of all "user" elements
* @deprecated
*/
public org.example.wsHT.XMLTUser[] xgetUserArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(USER$0, targetList);
org.example.wsHT.XMLTUser[] result = new org.example.wsHT.XMLTUser[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "user" element
*/
public org.example.wsHT.XMLTUser xgetUserArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().find_element_user(USER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.example.wsHT.XMLTUser)target;
}
}
/**
* Returns number of "user" element
*/
public int sizeOfUserArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(USER$0);
}
}
/**
* Sets array of all "user" element
*/
public void setUserArray(java.lang.String[] userArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(userArray, USER$0);
}
}
/**
* Sets ith "user" element
*/
public void setUserArray(int i, java.lang.String user)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(user);
}
}
/**
* Sets (as xml) array of all "user" element
*/
public void xsetUserArray(org.example.wsHT.XMLTUser[]userArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(userArray, USER$0);
}
}
/**
* Sets (as xml) ith "user" element
*/
public void xsetUserArray(int i, org.example.wsHT.XMLTUser user)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().find_element_user(USER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(user);
}
}
/**
* Inserts the value as the ith "user" element
*/
public void insertUser(int i, java.lang.String user)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(USER$0, i);
target.setStringValue(user);
}
}
/**
* Appends the value as the last "user" element
*/
public void addUser(java.lang.String user)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USER$0);
target.setStringValue(user);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "user" element
*/
public org.example.wsHT.XMLTUser insertNewUser(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().insert_element_user(USER$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "user" element
*/
public org.example.wsHT.XMLTUser addNewUser()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTUser target = null;
target = (org.example.wsHT.XMLTUser)get_store().add_element_user(USER$0);
return target;
}
}
/**
* Removes the ith "user" element
*/
public void removeUser(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(USER$0, i);
}
}
}