Package org.ow2.easywsdl.schema
Class SchemaFactory
- java.lang.Object
-
- org.ow2.easywsdl.schema.SchemaFactory
-
- Direct Known Subclasses:
SchemaFactoryImpl
public abstract class SchemaFactory extends Object
This abstract class defines a factory API that enables applications to obtain a SchemaFactory capable of producing new Definitions, new SchemaReaders, and new SchemaWriters.Some ideas used here have been shamelessly copied from the wonderful JAXP and Xerces work.
- Author:
- Nicolas Salatge - EBM WebSourcing
-
-
Constructor Summary
Constructors Constructor Description SchemaFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DefaultSchemagetDefaultSchema()Get the default parentstatic SchemaFactorynewInstance()Get a new instance of a SchemaFactory.abstract SchemanewSchema()Create a new instance of a Definition.abstract SchemaReadernewSchemaReader()Create a new instance of a SchemaReaderImpl.abstract SchemaReadernewSchemaReader(Map<SchemaReader.FeatureConstants,Object> features)Create a new instance of a SchemaReaderImpl.abstract SchemaWriternewSchemaWriter()Create a new instance of a SchemaWriterImpl.
-
-
-
Method Detail
-
newInstance
public static SchemaFactory newInstance() throws SchemaException
Get a new instance of a SchemaFactory. This method follows (almost) the same basic sequence of steps that JAXP follows to determine the fully-qualified class name of the class which implements SchemaFactory.The steps in order are:
- Check the property file META-INF/services/javax.wsdl.factory.SchemaFactory.
- Check the javax.wsdl.factory.SchemaFactory system property.
- Check the lib/wsdl.properties file in the JRE directory. The key will have the same name as the above system property.
- Use the default class name provided by the implementation.
Once an instance of a SchemaFactory is obtained, invoke newDefinition(), newSchemaReader(), or newSchemaWriter(), to create the desired instances.
- Throws:
SchemaException
-
newSchema
public abstract Schema newSchema() throws SchemaException
Create a new instance of a Definition.- Throws:
SchemaException
-
newSchemaReader
public abstract SchemaReader newSchemaReader() throws SchemaException
Create a new instance of a SchemaReaderImpl.- Throws:
SchemaException
-
newSchemaReader
public abstract SchemaReader newSchemaReader(Map<SchemaReader.FeatureConstants,Object> features) throws SchemaException
Create a new instance of a SchemaReaderImpl.- Throws:
SchemaException
-
newSchemaWriter
public abstract SchemaWriter newSchemaWriter() throws SchemaException
Create a new instance of a SchemaWriterImpl.- Throws:
SchemaException
-
getDefaultSchema
public static DefaultSchema getDefaultSchema()
Get the default parent- Returns:
- the default parent
-
-