
com.ibm.wsdl.factory.WSDLFactoryImpl Maven / Gradle / Ivy
/*
* (c) Copyright IBM Corp 2001, 2005
*/
package com.ibm.wsdl.factory;
import javax.wsdl.*;
import javax.wsdl.extensions.*;
import javax.wsdl.factory.*;
import javax.wsdl.xml.*;
import com.ibm.wsdl.*;
import com.ibm.wsdl.extensions.*;
import com.ibm.wsdl.xml.*;
/**
* This class is a concrete implementation of the abstract class
* WSDLFactory. Some ideas used here have been shamelessly
* copied from the wonderful JAXP and Xerces work.
*
* @author Matthew J. Duftler ([email protected])
*/
public class WSDLFactoryImpl extends WSDLFactory {
/**
* Create a new instance of a Definition, with an instance
* of a PopulatedExtensionRegistry as its ExtensionRegistry.
*
* @see com.ibm.wsdl.extensions.PopulatedExtensionRegistry
*/
public Definition newDefinition() {
Definition def = new DefinitionImpl();
ExtensionRegistry extReg = newPopulatedExtensionRegistry();
def.setExtensionRegistry(extReg);
return def;
}
/**
* Create a new instance of a Definition, with an instance
* of a PopulatedExtensionRegistry as its ExtensionRegistry.
*
* @param ignoreSchemaContent true to ignore the schema content and false otherwise.
* @see com.ibm.wsdl.extensions.PopulatedExtensionRegistry
*/
public Definition newDefinition(boolean ignoreSchemaContent) {
Definition def = new DefinitionImpl();
ExtensionRegistry extReg = newPopulatedExtensionRegistry(ignoreSchemaContent);
def.setExtensionRegistry(extReg);
return def;
}
/**
* Create a new instance of a WSDLReader.
* @return WSDLReader a WSDLReader object
*/
public WSDLReader newWSDLReader() {
return new WSDLReaderImpl();
}
/**
* Create a new instance of a WSDLWriter.
* @return WSDLWriter a WSDLWriter object
*/
public WSDLWriter newWSDLWriter() {
return new WSDLWriterImpl();
}
/**
* Create a new instance of an ExtensionRegistry with pre-registered
* serializers/deserializers for the SOAP, HTTP and MIME
* extensions. Java extensionTypes are also mapped for all
* the SOAP, HTTP and MIME extensions.
* @return ExtensionRegistry an ExtensionRegistry object
*/
public ExtensionRegistry newPopulatedExtensionRegistry() {
return new PopulatedExtensionRegistry();
}
/**
* Create a new instance of an ExtensionRegistry with pre-registered
* serializers/deserializers for the SOAP, HTTP and MIME
* extensions. Java extensionTypes are also mapped for all
* the SOAP, HTTP and MIME extensions.
* @param ignoreSchemaContent true to ignore the schema content and false otherwise
* @return ExtensionRegistry object
*/
public ExtensionRegistry newPopulatedExtensionRegistry(boolean ignoreSchemaContent) {
return new PopulatedExtensionRegistry(ignoreSchemaContent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy