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

net.opengis.swe.x10.impl.SimpleDataRecordTypeImpl Maven / Gradle / Ivy

/*
 * XML Type:  SimpleDataRecordType
 * Namespace: http://www.opengis.net/swe/1.0
 * Java type: net.opengis.swe.x10.SimpleDataRecordType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x10.impl;
/**
 * An XML SimpleDataRecordType(@http://www.opengis.net/swe/1.0).
 *
 * This is a complex type.
 */
public class SimpleDataRecordTypeImpl extends net.opengis.swe.x10.impl.AbstractDataRecordTypeImpl implements net.opengis.swe.x10.SimpleDataRecordType
{
    private static final long serialVersionUID = 1L;
    
    public SimpleDataRecordTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FIELD$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "field");
    
    
    /**
     * Gets array of all "field" elements
     */
    public net.opengis.swe.x10.AnyScalarPropertyType[] getFieldArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FIELD$0, targetList);
            net.opengis.swe.x10.AnyScalarPropertyType[] result = new net.opengis.swe.x10.AnyScalarPropertyType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "field" element
     */
    public net.opengis.swe.x10.AnyScalarPropertyType getFieldArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.AnyScalarPropertyType target = null;
            target = (net.opengis.swe.x10.AnyScalarPropertyType)get_store().find_element_user(FIELD$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "field" element
     */
    public int sizeOfFieldArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIELD$0);
        }
    }
    
    /**
     * Sets array of all "field" element
     */
    public void setFieldArray(net.opengis.swe.x10.AnyScalarPropertyType[] fieldArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(fieldArray, FIELD$0);
        }
    }
    
    /**
     * Sets ith "field" element
     */
    public void setFieldArray(int i, net.opengis.swe.x10.AnyScalarPropertyType field)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.AnyScalarPropertyType target = null;
            target = (net.opengis.swe.x10.AnyScalarPropertyType)get_store().find_element_user(FIELD$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(field);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "field" element
     */
    public net.opengis.swe.x10.AnyScalarPropertyType insertNewField(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.AnyScalarPropertyType target = null;
            target = (net.opengis.swe.x10.AnyScalarPropertyType)get_store().insert_element_user(FIELD$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "field" element
     */
    public net.opengis.swe.x10.AnyScalarPropertyType addNewField()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.AnyScalarPropertyType target = null;
            target = (net.opengis.swe.x10.AnyScalarPropertyType)get_store().add_element_user(FIELD$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "field" element
     */
    public void removeField(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIELD$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy