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

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

There is a newer version: 2.7.0
Show newest version
/*
 * XML Type:  ClassifierListType
 * Namespace: http://www.opengis.net/sensorml/2.0
 * Java type: net.opengis.sensorml.x20.ClassifierListType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorml.x20.impl;
/**
 * An XML ClassifierListType(@http://www.opengis.net/sensorml/2.0).
 *
 * This is a complex type.
 */
public class ClassifierListTypeImpl extends net.opengis.sensorml.x20.impl.AbstractMetadataListTypeImpl implements net.opengis.sensorml.x20.ClassifierListType
{
    private static final long serialVersionUID = 1L;
    
    public ClassifierListTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CLASSIFIER$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "classifier");
    
    
    /**
     * Gets array of all "classifier" elements
     */
    public net.opengis.sensorml.x20.ClassifierListType.Classifier[] getClassifierArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CLASSIFIER$0, targetList);
            net.opengis.sensorml.x20.ClassifierListType.Classifier[] result = new net.opengis.sensorml.x20.ClassifierListType.Classifier[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "classifier" element
     */
    public net.opengis.sensorml.x20.ClassifierListType.Classifier getClassifierArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ClassifierListType.Classifier target = null;
            target = (net.opengis.sensorml.x20.ClassifierListType.Classifier)get_store().find_element_user(CLASSIFIER$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "classifier" element
     */
    public int sizeOfClassifierArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CLASSIFIER$0);
        }
    }
    
    /**
     * Sets array of all "classifier" element
     */
    public void setClassifierArray(net.opengis.sensorml.x20.ClassifierListType.Classifier[] classifierArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(classifierArray, CLASSIFIER$0);
        }
    }
    
    /**
     * Sets ith "classifier" element
     */
    public void setClassifierArray(int i, net.opengis.sensorml.x20.ClassifierListType.Classifier classifier)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ClassifierListType.Classifier target = null;
            target = (net.opengis.sensorml.x20.ClassifierListType.Classifier)get_store().find_element_user(CLASSIFIER$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(classifier);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "classifier" element
     */
    public net.opengis.sensorml.x20.ClassifierListType.Classifier insertNewClassifier(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ClassifierListType.Classifier target = null;
            target = (net.opengis.sensorml.x20.ClassifierListType.Classifier)get_store().insert_element_user(CLASSIFIER$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "classifier" element
     */
    public net.opengis.sensorml.x20.ClassifierListType.Classifier addNewClassifier()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.ClassifierListType.Classifier target = null;
            target = (net.opengis.sensorml.x20.ClassifierListType.Classifier)get_store().add_element_user(CLASSIFIER$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "classifier" element
     */
    public void removeClassifier(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CLASSIFIER$0, i);
        }
    }
    /**
     * An XML classifier(@http://www.opengis.net/sensorml/2.0).
     *
     * This is a complex type.
     */
    public static class ClassifierImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.ClassifierListType.Classifier
    {
        private static final long serialVersionUID = 1L;
        
        public ClassifierImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TERM$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "Term");
        
        
        /**
         * Gets the "Term" element
         */
        public net.opengis.sensorml.x20.TermType getTerm()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TermType target = null;
                target = (net.opengis.sensorml.x20.TermType)get_store().find_element_user(TERM$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "Term" element
         */
        public void setTerm(net.opengis.sensorml.x20.TermType term)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TermType target = null;
                target = (net.opengis.sensorml.x20.TermType)get_store().find_element_user(TERM$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sensorml.x20.TermType)get_store().add_element_user(TERM$0);
                }
                target.set(term);
            }
        }
        
        /**
         * Appends and returns a new empty "Term" element
         */
        public net.opengis.sensorml.x20.TermType addNewTerm()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TermType target = null;
                target = (net.opengis.sensorml.x20.TermType)get_store().add_element_user(TERM$0);
                return target;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy