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

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

There is a newer version: 2.7.0
Show newest version
/*
 * XML Type:  ProcessMethodType
 * Namespace: http://www.opengis.net/sensorml/2.0
 * Java type: net.opengis.sensorml.x20.ProcessMethodType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorml.x20.impl;
/**
 * An XML ProcessMethodType(@http://www.opengis.net/sensorml/2.0).
 *
 * This is a complex type.
 */
public class ProcessMethodTypeImpl extends net.opengis.swe.x20.impl.AbstractSWEIdentifiableTypeImpl implements net.opengis.sensorml.x20.ProcessMethodType
{
    private static final long serialVersionUID = 1L;
    
    public ProcessMethodTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ALGORITHM$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "algorithm");
    
    
    /**
     * Gets array of all "algorithm" elements
     */
    public net.opengis.sensorml.x20.ProcessMethodType.Algorithm[] getAlgorithmArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ALGORITHM$0, targetList);
            net.opengis.sensorml.x20.ProcessMethodType.Algorithm[] result = new net.opengis.sensorml.x20.ProcessMethodType.Algorithm[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "algorithm" element
     */
    public net.opengis.sensorml.x20.ProcessMethodType.Algorithm getAlgorithmArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ProcessMethodType.Algorithm target = null;
            target = (net.opengis.sensorml.x20.ProcessMethodType.Algorithm)get_store().find_element_user(ALGORITHM$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "algorithm" element
     */
    public int sizeOfAlgorithmArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ALGORITHM$0);
        }
    }
    
    /**
     * Sets array of all "algorithm" element
     */
    public void setAlgorithmArray(net.opengis.sensorml.x20.ProcessMethodType.Algorithm[] algorithmArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(algorithmArray, ALGORITHM$0);
        }
    }
    
    /**
     * Sets ith "algorithm" element
     */
    public void setAlgorithmArray(int i, net.opengis.sensorml.x20.ProcessMethodType.Algorithm algorithm)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ProcessMethodType.Algorithm target = null;
            target = (net.opengis.sensorml.x20.ProcessMethodType.Algorithm)get_store().find_element_user(ALGORITHM$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(algorithm);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "algorithm" element
     */
    public net.opengis.sensorml.x20.ProcessMethodType.Algorithm insertNewAlgorithm(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ProcessMethodType.Algorithm target = null;
            target = (net.opengis.sensorml.x20.ProcessMethodType.Algorithm)get_store().insert_element_user(ALGORITHM$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "algorithm" element
     */
    public net.opengis.sensorml.x20.ProcessMethodType.Algorithm addNewAlgorithm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ProcessMethodType.Algorithm target = null;
            target = (net.opengis.sensorml.x20.ProcessMethodType.Algorithm)get_store().add_element_user(ALGORITHM$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "algorithm" element
     */
    public void removeAlgorithm(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ALGORITHM$0, i);
        }
    }
    /**
     * An XML algorithm(@http://www.opengis.net/sensorml/2.0).
     *
     * This is a complex type.
     */
    public static class AlgorithmImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.ProcessMethodType.Algorithm
    {
        private static final long serialVersionUID = 1L;
        
        public AlgorithmImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ABSTRACTALGORITHM$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "AbstractAlgorithm");
        
        
        /**
         * Gets the "AbstractAlgorithm" element
         */
        public net.opengis.sensorml.x20.AbstractAlgorithmType getAbstractAlgorithm()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.AbstractAlgorithmType target = null;
                target = (net.opengis.sensorml.x20.AbstractAlgorithmType)get_store().find_element_user(ABSTRACTALGORITHM$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "AbstractAlgorithm" element
         */
        public void setAbstractAlgorithm(net.opengis.sensorml.x20.AbstractAlgorithmType abstractAlgorithm)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.AbstractAlgorithmType target = null;
                target = (net.opengis.sensorml.x20.AbstractAlgorithmType)get_store().find_element_user(ABSTRACTALGORITHM$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sensorml.x20.AbstractAlgorithmType)get_store().add_element_user(ABSTRACTALGORITHM$0);
                }
                target.set(abstractAlgorithm);
            }
        }
        
        /**
         * Appends and returns a new empty "AbstractAlgorithm" element
         */
        public net.opengis.sensorml.x20.AbstractAlgorithmType addNewAbstractAlgorithm()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.AbstractAlgorithmType target = null;
                target = (net.opengis.sensorml.x20.AbstractAlgorithmType)get_store().add_element_user(ABSTRACTALGORITHM$0);
                return target;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy