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

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

There is a newer version: 2.7.0
Show newest version
/*
 * XML Type:  AbstractPhysicalProcessType
 * Namespace: http://www.opengis.net/sensorml/2.0
 * Java type: net.opengis.sensorml.x20.AbstractPhysicalProcessType
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorml.x20.impl;
/**
 * An XML AbstractPhysicalProcessType(@http://www.opengis.net/sensorml/2.0).
 *
 * This is a complex type.
 */
public class AbstractPhysicalProcessTypeImpl extends net.opengis.sensorml.x20.impl.AbstractProcessTypeImpl implements net.opengis.sensorml.x20.AbstractPhysicalProcessType
{
    private static final long serialVersionUID = 1L;
    
    public AbstractPhysicalProcessTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ATTACHEDTO$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "attachedTo");
    private static final javax.xml.namespace.QName LOCALREFERENCEFRAME$2 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "localReferenceFrame");
    private static final javax.xml.namespace.QName LOCALTIMEFRAME$4 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "localTimeFrame");
    private static final javax.xml.namespace.QName POSITION$6 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "position");
    private static final javax.xml.namespace.QName TIMEPOSITION$8 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "timePosition");
    
    
    /**
     * Gets the "attachedTo" element
     */
    public net.opengis.gml.x32.ReferenceType getAttachedTo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.x32.ReferenceType target = null;
            target = (net.opengis.gml.x32.ReferenceType)get_store().find_element_user(ATTACHEDTO$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "attachedTo" element
     */
    public boolean isSetAttachedTo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ATTACHEDTO$0) != 0;
        }
    }
    
    /**
     * Sets the "attachedTo" element
     */
    public void setAttachedTo(net.opengis.gml.x32.ReferenceType attachedTo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.x32.ReferenceType target = null;
            target = (net.opengis.gml.x32.ReferenceType)get_store().find_element_user(ATTACHEDTO$0, 0);
            if (target == null)
            {
                target = (net.opengis.gml.x32.ReferenceType)get_store().add_element_user(ATTACHEDTO$0);
            }
            target.set(attachedTo);
        }
    }
    
    /**
     * Appends and returns a new empty "attachedTo" element
     */
    public net.opengis.gml.x32.ReferenceType addNewAttachedTo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.x32.ReferenceType target = null;
            target = (net.opengis.gml.x32.ReferenceType)get_store().add_element_user(ATTACHEDTO$0);
            return target;
        }
    }
    
    /**
     * Unsets the "attachedTo" element
     */
    public void unsetAttachedTo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ATTACHEDTO$0, 0);
        }
    }
    
    /**
     * Gets array of all "localReferenceFrame" elements
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame[] getLocalReferenceFrameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(LOCALREFERENCEFRAME$2, targetList);
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame[] result = new net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "localReferenceFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame getLocalReferenceFrameArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame)get_store().find_element_user(LOCALREFERENCEFRAME$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "localReferenceFrame" element
     */
    public int sizeOfLocalReferenceFrameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOCALREFERENCEFRAME$2);
        }
    }
    
    /**
     * Sets array of all "localReferenceFrame" element
     */
    public void setLocalReferenceFrameArray(net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame[] localReferenceFrameArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(localReferenceFrameArray, LOCALREFERENCEFRAME$2);
        }
    }
    
    /**
     * Sets ith "localReferenceFrame" element
     */
    public void setLocalReferenceFrameArray(int i, net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame localReferenceFrame)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame)get_store().find_element_user(LOCALREFERENCEFRAME$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(localReferenceFrame);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "localReferenceFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame insertNewLocalReferenceFrame(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame)get_store().insert_element_user(LOCALREFERENCEFRAME$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "localReferenceFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame addNewLocalReferenceFrame()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame)get_store().add_element_user(LOCALREFERENCEFRAME$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "localReferenceFrame" element
     */
    public void removeLocalReferenceFrame(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOCALREFERENCEFRAME$2, i);
        }
    }
    
    /**
     * Gets array of all "localTimeFrame" elements
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame[] getLocalTimeFrameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(LOCALTIMEFRAME$4, targetList);
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame[] result = new net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "localTimeFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame getLocalTimeFrameArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame)get_store().find_element_user(LOCALTIMEFRAME$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "localTimeFrame" element
     */
    public int sizeOfLocalTimeFrameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOCALTIMEFRAME$4);
        }
    }
    
    /**
     * Sets array of all "localTimeFrame" element
     */
    public void setLocalTimeFrameArray(net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame[] localTimeFrameArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(localTimeFrameArray, LOCALTIMEFRAME$4);
        }
    }
    
    /**
     * Sets ith "localTimeFrame" element
     */
    public void setLocalTimeFrameArray(int i, net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame localTimeFrame)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame)get_store().find_element_user(LOCALTIMEFRAME$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(localTimeFrame);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "localTimeFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame insertNewLocalTimeFrame(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame)get_store().insert_element_user(LOCALTIMEFRAME$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "localTimeFrame" element
     */
    public net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame addNewLocalTimeFrame()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame target = null;
            target = (net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame)get_store().add_element_user(LOCALTIMEFRAME$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "localTimeFrame" element
     */
    public void removeLocalTimeFrame(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOCALTIMEFRAME$4, i);
        }
    }
    
    /**
     * Gets array of all "position" elements
     */
    public net.opengis.sensorml.x20.PositionUnionPropertyType[] getPositionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(POSITION$6, targetList);
            net.opengis.sensorml.x20.PositionUnionPropertyType[] result = new net.opengis.sensorml.x20.PositionUnionPropertyType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "position" element
     */
    public net.opengis.sensorml.x20.PositionUnionPropertyType getPositionArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.PositionUnionPropertyType target = null;
            target = (net.opengis.sensorml.x20.PositionUnionPropertyType)get_store().find_element_user(POSITION$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "position" element
     */
    public int sizeOfPositionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(POSITION$6);
        }
    }
    
    /**
     * Sets array of all "position" element
     */
    public void setPositionArray(net.opengis.sensorml.x20.PositionUnionPropertyType[] positionArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(positionArray, POSITION$6);
        }
    }
    
    /**
     * Sets ith "position" element
     */
    public void setPositionArray(int i, net.opengis.sensorml.x20.PositionUnionPropertyType position)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.PositionUnionPropertyType target = null;
            target = (net.opengis.sensorml.x20.PositionUnionPropertyType)get_store().find_element_user(POSITION$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(position);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "position" element
     */
    public net.opengis.sensorml.x20.PositionUnionPropertyType insertNewPosition(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.PositionUnionPropertyType target = null;
            target = (net.opengis.sensorml.x20.PositionUnionPropertyType)get_store().insert_element_user(POSITION$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "position" element
     */
    public net.opengis.sensorml.x20.PositionUnionPropertyType addNewPosition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorml.x20.PositionUnionPropertyType target = null;
            target = (net.opengis.sensorml.x20.PositionUnionPropertyType)get_store().add_element_user(POSITION$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "position" element
     */
    public void removePosition(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(POSITION$6, i);
        }
    }
    
    /**
     * Gets array of all "timePosition" elements
     */
    public net.opengis.swe.x20.TimePropertyType[] getTimePositionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(TIMEPOSITION$8, targetList);
            net.opengis.swe.x20.TimePropertyType[] result = new net.opengis.swe.x20.TimePropertyType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "timePosition" element
     */
    public net.opengis.swe.x20.TimePropertyType getTimePositionArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TimePropertyType target = null;
            target = (net.opengis.swe.x20.TimePropertyType)get_store().find_element_user(TIMEPOSITION$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "timePosition" element
     */
    public int sizeOfTimePositionArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TIMEPOSITION$8);
        }
    }
    
    /**
     * Sets array of all "timePosition" element
     */
    public void setTimePositionArray(net.opengis.swe.x20.TimePropertyType[] timePositionArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(timePositionArray, TIMEPOSITION$8);
        }
    }
    
    /**
     * Sets ith "timePosition" element
     */
    public void setTimePositionArray(int i, net.opengis.swe.x20.TimePropertyType timePosition)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TimePropertyType target = null;
            target = (net.opengis.swe.x20.TimePropertyType)get_store().find_element_user(TIMEPOSITION$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(timePosition);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "timePosition" element
     */
    public net.opengis.swe.x20.TimePropertyType insertNewTimePosition(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TimePropertyType target = null;
            target = (net.opengis.swe.x20.TimePropertyType)get_store().insert_element_user(TIMEPOSITION$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "timePosition" element
     */
    public net.opengis.swe.x20.TimePropertyType addNewTimePosition()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TimePropertyType target = null;
            target = (net.opengis.swe.x20.TimePropertyType)get_store().add_element_user(TIMEPOSITION$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "timePosition" element
     */
    public void removeTimePosition(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TIMEPOSITION$8, i);
        }
    }
    /**
     * An XML localReferenceFrame(@http://www.opengis.net/sensorml/2.0).
     *
     * This is a complex type.
     */
    public static class LocalReferenceFrameImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalReferenceFrame
    {
        private static final long serialVersionUID = 1L;
        
        public LocalReferenceFrameImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SPATIALFRAME$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "SpatialFrame");
        
        
        /**
         * Gets the "SpatialFrame" element
         */
        public net.opengis.sensorml.x20.SpatialFrameType getSpatialFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.SpatialFrameType target = null;
                target = (net.opengis.sensorml.x20.SpatialFrameType)get_store().find_element_user(SPATIALFRAME$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "SpatialFrame" element
         */
        public void setSpatialFrame(net.opengis.sensorml.x20.SpatialFrameType spatialFrame)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.SpatialFrameType target = null;
                target = (net.opengis.sensorml.x20.SpatialFrameType)get_store().find_element_user(SPATIALFRAME$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sensorml.x20.SpatialFrameType)get_store().add_element_user(SPATIALFRAME$0);
                }
                target.set(spatialFrame);
            }
        }
        
        /**
         * Appends and returns a new empty "SpatialFrame" element
         */
        public net.opengis.sensorml.x20.SpatialFrameType addNewSpatialFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.SpatialFrameType target = null;
                target = (net.opengis.sensorml.x20.SpatialFrameType)get_store().add_element_user(SPATIALFRAME$0);
                return target;
            }
        }
    }
    /**
     * An XML localTimeFrame(@http://www.opengis.net/sensorml/2.0).
     *
     * This is a complex type.
     */
    public static class LocalTimeFrameImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.AbstractPhysicalProcessType.LocalTimeFrame
    {
        private static final long serialVersionUID = 1L;
        
        public LocalTimeFrameImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TEMPORALFRAME$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "TemporalFrame");
        
        
        /**
         * Gets the "TemporalFrame" element
         */
        public net.opengis.sensorml.x20.TemporalFrameType getTemporalFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TemporalFrameType target = null;
                target = (net.opengis.sensorml.x20.TemporalFrameType)get_store().find_element_user(TEMPORALFRAME$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "TemporalFrame" element
         */
        public void setTemporalFrame(net.opengis.sensorml.x20.TemporalFrameType temporalFrame)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TemporalFrameType target = null;
                target = (net.opengis.sensorml.x20.TemporalFrameType)get_store().find_element_user(TEMPORALFRAME$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sensorml.x20.TemporalFrameType)get_store().add_element_user(TEMPORALFRAME$0);
                }
                target.set(temporalFrame);
            }
        }
        
        /**
         * Appends and returns a new empty "TemporalFrame" element
         */
        public net.opengis.sensorml.x20.TemporalFrameType addNewTemporalFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sensorml.x20.TemporalFrameType target = null;
                target = (net.opengis.sensorml.x20.TemporalFrameType)get_store().add_element_user(TEMPORALFRAME$0);
                return target;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy