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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy