org.relaxng.datatype.helpers
Class DatatypeLibraryRegistry

java.lang.Object
  |
  +--org.relaxng.datatype.helpers.DatatypeLibraryRegistry

public class DatatypeLibraryRegistry
extends java.lang.Object

factory class for the DatatypeLibrary class.

The application can call the find method to automatically find the appropriate datatype library for a particular URI.

The datatype library should extend this class if it wants to be found by the schema processors. The implementor also have to place a file in your jar file. See the reference datatype library implementation for detail.

Note that this class uses non-standard class "sun.misc.Service".

Author:
Kohsuke KAWAGUCHI, Thomas DeWeese

Constructor Summary
DatatypeLibraryRegistry()
           
 
Method Summary
static DatatypeLibrary find(java.lang.String namespaceURI)
          searches the available datatype libraries that supports the particular URI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatatypeLibraryRegistry

public DatatypeLibraryRegistry()
Method Detail

find

public static DatatypeLibrary find(java.lang.String namespaceURI)
searches the available datatype libraries that supports the particular URI.
Returns:
If a datatype library is available, then a reference to the object is returned. If it is not available, it returns null.