org.relaxng.datatype.DatatypeLibraryFactory Java Examples

The following examples show how to use org.relaxng.datatype.DatatypeLibraryFactory. 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 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 #2
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 #3
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #4
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 #5
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 #6
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #7
Source File: SchemaBuilderImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #8
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 #9
Source File: SchemaBuilderImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #10
Source File: SchemaBuilderImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #11
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 #12
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");
	
}
 
Example #13
Source File: SchemaBuilderImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #14
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 #15
Source File: SchemaBuilderImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *
 * @param eh Error handler to receive errors while building the schema.
 * @param datatypeLibraryFactory This is consulted to locate datatype
 * libraries.
 * @param pb Used to build patterns.
 */
public SchemaBuilderImpl(ErrorHandler eh,
        DatatypeLibraryFactory datatypeLibraryFactory,
        SchemaPatternBuilder pb) {
    this.parent = null;
    this.eh = eh;
    this.datatypeLibraryFactory = datatypeLibraryFactory;
    this.pb = pb;
    this.inheritNs = "";
    this.openIncludes = null;
}
 
Example #16
Source File: BuiltinDatatypeLibrary.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
BuiltinDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #17
Source File: BuiltinDatatypeLibraryFactory.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public BuiltinDatatypeLibraryFactory( DatatypeLibraryFactory coreFactory ) {
    builtinDatatypeLibrary = new BuiltinDatatypeLibrary(coreFactory);
    compatibilityDatatypeLibrary = new CompatibilityDatatypeLibrary(coreFactory);
    this.core = coreFactory;
}
 
Example #18
Source File: BuiltinDatatypeLibrary.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
BuiltinDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #19
Source File: CheckingSchemaBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public CheckingSchemaBuilder( SchemaBuilder sb, ErrorHandler eh, DatatypeLibraryFactory dlf ) {
    super(new SchemaBuilderImpl(eh,dlf,new SchemaPatternBuilder()),sb);
}
 
Example #20
Source File: CompatibilityDatatypeLibrary.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #21
Source File: CascadingDatatypeLibraryFactory.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public CascadingDatatypeLibraryFactory( DatatypeLibraryFactory factory1, DatatypeLibraryFactory factory2) {
    this.factory1 = factory1;
    this.factory2 = factory2;
}
 
Example #22
Source File: CheckingSchemaBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public CheckingSchemaBuilder( SchemaBuilder sb, ErrorHandler eh, DatatypeLibraryFactory dlf ) {
    super(new SchemaBuilderImpl(eh,dlf,new SchemaPatternBuilder()),sb);
}
 
Example #23
Source File: CascadingDatatypeLibraryFactory.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public CascadingDatatypeLibraryFactory( DatatypeLibraryFactory factory1, DatatypeLibraryFactory factory2) {
    this.factory1 = factory1;
    this.factory2 = factory2;
}
 
Example #24
Source File: CompatibilityDatatypeLibrary.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #25
Source File: CachedDatatypeLibraryFactory.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public CachedDatatypeLibraryFactory( DatatypeLibraryFactory core ) {
    this.core = core;
}
 
Example #26
Source File: CachedDatatypeLibraryFactory.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public CachedDatatypeLibraryFactory( DatatypeLibraryFactory core ) {
    this.core = core;
}
 
Example #27
Source File: BuiltinDatatypeLibraryFactory.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public BuiltinDatatypeLibraryFactory( DatatypeLibraryFactory coreFactory ) {
    builtinDatatypeLibrary = new BuiltinDatatypeLibrary(coreFactory);
    compatibilityDatatypeLibrary = new CompatibilityDatatypeLibrary(coreFactory);
    this.core = coreFactory;
}
 
Example #28
Source File: BuiltinDatatypeLibrary.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
BuiltinDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #29
Source File: CompatibilityDatatypeLibrary.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}
 
Example #30
Source File: CompatibilityDatatypeLibrary.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory) {
    this.factory = factory;
}