org.relaxng.datatype.helpers
Class DatatypeLibraryFactory
java.lang.Object
|
+--org.relaxng.datatype.helpers.DatatypeLibraryFactory
- public abstract class DatatypeLibraryFactory
- 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
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 |
DatatypeLibraryFactory
public DatatypeLibraryFactory()
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.