net.opengis.sensorml.x20.impl.ParameterListTypeImpl Maven / Gradle / Ivy
/*
* XML Type: ParameterListType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.ParameterListType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML ParameterListType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class ParameterListTypeImpl extends net.opengis.swe.x20.impl.AbstractSWETypeImpl implements net.opengis.sensorml.x20.ParameterListType
{
private static final long serialVersionUID = 1L;
public ParameterListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PARAMETER$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "parameter");
/**
* Gets array of all "parameter" elements
*/
public net.opengis.sensorml.x20.ParameterListType.Parameter[] getParameterArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PARAMETER$0, targetList);
net.opengis.sensorml.x20.ParameterListType.Parameter[] result = new net.opengis.sensorml.x20.ParameterListType.Parameter[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "parameter" element
*/
public net.opengis.sensorml.x20.ParameterListType.Parameter getParameterArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ParameterListType.Parameter target = null;
target = (net.opengis.sensorml.x20.ParameterListType.Parameter)get_store().find_element_user(PARAMETER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "parameter" element
*/
public int sizeOfParameterArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PARAMETER$0);
}
}
/**
* Sets array of all "parameter" element
*/
public void setParameterArray(net.opengis.sensorml.x20.ParameterListType.Parameter[] parameterArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(parameterArray, PARAMETER$0);
}
}
/**
* Sets ith "parameter" element
*/
public void setParameterArray(int i, net.opengis.sensorml.x20.ParameterListType.Parameter parameter)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ParameterListType.Parameter target = null;
target = (net.opengis.sensorml.x20.ParameterListType.Parameter)get_store().find_element_user(PARAMETER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(parameter);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "parameter" element
*/
public net.opengis.sensorml.x20.ParameterListType.Parameter insertNewParameter(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ParameterListType.Parameter target = null;
target = (net.opengis.sensorml.x20.ParameterListType.Parameter)get_store().insert_element_user(PARAMETER$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "parameter" element
*/
public net.opengis.sensorml.x20.ParameterListType.Parameter addNewParameter()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ParameterListType.Parameter target = null;
target = (net.opengis.sensorml.x20.ParameterListType.Parameter)get_store().add_element_user(PARAMETER$0);
return target;
}
}
/**
* Removes the ith "parameter" element
*/
public void removeParameter(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PARAMETER$0, i);
}
}
/**
* An XML parameter(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public static class ParameterImpl extends net.opengis.sensorml.x20.impl.DataComponentOrObservablePropertyTypeImpl implements net.opengis.sensorml.x20.ParameterListType.Parameter
{
private static final long serialVersionUID = 1L;
public ParameterImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NAME$0 =
new javax.xml.namespace.QName("", "name");
/**
* Gets the "name" attribute
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" attribute
*/
public org.apache.xmlbeans.XmlNCName xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
return target;
}
}
/**
* Sets the "name" attribute
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" attribute
*/
public void xsetName(org.apache.xmlbeans.XmlNCName name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
}
target.set(name);
}
}
}
}