sk.baka.xml.schematic.pluginterface
Interface ISchemaFactory

All Known Implementing Classes:
SchemaFactoryImpl

public interface ISchemaFactory

Factory that produces Schema interfaces. Intended to be implemented by users, to provide finer schema information. Objects implementing this interface are expected by the sk.uniba.euromath.ISchemaFactory extension point.

Author:
Martin Vysny

Method Summary
 ISchema getSchema(String namespaceURI, SchemaPool pool)
          Produces a schema object from file represented by url.
 Set<? extends String> getSupported()
          Returns set of supported namespaces.
 

Method Detail

getSupported

Set<? extends String> getSupported()
Returns set of supported namespaces. The set won't get modified.

Returns:
set of all namespaces that this factory understands.

getSchema

ISchema getSchema(String namespaceURI,
                  SchemaPool pool)
                  throws SchemaException,
                         IOException
Produces a schema object from file represented by url. This schema should accept elements from this namespace.

Parameters:
namespaceURI - the namespace URI the schema will validate.
pool - the validation context. The schema must take the context into account.
Returns:
Schema object, it must never be null.
Throws:
SchemaException - when error in loading of schema occurs.
IOException - if i/o error occurs during schema loading.


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.