sk.uniba.euromath.document.schema.plug
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

Field Summary
static String EXTENSION_POINT_ID
          ID of extension point for coordinator factory instances.
 
Method Summary
 ISchema getSchema(String namespaceURI, IValidationContextP context)
          Produces a schema object from file represented by url.
 Set<? extends String> getSupported()
          Returns set of supported namespaces.
 

Field Detail

EXTENSION_POINT_ID

static final String EXTENSION_POINT_ID
ID of extension point for coordinator factory instances.

See Also:
Constant Field Values
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,
                  IValidationContextP context)
                  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.
context - the validation context.
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 © 2003-2006 null. All Rights Reserved.