Java Code Examples for org.relaxng.datatype.DatatypeLibraryFactory#createDatatypeLibrary()

The following examples show how to use org.relaxng.datatype.DatatypeLibraryFactory#createDatatypeLibrary() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatatypeLibraryLoader.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 2
Source File: DatatypeLibraryLoader.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 3
Source File: DatatypeLibraryLoader.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 4
Source File: DatatypeLibraryLoader.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 5
Source File: DatatypeLibraryLoader.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 6
Source File: DatatypeLibraryLoader.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 7
Source File: DatatypeLibraryLoader.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeLibrary createDatatypeLibrary(String uri) {
  for (Enumeration e = service.getProviders();
       e.hasMoreElements();) {
    DatatypeLibraryFactory factory
      = (DatatypeLibraryFactory)e.nextElement();
    DatatypeLibrary library = factory.createDatatypeLibrary(uri);
    if (library != null)
      return library;
  }
  return null;
}
 
Example 8
Source File: DatatypeLibraryLoaderTest.java    From maven-jaxb2-plugin with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Test
public void testDatatypeLibrary()
{
	final DatatypeLibraryFactory b = new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader());
	b.createDatatypeLibrary("");
	b.createDatatypeLibrary("http://www.w3.org/2001/XMLSchema-datatypes");
	b.createDatatypeLibrary("http://www.w3.org/2001/XMLSchema-datatypes");
	
}