echostringresponse.java

来自「开源的axis2框架的源码。用于开发WEBSERVER」· Java 代码 · 共 130 行

JAVA
130
字号
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/**
 * EchoStringResponse.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: #axisVersion# #today#
 */
package server;

/**
 *  EchoStringResponse bean class
 */
public  class EchoStringResponse implements org.apache.axis2.databinding.ADBBean{
    
    public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
            "http://test",
            "echoStringResponse",
            "ns1");

    /**
     * field for EchoStringReturn
     */
    protected java.lang.String localEchoStringReturn;

    /**
     * Auto generated getter method
     * @return java.lang.String
     */
    public java.lang.String getEchoStringReturn() {
        return localEchoStringReturn;
    }

    /**
     * Auto generated setter method
     * @param param EchoStringReturn
     */
    public void setEchoStringReturn(java.lang.String param) {

        this.localEchoStringReturn = param;
    }

    /**
     * databinding method to get an XML representation of this object
     *
     */
    public javax.xml.stream.XMLStreamReader getPullParser(
            javax.xml.namespace.QName qName) {

        java.util.ArrayList elementList = new java.util.ArrayList();
        java.util.ArrayList attribList = new java.util.ArrayList();

        elementList.add(new javax.xml.namespace.QName("http://test",
                "echoStringReturn"));

        elementList.add(localEchoStringReturn == null ? null
                : org.apache.axis2.databinding.utils.ConverterUtil
                        .convertToString(localEchoStringReturn));

        return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
                qName, elementList.toArray(), attribList.toArray());

    }

    /**
     *  Factory class that keeps the parse method
     */
    public static class Factory {

        /**
         * static method to create the object
         */
        
    	public static EchoStringResponse parse(
                javax.xml.stream.XMLStreamReader reader)
                throws java.lang.Exception {
            EchoStringResponse object = new EchoStringResponse();
            try {
                int event = reader.getEventType();

                //event better be a START_ELEMENT. if not we should go up to the start element here
                while (event != javax.xml.stream.XMLStreamReader.START_ELEMENT) {
                    event = reader.next();
                }

                if (!MY_QNAME.equals(reader.getName())) {
                    throw new Exception("Wrong QName");
                }

                org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine stateMachine1 = new org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine();
                javax.xml.namespace.QName startQname1 = new javax.xml.namespace.QName(
                        "http://test", "echoStringReturn");
                stateMachine1.setElementNameToTest(startQname1);
                stateMachine1.setNillable();
                stateMachine1.read(reader);
                object
                        .setEchoStringReturn(stateMachine1.getText() == null ? null
                                : org.apache.axis2.databinding.utils.ConverterUtil
                                        .convertToString(stateMachine1
                                                .getText().getBytes()));

            } catch (javax.xml.stream.XMLStreamException e) {
                throw new java.lang.Exception(e);
            }

            return object;
        }
        
    }//end of factory class

}
           
          

⌨️ 快捷键说明

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