
/**
 * ExtensionMapper.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.6.1-wso2v38  Built on : Sep 02, 2019 (07:15:19 UTC)
 */

        
            package org.wso2.carbon.rest.api.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://api.rest.carbon.wso2.org/xsd".equals(namespaceURI) &&
                  "APIException".equals(typeName)){
                   
                            return  org.wso2.carbon.rest.api.stub.types.carbon.APIException.Factory.parse(reader);
                        

                  }

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

                  }

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

                  }

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

        }
    