All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.opengis.sensorml.x20.impl.EventListTypeImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * XML Type:  EventListType
 * Namespace: http://www.opengis.net/sensorml/2.0
 * Java type: net.opengis.sensorml.x20.EventListType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorml.x20.impl;
/**
 * An XML EventListType(@http://www.opengis.net/sensorml/2.0).
 *
 * This is a complex type.
 */
public class EventListTypeImpl extends net.opengis.sensorml.x20.impl.AbstractMetadataListTypeImpl implements net.opengis.sensorml.x20.EventListType
{
    private static final long serialVersionUID = 1L;
    
    public EventListTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EVENT$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "event");
    
    
    /**
     * Gets array of all "event" elements
     */
    public net.opengis.sensorml.x20.EventPropertyType[] getEventArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EVENT$0, targetList);
            net.opengis.sensorml.x20.EventPropertyType[] result = new net.opengis.sensorml.x20.EventPropertyType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "event" element
     */
    public net.opengis.sensorml.x20.EventPropertyType getEventArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.EventPropertyType target = null;
            target = (net.opengis.sensorml.x20.EventPropertyType)get_store().find_element_user(EVENT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "event" element
     */
    public int sizeOfEventArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EVENT$0);
        }
    }
    
    /**
     * Sets array of all "event" element
     */
    public void setEventArray(net.opengis.sensorml.x20.EventPropertyType[] eventArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(eventArray, EVENT$0);
        }
    }
    
    /**
     * Sets ith "event" element
     */
    public void setEventArray(int i, net.opengis.sensorml.x20.EventPropertyType event)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.EventPropertyType target = null;
            target = (net.opengis.sensorml.x20.EventPropertyType)get_store().find_element_user(EVENT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(event);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "event" element
     */
    public net.opengis.sensorml.x20.EventPropertyType insertNewEvent(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.EventPropertyType target = null;
            target = (net.opengis.sensorml.x20.EventPropertyType)get_store().insert_element_user(EVENT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "event" element
     */
    public net.opengis.sensorml.x20.EventPropertyType addNewEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.EventPropertyType target = null;
            target = (net.opengis.sensorml.x20.EventPropertyType)get_store().add_element_user(EVENT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "event" element
     */
    public void removeEvent(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EVENT$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy