extensionmapper.java

来自「电信sms接口源代码」· Java 代码 · 共 93 行

JAVA
93
字号
/**
 * ExtensionMapper.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.3  Built on : Aug 10, 2007 (04:45:58 LKT)
 */
package cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local;


/**
 *  ExtensionMapper class
 */
public class ExtensionMapper {
    public static java.lang.Object getTypeObject(
        java.lang.String namespaceURI, java.lang.String typeName,
        javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {
        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/v2_1".equals(
                    namespaceURI) && "LocationInfo".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.LocationInfo.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) &&
                "locationNotificationResponse".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "EndReason".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.EndReason.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "NotifySOAPHeader".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.NotifySOAPHeader.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/v2_1".equals(
                    namespaceURI) &&
                "EnteringLeavingCriteria".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.EnteringLeavingCriteria.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) && "locationError".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "RequestSOAPHeader".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.RequestSOAPHeader.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) && "locationNotification".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "ServiceError".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceError.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "PolicyException".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.PolicyException.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) && "locationEnd".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1".equals(
                    namespaceURI) && "ServiceException".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceException.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) && "locationEndResponse".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse.Factory.parse(reader);
        }

        if ("http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/notification/v2_1/local".equals(
                    namespaceURI) && "locationErrorResponse".equals(typeName)) {
            return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse.Factory.parse(reader);
        }

        throw new org.apache.axis2.databinding.ADBException("Unsupported type " +
            namespaceURI + " " + typeName);
    }
}

⌨️ 快捷键说明

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