/*
* XML Type: AttributeList
* Namespace:
* Java type: noNamespace.AttributeList
*
* Automatically generated - do not modify.
*/
package noNamespace.impl;
/**
* An XML AttributeList(@).
*
* This is a complex type.
*/
public class AttributeListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements noNamespace.AttributeList
{
private static final long serialVersionUID = 1L;
public AttributeListImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ATTRIBUTE$0 =
new javax.xml.namespace.QName("", "attribute");
/**
* Gets array of all "attribute" elements
*/
public java.lang.String[] getAttributeArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ATTRIBUTE$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 "attribute" element
*/
public java.lang.String getAttributeArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ATTRIBUTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "attribute" elements
*/
public org.apache.xmlbeans.XmlString[] xgetAttributeArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ATTRIBUTE$0, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "attribute" element
*/
public org.apache.xmlbeans.XmlString xgetAttributeArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ATTRIBUTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "attribute" element
*/
public int sizeOfAttributeArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ATTRIBUTE$0);
}
}
/**
* Sets array of all "attribute" element
*/
public void setAttributeArray(java.lang.String[] attributeArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(attributeArray, ATTRIBUTE$0);
}
}
/**
* Sets ith "attribute" element
*/
public void setAttributeArray(int i, java.lang.String attribute)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ATTRIBUTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(attribute);
}
}
/**
* Sets (as xml) array of all "attribute" element
*/
public void xsetAttributeArray(org.apache.xmlbeans.XmlString[]attributeArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(attributeArray, ATTRIBUTE$0);
}
}
/**
* Sets (as xml) ith "attribute" element
*/
public void xsetAttributeArray(int i, org.apache.xmlbeans.XmlString attribute)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ATTRIBUTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(attribute);
}
}
/**
* Inserts the value as the ith "attribute" element
*/
public void insertAttribute(int i, java.lang.String attribute)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(ATTRIBUTE$0, i);
target.setStringValue(attribute);
}
}
/**
* Appends the value as the last "attribute" element
*/
public void addAttribute(java.lang.String attribute)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ATTRIBUTE$0);
target.setStringValue(attribute);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "attribute" element
*/
public org.apache.xmlbeans.XmlString insertNewAttribute(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(ATTRIBUTE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "attribute" element
*/
public org.apache.xmlbeans.XmlString addNewAttribute()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ATTRIBUTE$0);
return target;
}
}
/**
* Removes the ith "attribute" element
*/
public void removeAttribute(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ATTRIBUTE$0, i);
}
}
}