Package com.thaiopensource.validate
Class SchemaReaderLoader
- java.lang.Object
-
- com.thaiopensource.validate.SchemaReaderLoader
-
- All Implemented Interfaces:
SchemaReaderFactory
public class SchemaReaderLoader extends java.lang.Object implements SchemaReaderFactory
A SchemaReaderFactory that automatically discovers SchemaReader implementations. For a SchemeaReader implementation to be discoverable by this class, it must have a factory class with a no-argument constructor implementing SchemaReaderFactory, and the fully-qualified name of this factory class must be listed in the fileMETA-INF/services/com.thaiopensource.validate.SchemaReaderFactory
.
-
-
Constructor Summary
Constructors Constructor Description SchemaReaderLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaReader
createSchemaReader(java.lang.String namespaceUri)
Creates a SchemaReader for a particular schema language.Option
getOption(java.lang.String uri)
-
-
-
Method Detail
-
createSchemaReader
public SchemaReader createSchemaReader(java.lang.String namespaceUri)
Description copied from interface:SchemaReaderFactory
Creates a SchemaReader for a particular schema language.- Specified by:
createSchemaReader
in interfaceSchemaReaderFactory
- Parameters:
namespaceUri
- a String identifing the schema language; must not benull
; for schema languages that use XML, this should be the namespace URI of the root element if the root element has a non-absent namespace URI- Returns:
- a SchemaReader for the specified schema language, or
null
, if this SchemaReaderFactory cannot create a SchemaReader for the specified schema language
-
getOption
public Option getOption(java.lang.String uri)
- Specified by:
getOption
in interfaceSchemaReaderFactory
-
-