stringdocumentimpl.java

来自「JAVA的Web Service应用」· Java 代码 · 共 81 行

JAVA
81
字号
/*
 * An XML document type.
 * Localname: string
 * Namespace: http://schemas.xmlsoap.org/soap/encoding/
 * Java type: org.xmlsoap.schemas.soap.encoding.StringDocument
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.soap.encoding.impl;

/**
 * A document containing one string(@http://schemas.xmlsoap.org/soap/encoding/) element.
 *
 * This is a complex type.
 */
public class StringDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
    implements org.xmlsoap.schemas.soap.encoding.StringDocument {
    private static final javax.xml.namespace.QName STRING$0 = new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/",
            "string");

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

    /**
     * Gets the "string" element
     */
    public org.xmlsoap.schemas.soap.encoding.String getString() {
        synchronized (monitor()) {
            check_orphaned();

            org.xmlsoap.schemas.soap.encoding.String target = null;
            target = (org.xmlsoap.schemas.soap.encoding.String) get_store()
                                                                    .find_element_user(STRING$0,
                    0);

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

            return target;
        }
    }

    /**
     * Sets the "string" element
     */
    public void setString(org.xmlsoap.schemas.soap.encoding.String string) {
        synchronized (monitor()) {
            check_orphaned();

            org.xmlsoap.schemas.soap.encoding.String target = null;
            target = (org.xmlsoap.schemas.soap.encoding.String) get_store()
                                                                    .find_element_user(STRING$0,
                    0);

            if (target == null) {
                target = (org.xmlsoap.schemas.soap.encoding.String) get_store()
                                                                        .add_element_user(STRING$0);
            }

            target.set(string);
        }
    }

    /**
     * Appends and returns a new empty "string" element
     */
    public org.xmlsoap.schemas.soap.encoding.String addNewString() {
        synchronized (monitor()) {
            check_orphaned();

            org.xmlsoap.schemas.soap.encoding.String target = null;
            target = (org.xmlsoap.schemas.soap.encoding.String) get_store()
                                                                    .add_element_user(STRING$0);

            return target;
        }
    }
}

⌨️ 快捷键说明

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