⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getaddresponsedocumentimpl.java

📁 JAVA的Web Service应用
💻 JAVA
字号:
/*
 * An XML document type.
 * Localname: getAddResponse
 * Namespace: http://xmlbeans.service.address.samples
 * Java type: samples.address.service.xmlbeans.GetAddResponseDocument
 *
 * Automatically generated - do not modify.
 */
package samples.address.service.xmlbeans.impl;

/**
 * A document containing one getAddResponse(@http://xmlbeans.service.address.samples) element.
 *
 * This is a complex type.
 */
public class GetAddResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
    implements samples.address.service.xmlbeans.GetAddResponseDocument {
    private static final javax.xml.namespace.QName GETADDRESPONSE$0 = new javax.xml.namespace.QName("http://xmlbeans.service.address.samples",
            "getAddResponse");

    public GetAddResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    /**
     * Gets the "getAddResponse" element
     */
    public samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse getGetAddResponse() {
        synchronized (monitor()) {
            check_orphaned();

            samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse target =
                null;
            target = (samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse) get_store()
                                                                                                  .find_element_user(GETADDRESPONSE$0,
                    0);

            if (target == null) {
                return null;
            }

            return target;
        }
    }

    /**
     * Sets the "getAddResponse" element
     */
    public void setGetAddResponse(
        samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse getAddResponse) {
        synchronized (monitor()) {
            check_orphaned();

            samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse target =
                null;
            target = (samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse) get_store()
                                                                                                  .find_element_user(GETADDRESPONSE$0,
                    0);

            if (target == null) {
                target = (samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse) get_store()
                                                                                                      .add_element_user(GETADDRESPONSE$0);
            }

            target.set(getAddResponse);
        }
    }

    /**
     * Appends and returns a new empty "getAddResponse" element
     */
    public samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse addNewGetAddResponse() {
        synchronized (monitor()) {
            check_orphaned();

            samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse target =
                null;
            target = (samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse) get_store()
                                                                                                  .add_element_user(GETADDRESPONSE$0);

            return target;
        }
    }

    /**
     * An XML getAddResponse(@http://xmlbeans.service.address.samples).
     *
     * This is a complex type.
     */
    public static class GetAddResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
        implements samples.address.service.xmlbeans.GetAddResponseDocument.GetAddResponse {
        private static final javax.xml.namespace.QName RETURN$0 = new javax.xml.namespace.QName("http://xmlbeans.service.address.samples",
                "return");

        public GetAddResponseImpl(org.apache.xmlbeans.SchemaType sType) {
            super(sType);
        }

        /**
         * Gets the "return" element
         */
        public java.lang.String getReturn() {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue) get_store()
                                                               .find_element_user(RETURN$0,
                        0);

                if (target == null) {
                    return null;
                }

                return target.getStringValue();
            }
        }

        /**
         * Gets (as xml) the "return" element
         */
        public org.apache.xmlbeans.XmlString xgetReturn() {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString) get_store()
                                                             .find_element_user(RETURN$0,
                        0);

                return target;
            }
        }

        /**
         * Tests for nil "return" element
         */
        public boolean isNilReturn() {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString) get_store()
                                                             .find_element_user(RETURN$0,
                        0);

                if (target == null) {
                    return false;
                }

                return target.isNil();
            }
        }

        /**
         * True if has "return" element
         */
        public boolean isSetReturn() {
            synchronized (monitor()) {
                check_orphaned();

                return get_store().count_elements(RETURN$0) != 0;
            }
        }

        /**
         * Sets the "return" element
         */
        public void setReturn(java.lang.String xreturn) {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue) get_store()
                                                               .find_element_user(RETURN$0,
                        0);

                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue) get_store()
                                                                   .add_element_user(RETURN$0);
                }

                target.setStringValue(xreturn);
            }
        }

        /**
         * Sets (as xml) the "return" element
         */
        public void xsetReturn(org.apache.xmlbeans.XmlString xreturn) {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString) get_store()
                                                             .find_element_user(RETURN$0,
                        0);

                if (target == null) {
                    target = (org.apache.xmlbeans.XmlString) get_store()
                                                                 .add_element_user(RETURN$0);
                }

                target.set(xreturn);
            }
        }

        /**
         * Nils the "return" element
         */
        public void setNilReturn() {
            synchronized (monitor()) {
                check_orphaned();

                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString) get_store()
                                                             .find_element_user(RETURN$0,
                        0);

                if (target == null) {
                    target = (org.apache.xmlbeans.XmlString) get_store()
                                                                 .add_element_user(RETURN$0);
                }

                target.setNil();
            }
        }

        /**
         * Unsets the "return" element
         */
        public void unsetReturn() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(RETURN$0, 0);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -