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

net.opengis.sps.x10.impl.GetFeasibilityRequestResponseDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: GetFeasibilityRequestResponse
 * Namespace: http://www.opengis.net/sps/1.0
 * Java type: net.opengis.sps.x10.GetFeasibilityRequestResponseDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sps.x10.impl;
/**
 * A document containing one GetFeasibilityRequestResponse(@http://www.opengis.net/sps/1.0) element.
 *
 * This is a complex type.
 */
public class GetFeasibilityRequestResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.GetFeasibilityRequestResponseDocument
{
    private static final long serialVersionUID = 1L;
    
    public GetFeasibilityRequestResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GETFEASIBILITYREQUESTRESPONSE$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "GetFeasibilityRequestResponse");
    
    
    /**
     * Gets the "GetFeasibilityRequestResponse" element
     */
    public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse getGetFeasibilityRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse target = null;
            target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse)get_store().find_element_user(GETFEASIBILITYREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "GetFeasibilityRequestResponse" element
     */
    public void setGetFeasibilityRequestResponse(net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse getFeasibilityRequestResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse target = null;
            target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse)get_store().find_element_user(GETFEASIBILITYREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse)get_store().add_element_user(GETFEASIBILITYREQUESTRESPONSE$0);
            }
            target.set(getFeasibilityRequestResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "GetFeasibilityRequestResponse" element
     */
    public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse addNewGetFeasibilityRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse target = null;
            target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse)get_store().add_element_user(GETFEASIBILITYREQUESTRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML GetFeasibilityRequestResponse(@http://www.opengis.net/sps/1.0).
     *
     * This is a complex type.
     */
    public static class GetFeasibilityRequestResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse
    {
        private static final long serialVersionUID = 1L;
        
        public GetFeasibilityRequestResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FEASIBILITYID$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "feasibilityID");
        private static final javax.xml.namespace.QName FEASIBILITY$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "feasibility");
        private static final javax.xml.namespace.QName DESCRIPTION$4 = 
            new javax.xml.namespace.QName("http://www.opengis.net/gml", "description");
        private static final javax.xml.namespace.QName LATESTRESPONSETIME$6 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "LatestResponseTime");
        private static final javax.xml.namespace.QName ALTERNATIVE$8 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "alternative");
        
        
        /**
         * Gets the "feasibilityID" element
         */
        public java.lang.String getFeasibilityID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEASIBILITYID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "feasibilityID" element
         */
        public org.apache.xmlbeans.XmlString xgetFeasibilityID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FEASIBILITYID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "feasibilityID" element
         */
        public void setFeasibilityID(java.lang.String feasibilityID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEASIBILITYID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FEASIBILITYID$0);
                }
                target.setStringValue(feasibilityID);
            }
        }
        
        /**
         * Sets (as xml) the "feasibilityID" element
         */
        public void xsetFeasibilityID(org.apache.xmlbeans.XmlString feasibilityID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FEASIBILITYID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FEASIBILITYID$0);
                }
                target.set(feasibilityID);
            }
        }
        
        /**
         * Gets the "feasibility" element
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility.Enum getFeasibility()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEASIBILITY$2, 0);
                if (target == null)
                {
                    return null;
                }
                return (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "feasibility" element
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility xgetFeasibility()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility)get_store().find_element_user(FEASIBILITY$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "feasibility" element
         */
        public void setFeasibility(net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility.Enum feasibility)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEASIBILITY$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FEASIBILITY$2);
                }
                target.setEnumValue(feasibility);
            }
        }
        
        /**
         * Sets (as xml) the "feasibility" element
         */
        public void xsetFeasibility(net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility feasibility)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility)get_store().find_element_user(FEASIBILITY$2, 0);
                if (target == null)
                {
                    target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility)get_store().add_element_user(FEASIBILITY$2);
                }
                target.set(feasibility);
            }
        }
        
        /**
         * Gets the "description" element
         */
        public net.opengis.gml.StringOrRefType getDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.StringOrRefType target = null;
                target = (net.opengis.gml.StringOrRefType)get_store().find_element_user(DESCRIPTION$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "description" element
         */
        public boolean isSetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(DESCRIPTION$4) != 0;
            }
        }
        
        /**
         * Sets the "description" element
         */
        public void setDescription(net.opengis.gml.StringOrRefType description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.StringOrRefType target = null;
                target = (net.opengis.gml.StringOrRefType)get_store().find_element_user(DESCRIPTION$4, 0);
                if (target == null)
                {
                    target = (net.opengis.gml.StringOrRefType)get_store().add_element_user(DESCRIPTION$4);
                }
                target.set(description);
            }
        }
        
        /**
         * Appends and returns a new empty "description" element
         */
        public net.opengis.gml.StringOrRefType addNewDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.StringOrRefType target = null;
                target = (net.opengis.gml.StringOrRefType)get_store().add_element_user(DESCRIPTION$4);
                return target;
            }
        }
        
        /**
         * Unsets the "description" element
         */
        public void unsetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(DESCRIPTION$4, 0);
            }
        }
        
        /**
         * Gets the "LatestResponseTime" element
         */
        public net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime getLatestResponseTime()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime target = null;
                target = (net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime)get_store().find_element_user(LATESTRESPONSETIME$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "LatestResponseTime" element
         */
        public void setLatestResponseTime(net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime latestResponseTime)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime target = null;
                target = (net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime)get_store().find_element_user(LATESTRESPONSETIME$6, 0);
                if (target == null)
                {
                    target = (net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime)get_store().add_element_user(LATESTRESPONSETIME$6);
                }
                target.set(latestResponseTime);
            }
        }
        
        /**
         * Appends and returns a new empty "LatestResponseTime" element
         */
        public net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime addNewLatestResponseTime()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime target = null;
                target = (net.opengis.sps.x10.LatestResponseTimeDocument.LatestResponseTime)get_store().add_element_user(LATESTRESPONSETIME$6);
                return target;
            }
        }
        
        /**
         * Gets array of all "alternative" elements
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative[] getAlternativeArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(ALTERNATIVE$8, targetList);
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative[] result = new net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "alternative" element
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative getAlternativeArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative)get_store().find_element_user(ALTERNATIVE$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "alternative" element
         */
        public int sizeOfAlternativeArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ALTERNATIVE$8);
            }
        }
        
        /**
         * Sets array of all "alternative" element
         */
        public void setAlternativeArray(net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative[] alternativeArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(alternativeArray, ALTERNATIVE$8);
            }
        }
        
        /**
         * Sets ith "alternative" element
         */
        public void setAlternativeArray(int i, net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative alternative)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative)get_store().find_element_user(ALTERNATIVE$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(alternative);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "alternative" element
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative insertNewAlternative(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative)get_store().insert_element_user(ALTERNATIVE$8, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "alternative" element
         */
        public net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative addNewAlternative()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative target = null;
                target = (net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative)get_store().add_element_user(ALTERNATIVE$8);
                return target;
            }
        }
        
        /**
         * Removes the ith "alternative" element
         */
        public void removeAlternative(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ALTERNATIVE$8, i);
            }
        }
        /**
         * An XML feasibility(@http://www.opengis.net/sps/1.0).
         *
         * This is an atomic type that is a restriction of net.opengis.sps.x10.GetFeasibilityRequestResponseDocument$GetFeasibilityRequestResponse$Feasibility.
         */
        public static class FeasibilityImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Feasibility
        {
            private static final long serialVersionUID = 1L;
            
            public FeasibilityImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected FeasibilityImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML alternative(@http://www.opengis.net/sps/1.0).
         *
         * This is a complex type.
         */
        public static class AlternativeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.GetFeasibilityRequestResponseDocument.GetFeasibilityRequestResponse.Alternative
        {
            private static final long serialVersionUID = 1L;
            
            public AlternativeImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName INPUTPARAMETER$0 = 
                new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "InputParameter");
            
            
            /**
             * Gets array of all "InputParameter" elements
             */
            public net.opengis.sps.x10.InputParameterType[] getInputParameterArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    java.util.List targetList = new java.util.ArrayList();
                    get_store().find_all_element_users(INPUTPARAMETER$0, targetList);
                    net.opengis.sps.x10.InputParameterType[] result = new net.opengis.sps.x10.InputParameterType[targetList.size()];
                    targetList.toArray(result);
                    return result;
                }
            }
            
            /**
             * Gets ith "InputParameter" element
             */
            public net.opengis.sps.x10.InputParameterType getInputParameterArray(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sps.x10.InputParameterType target = null;
                    target = (net.opengis.sps.x10.InputParameterType)get_store().find_element_user(INPUTPARAMETER$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    return target;
                }
            }
            
            /**
             * Returns number of "InputParameter" element
             */
            public int sizeOfInputParameterArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(INPUTPARAMETER$0);
                }
            }
            
            /**
             * Sets array of all "InputParameter" element
             */
            public void setInputParameterArray(net.opengis.sps.x10.InputParameterType[] inputParameterArray)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    arraySetterHelper(inputParameterArray, INPUTPARAMETER$0);
                }
            }
            
            /**
             * Sets ith "InputParameter" element
             */
            public void setInputParameterArray(int i, net.opengis.sps.x10.InputParameterType inputParameter)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sps.x10.InputParameterType target = null;
                    target = (net.opengis.sps.x10.InputParameterType)get_store().find_element_user(INPUTPARAMETER$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    target.set(inputParameter);
                }
            }
            
            /**
             * Inserts and returns a new empty value (as xml) as the ith "InputParameter" element
             */
            public net.opengis.sps.x10.InputParameterType insertNewInputParameter(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sps.x10.InputParameterType target = null;
                    target = (net.opengis.sps.x10.InputParameterType)get_store().insert_element_user(INPUTPARAMETER$0, i);
                    return target;
                }
            }
            
            /**
             * Appends and returns a new empty value (as xml) as the last "InputParameter" element
             */
            public net.opengis.sps.x10.InputParameterType addNewInputParameter()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sps.x10.InputParameterType target = null;
                    target = (net.opengis.sps.x10.InputParameterType)get_store().add_element_user(INPUTPARAMETER$0);
                    return target;
                }
            }
            
            /**
             * Removes the ith "InputParameter" element
             */
            public void removeInputParameter(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(INPUTPARAMETER$0, i);
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy