net.opengis.sensorml.x20.impl.ConnectionListTypeImpl Maven / Gradle / Ivy
/*
* XML Type: ConnectionListType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.ConnectionListType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML ConnectionListType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class ConnectionListTypeImpl extends net.opengis.swe.x20.impl.AbstractSWETypeImpl implements net.opengis.sensorml.x20.ConnectionListType
{
private static final long serialVersionUID = 1L;
public ConnectionListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONNECTION$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "connection");
/**
* Gets array of all "connection" elements
*/
public net.opengis.sensorml.x20.ConnectionListType.Connection[] getConnectionArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CONNECTION$0, targetList);
net.opengis.sensorml.x20.ConnectionListType.Connection[] result = new net.opengis.sensorml.x20.ConnectionListType.Connection[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "connection" element
*/
public net.opengis.sensorml.x20.ConnectionListType.Connection getConnectionArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ConnectionListType.Connection target = null;
target = (net.opengis.sensorml.x20.ConnectionListType.Connection)get_store().find_element_user(CONNECTION$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "connection" element
*/
public int sizeOfConnectionArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONNECTION$0);
}
}
/**
* Sets array of all "connection" element
*/
public void setConnectionArray(net.opengis.sensorml.x20.ConnectionListType.Connection[] connectionArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(connectionArray, CONNECTION$0);
}
}
/**
* Sets ith "connection" element
*/
public void setConnectionArray(int i, net.opengis.sensorml.x20.ConnectionListType.Connection connection)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ConnectionListType.Connection target = null;
target = (net.opengis.sensorml.x20.ConnectionListType.Connection)get_store().find_element_user(CONNECTION$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(connection);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "connection" element
*/
public net.opengis.sensorml.x20.ConnectionListType.Connection insertNewConnection(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ConnectionListType.Connection target = null;
target = (net.opengis.sensorml.x20.ConnectionListType.Connection)get_store().insert_element_user(CONNECTION$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "connection" element
*/
public net.opengis.sensorml.x20.ConnectionListType.Connection addNewConnection()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.ConnectionListType.Connection target = null;
target = (net.opengis.sensorml.x20.ConnectionListType.Connection)get_store().add_element_user(CONNECTION$0);
return target;
}
}
/**
* Removes the ith "connection" element
*/
public void removeConnection(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONNECTION$0, i);
}
}
/**
* An XML connection(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public static class ConnectionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.ConnectionListType.Connection
{
private static final long serialVersionUID = 1L;
public ConnectionImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LINK$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "Link");
/**
* Gets the "Link" element
*/
public net.opengis.sensorml.x20.LinkType getLink()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.LinkType target = null;
target = (net.opengis.sensorml.x20.LinkType)get_store().find_element_user(LINK$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Link" element
*/
public void setLink(net.opengis.sensorml.x20.LinkType link)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.LinkType target = null;
target = (net.opengis.sensorml.x20.LinkType)get_store().find_element_user(LINK$0, 0);
if (target == null)
{
target = (net.opengis.sensorml.x20.LinkType)get_store().add_element_user(LINK$0);
}
target.set(link);
}
}
/**
* Appends and returns a new empty "Link" element
*/
public net.opengis.sensorml.x20.LinkType addNewLink()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.LinkType target = null;
target = (net.opengis.sensorml.x20.LinkType)get_store().add_element_user(LINK$0);
return target;
}
}
}
}