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

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

/*
 * An XML document type.
 * Localname: CancelRequestResponse
 * Namespace: http://www.opengis.net/sps/1.0
 * Java type: net.opengis.sps.x10.CancelRequestResponseDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sps.x10.impl;
/**
 * A document containing one CancelRequestResponse(@http://www.opengis.net/sps/1.0) element.
 *
 * This is a complex type.
 */
public class CancelRequestResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.CancelRequestResponseDocument
{
    private static final long serialVersionUID = 1L;
    
    public CancelRequestResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CANCELREQUESTRESPONSE$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "CancelRequestResponse");
    
    
    /**
     * Gets the "CancelRequestResponse" element
     */
    public net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse getCancelRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse target = null;
            target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse)get_store().find_element_user(CANCELREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CancelRequestResponse" element
     */
    public void setCancelRequestResponse(net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse cancelRequestResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse target = null;
            target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse)get_store().find_element_user(CANCELREQUESTRESPONSE$0, 0);
            if (target == null)
            {
                target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse)get_store().add_element_user(CANCELREQUESTRESPONSE$0);
            }
            target.set(cancelRequestResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "CancelRequestResponse" element
     */
    public net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse addNewCancelRequestResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse target = null;
            target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse)get_store().add_element_user(CANCELREQUESTRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML CancelRequestResponse(@http://www.opengis.net/sps/1.0).
     *
     * This is a complex type.
     */
    public static class CancelRequestResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse
    {
        private static final long serialVersionUID = 1L;
        
        public CancelRequestResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TASKID$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "taskID");
        private static final javax.xml.namespace.QName STATUS$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "status");
        private static final javax.xml.namespace.QName DESCRIPTION$4 = 
            new javax.xml.namespace.QName("http://www.opengis.net/gml", "description");
        
        
        /**
         * Gets the "taskID" element
         */
        public java.lang.String getTaskID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TASKID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "taskID" element
         */
        public org.apache.xmlbeans.XmlToken xgetTaskID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(TASKID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "taskID" element
         */
        public void setTaskID(java.lang.String taskID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TASKID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TASKID$0);
                }
                target.setStringValue(taskID);
            }
        }
        
        /**
         * Sets (as xml) the "taskID" element
         */
        public void xsetTaskID(org.apache.xmlbeans.XmlToken taskID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(TASKID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlToken)get_store().add_element_user(TASKID$0);
                }
                target.set(taskID);
            }
        }
        
        /**
         * Gets the "status" element
         */
        public net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status.Enum getStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$2, 0);
                if (target == null)
                {
                    return null;
                }
                return (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "status" element
         */
        public net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status xgetStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status target = null;
                target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status)get_store().find_element_user(STATUS$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "status" element
         */
        public void setStatus(net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status.Enum status)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$2);
                }
                target.setEnumValue(status);
            }
        }
        
        /**
         * Sets (as xml) the "status" element
         */
        public void xsetStatus(net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status status)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status target = null;
                target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status)get_store().find_element_user(STATUS$2, 0);
                if (target == null)
                {
                    target = (net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status)get_store().add_element_user(STATUS$2);
                }
                target.set(status);
            }
        }
        
        /**
         * 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);
            }
        }
        /**
         * An XML status(@http://www.opengis.net/sps/1.0).
         *
         * This is an atomic type that is a restriction of net.opengis.sps.x10.CancelRequestResponseDocument$CancelRequestResponse$Status.
         */
        public static class StatusImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements net.opengis.sps.x10.CancelRequestResponseDocument.CancelRequestResponse.Status
        {
            private static final long serialVersionUID = 1L;
            
            public StatusImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected StatusImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy