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

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

There is a newer version: 2.7.0
Show newest version
/*
 * XML Type:  CapabilityListType
 * Namespace: http://www.opengis.net/sensorml/2.0
 * Java type: net.opengis.sensorml.x20.CapabilityListType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorml.x20.impl;
/**
 * An XML CapabilityListType(@http://www.opengis.net/sensorml/2.0).
 *
 * This is a complex type.
 */
public class CapabilityListTypeImpl extends net.opengis.sensorml.x20.impl.AbstractMetadataListTypeImpl implements net.opengis.sensorml.x20.CapabilityListType
{
    private static final long serialVersionUID = 1L;
    
    public CapabilityListTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CAPABILITY$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "capability");
    
    
    /**
     * Gets array of all "capability" elements
     */
    public net.opengis.sensorml.x20.CapabilityListType.Capability[] getCapabilityArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(CAPABILITY$0, targetList);
            net.opengis.sensorml.x20.CapabilityListType.Capability[] result = new net.opengis.sensorml.x20.CapabilityListType.Capability[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "capability" element
     */
    public net.opengis.sensorml.x20.CapabilityListType.Capability getCapabilityArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.CapabilityListType.Capability target = null;
            target = (net.opengis.sensorml.x20.CapabilityListType.Capability)get_store().find_element_user(CAPABILITY$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "capability" element
     */
    public int sizeOfCapabilityArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CAPABILITY$0);
        }
    }
    
    /**
     * Sets array of all "capability" element
     */
    public void setCapabilityArray(net.opengis.sensorml.x20.CapabilityListType.Capability[] capabilityArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(capabilityArray, CAPABILITY$0);
        }
    }
    
    /**
     * Sets ith "capability" element
     */
    public void setCapabilityArray(int i, net.opengis.sensorml.x20.CapabilityListType.Capability capability)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.CapabilityListType.Capability target = null;
            target = (net.opengis.sensorml.x20.CapabilityListType.Capability)get_store().find_element_user(CAPABILITY$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(capability);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "capability" element
     */
    public net.opengis.sensorml.x20.CapabilityListType.Capability insertNewCapability(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.CapabilityListType.Capability target = null;
            target = (net.opengis.sensorml.x20.CapabilityListType.Capability)get_store().insert_element_user(CAPABILITY$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "capability" element
     */
    public net.opengis.sensorml.x20.CapabilityListType.Capability addNewCapability()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.CapabilityListType.Capability target = null;
            target = (net.opengis.sensorml.x20.CapabilityListType.Capability)get_store().add_element_user(CAPABILITY$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "capability" element
     */
    public void removeCapability(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CAPABILITY$0, i);
        }
    }
    /**
     * An XML capability(@http://www.opengis.net/sensorml/2.0).
     *
     * This is a complex type.
     */
    public static class CapabilityImpl extends net.opengis.swe.x20.impl.AbstractDataComponentPropertyTypeImpl implements net.opengis.sensorml.x20.CapabilityListType.Capability
    {
        private static final long serialVersionUID = 1L;
        
        public CapabilityImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName NAME$0 = 
            new javax.xml.namespace.QName("", "name");
        
        
        /**
         * Gets the "name" attribute
         */
        public java.lang.String getName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "name" attribute
         */
        public org.apache.xmlbeans.XmlNCName xgetName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlNCName target = null;
                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
                return target;
            }
        }
        
        /**
         * Sets the "name" attribute
         */
        public void setName(java.lang.String name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
                }
                target.setStringValue(name);
            }
        }
        
        /**
         * Sets (as xml) the "name" attribute
         */
        public void xsetName(org.apache.xmlbeans.XmlNCName name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlNCName target = null;
                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
                }
                target.set(name);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy