1 16 17 package org.apache.wsdl.extensions.impl; 18 19 import org.apache.wsdl.WSDLExtensibilityElement; 20 import org.apache.wsdl.extensions.ExtensionConstants; 21 import org.apache.wsdl.extensions.ExtensionFactory; 22 23 import javax.xml.namespace.QName ; 24 25 29 public class ExtensionFactoryImpl implements ExtensionFactory , ExtensionConstants{ 30 36 public WSDLExtensibilityElement getExtensionElement(QName qName){ 37 if(qName.equals(SOAP_ADDRESS)) 38 return new SOAPAddressImpl(); 39 if(qName.equals(SCHEMA)) 40 return new SchemaImpl(); 41 if(qName.equals(SOAP_OPERATION)) 42 return new SOAPOperationImpl(); 43 if(SOAP_BODY.equals(qName)) 44 return new SOAPBodyImpl(); 45 if(SOAP_BINDING.equals(qName)) 46 return new SOAPBindingImpl(); 47 48 return new DefaultExtensibilityElementImpl(); 49 } 50 51 } 52 | Popular Tags |