Methods Summary |
---|
public com.sun.org.apache.xerces.internal.xs.XSLoader | createXSLoader(com.sun.org.apache.xerces.internal.xs.StringList versions)
XSLoader loader = new XMLSchemaLoader();
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 com.sun.org.apache.xerces.internal.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));
|