public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
String schemaLocation = _descriptor.getSchemaLocation(namespaceURI, systemId);
if (schemaLocation == null && baseURI != null && baseURI.endsWith(".dtd")) {
String schema = baseURI.substring(0, baseURI.lastIndexOf('/')+1) + systemId;
schemaLocation = _descriptor.getSchemaLocation(null, schema);
}
if (schemaLocation != null) {
try {
String xsd = new StringPuller().pull(schemaLocation, getClass());
if (xsd != null) {
return new DescriptorLSInput(xsd, publicId, systemId, baseURI);
}
} catch (IOException ioe) {
throw new RuntimeException(ioe);
}
}
return null;
}
Descriptor.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:switchyard
作者:
评论列表
文章目录