Class 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 Detail

      • SchemaFactory

        public SchemaFactory()
    • 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:

        1. Check the property file META-INF/services/javax.wsdl.factory.SchemaFactory.
        2. Check the javax.wsdl.factory.SchemaFactory system property.
        3. Check the lib/wsdl.properties file in the JRE directory. The key will have the same name as the above system property.
        4. 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
      • getDefaultSchema

        public static DefaultSchema getDefaultSchema()
        Get the default parent
        Returns:
        the default parent