Methods Summary |
---|
public org.apache.xerces.xs.XSLoader | createXSLoader(org.apache.xerces.xs.StringList versions)
XSLoader loader = new XSLoaderImpl();
if (versions == null){
return loader;
}
for (int i=0; i<versions.getLength();i++){
if (!versions.item(i).equals("1.0")){
String msg =
DOMMessageFormatter.formatMessage(
DOMMessageFormatter.DOM_DOMAIN,
"FEATURE_NOT_SUPPORTED",
new Object[] { versions.item(i) });
throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
}
}
return loader;
|
public static org.w3c.dom.DOMImplementation | getDOMImplementation()NON-DOM: Obtain and return the single shared object
//
// Public methods
//
return singleton;
|
public org.apache.xerces.xs.StringList | getRecognizedVersions()
StringListImpl list = new StringListImpl(new String[]{"1.0"}, 1);
return list;
|
public boolean | hasFeature(java.lang.String feature, java.lang.String version)Test if the DOM implementation supports a specific "feature" --
currently meaning language and level thereof.
return (feature.equalsIgnoreCase("XS-Loader") && (version == null || version.equals("1.0")) ||
super.hasFeature(feature, version));
|