org.relaxng.datatype.helpers

Class DatatypeLibraryLoader

Implemented Interfaces:
DatatypeLibraryFactory

public class DatatypeLibraryLoader
extends Object
implements DatatypeLibraryFactory

Discovers the datatype library implementation from the classpath.

The call of the createDatatypeLibrary method finds an implementation from a given datatype library URI at run-time.

Method Summary

DatatypeLibrary
createDatatypeLibrary(String uri)
Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

createDatatypeLibrary

public DatatypeLibrary createDatatypeLibrary(String uri)
Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.
Specified by:
createDatatypeLibrary in interface DatatypeLibraryFactory
Returns:
null if the specified namespace URI is not supported.