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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy