com.ctc.wstx.osgi
Class ValidationSchemaFactoryProviderImpl

java.lang.Object
  extended by com.ctc.wstx.osgi.ValidationSchemaFactoryProviderImpl
All Implemented Interfaces:
Stax2ValidationSchemaFactoryProvider

public abstract class ValidationSchemaFactoryProviderImpl
extends Object
implements Stax2ValidationSchemaFactoryProvider


Field Summary
 
Fields inherited from interface org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider
OSGI_SVC_PROP_IMPL_NAME, OSGI_SVC_PROP_IMPL_VERSION, OSGI_SVC_PROP_SCHEMA_TYPE
 
Constructor Summary
protected ValidationSchemaFactoryProviderImpl(String st)
           
 
Method Summary
static ValidationSchemaFactoryProviderImpl[] createAll()
           
abstract  XMLValidationSchemaFactory createValidationSchemaFactory()
          Method called to create a new XMLValidationSchemaFactory instance.
 Properties getProperties()
           
 String getSchemaType()
          Method that can be used to determine which schema type this provider (or, rather, factory instances of which provider constructs) supports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationSchemaFactoryProviderImpl

protected ValidationSchemaFactoryProviderImpl(String st)
Method Detail

createAll

public static ValidationSchemaFactoryProviderImpl[] createAll()

createValidationSchemaFactory

public abstract XMLValidationSchemaFactory createValidationSchemaFactory()
Description copied from interface: Stax2ValidationSchemaFactoryProvider
Method called to create a new XMLValidationSchemaFactory instance. Each schema factory supports a single schema type; so caller has to ensure that the factory it is using supports schema it needs to instantiate. This can be done either by using service properties, or by inspecting provider instances for schema type they support (see Stax2ValidationSchemaFactoryProvider.getSchemaType()).

Specified by:
createValidationSchemaFactory in interface Stax2ValidationSchemaFactoryProvider
Returns:
ValidationSchema factory configured to implementation-specific default settings, if type is supported by this provider; null if not.

getSchemaType

public String getSchemaType()
Description copied from interface: Stax2ValidationSchemaFactoryProvider
Method that can be used to determine which schema type this provider (or, rather, factory instances of which provider constructs) supports.

Specified by:
getSchemaType in interface Stax2ValidationSchemaFactoryProvider
Returns:
Id of schema type that the factory instantiated by this provider will support.

getProperties

public Properties getProperties()