
/**
 * ExtensionMapper.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.6.1-wso2v80  Built on : Mar 09, 2022 (12:43:02 UTC)
 */

        
            package org.wso2.carbon.task.stub.types.axis2;
        
            /**
            *  ExtensionMapper class
            */
            @SuppressWarnings({"unchecked","unused"})
        
        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://task.carbon.wso2.org/xsd".equals(namespaceURI) &&
                  "TaskManagementException".equals(typeName)){
                   
                            return  org.wso2.carbon.task.stub.types.carbon.TaskManagementException.Factory.parse(reader);
                        

                  }

              
                  if (
                  "http://task.carbon.wso2.org/xsd".equals(namespaceURI) &&
                  "TaskData".equals(typeName)){
                   
                            return  org.wso2.carbon.task.stub.types.carbon.TaskData.Factory.parse(reader);
                        

                  }

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

        }
    