org.xmlblackbox.xsd.impl.TableRowImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmlblackbox Show documentation
Show all versions of xmlblackbox Show documentation
XmlBlackBox is a Java framework that enable to describe a test case in Xml
/*
* XML Type: table-row
* Namespace: http://www.xmlblackbox.org/xsd/
* Java type: org.xmlblackbox.xsd.TableRow
*
* Automatically generated - do not modify.
*/
package org.xmlblackbox.xsd.impl;
/**
* An XML table-row(@http://www.xmlblackbox.org/xsd/).
*
* This is a complex type.
*/
public class TableRowImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlblackbox.xsd.TableRow
{
private static final long serialVersionUID = 1L;
public TableRowImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VALUE$0 =
new javax.xml.namespace.QName("http://www.xmlblackbox.org/xsd/", "value");
/**
* Gets array of all "value" elements
*/
public java.lang.String[] getValueArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(VALUE$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 "value" element
*/
public java.lang.String getValueArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "value" elements
*/
public org.apache.xmlbeans.XmlString[] xgetValueArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(VALUE$0, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "value" element
*/
public org.apache.xmlbeans.XmlString xgetValueArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "value" element
*/
public int sizeOfValueArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VALUE$0);
}
}
/**
* Sets array of all "value" element
*/
public void setValueArray(java.lang.String[] valueArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(valueArray, VALUE$0);
}
}
/**
* Sets ith "value" element
*/
public void setValueArray(int i, java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(value);
}
}
/**
* Sets (as xml) array of all "value" element
*/
public void xsetValueArray(org.apache.xmlbeans.XmlString[]valueArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(valueArray, VALUE$0);
}
}
/**
* Sets (as xml) ith "value" element
*/
public void xsetValueArray(int i, org.apache.xmlbeans.XmlString value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(value);
}
}
/**
* Inserts the value as the ith "value" element
*/
public void insertValue(int i, java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(VALUE$0, i);
target.setStringValue(value);
}
}
/**
* Appends the value as the last "value" element
*/
public void addValue(java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$0);
target.setStringValue(value);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "value" element
*/
public org.apache.xmlbeans.XmlString insertNewValue(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(VALUE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "value" element
*/
public org.apache.xmlbeans.XmlString addNewValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$0);
return target;
}
}
/**
* Removes the ith "value" element
*/
public void removeValue(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VALUE$0, i);
}
}
}