net.opengis.sensorml.x20.impl.ContactListTypeImpl Maven / Gradle / Ivy
/*
* XML Type: ContactListType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.ContactListType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML ContactListType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class ContactListTypeImpl extends net.opengis.sensorml.x20.impl.AbstractMetadataListTypeImpl implements net.opengis.sensorml.x20.ContactListType
{
private static final long serialVersionUID = 1L;
public ContactListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONTACT$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "contact");
/**
* Gets array of all "contact" elements
*/
public org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType[] getContactArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CONTACT$0, targetList);
org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType[] result = new org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "contact" element
*/
public org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType getContactArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType target = null;
target = (org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType)get_store().find_element_user(CONTACT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "contact" element
*/
public int sizeOfContactArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONTACT$0);
}
}
/**
* Sets array of all "contact" element
*/
public void setContactArray(org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType[] contactArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(contactArray, CONTACT$0);
}
}
/**
* Sets ith "contact" element
*/
public void setContactArray(int i, org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType contact)
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType target = null;
target = (org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType)get_store().find_element_user(CONTACT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(contact);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "contact" element
*/
public org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType insertNewContact(int i)
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType target = null;
target = (org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType)get_store().insert_element_user(CONTACT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "contact" element
*/
public org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType addNewContact()
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType target = null;
target = (org.isotc211.x2005.gmd.CIResponsiblePartyPropertyType)get_store().add_element_user(CONTACT$0);
return target;
}
}
/**
* Removes the ith "contact" element
*/
public void removeContact(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONTACT$0, i);
}
}
}