本文整理汇总了Java中org.relaxng.datatype.DatatypeLibraryFactory.createDatatypeLibrary方法的典型用法代码示例。如果您正苦于以下问题:Java DatatypeLibraryFactory.createDatatypeLibrary方法的具体用法?Java DatatypeLibraryFactory.createDatatypeLibrary怎么用?Java DatatypeLibraryFactory.createDatatypeLibrary使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.relaxng.datatype.DatatypeLibraryFactory
的用法示例。
在下文中一共展示了DatatypeLibraryFactory.createDatatypeLibrary方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDatatypeLibrary
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
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;
}
示例2: createDatatypeLibrary
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
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;
}
示例3: DatatypeRepertoire
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
DatatypeRepertoire(DatatypeLibraryFactory factory) {
DatatypeLibrary lib = factory.createDatatypeLibrary(WellKnownNamespaces.XML_SCHEMA_DATATYPES);
if (lib == null)
return;
for (int i = 0; i < types.length; i++) {
try {
types[nTypes] = makeType(typeNames[i],
lib.createDatatype(typeNames[i]),
i);
nTypes++;
}
catch (DatatypeException e) {
}
}
}
示例4: createDatatypeLibrary
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
public DatatypeLibrary createDatatypeLibrary(String uri) {
for (Iterator<DatatypeLibraryFactory> iter = service.getProviders(); iter.hasNext();) {
DatatypeLibraryFactory factory = iter.next();
DatatypeLibrary library = factory.createDatatypeLibrary(uri);
if (library != null)
return library;
}
return null;
}
示例5: testDatatypeLibrary
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
@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");
}
示例6: createDatatypeLibrary
import org.relaxng.datatype.DatatypeLibraryFactory; //导入方法依赖的package包/类
@SuppressWarnings("rawtypes")
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;
}