DOMXSImplementationSourceImplpublic class DOMXSImplementationSourceImpl extends DOMImplementationSourceImpl
Methods Summary |
---|
public org.w3c.dom.DOMImplementation | getDOMImplementation(java.lang.String features)A method to request a DOM implementation.
DOMImplementation impl = super.getDOMImplementation(features);
if (impl != null){
return impl;
}
// if not try the PSVIDOMImplementation
impl = PSVIDOMImplementationImpl.getDOMImplementation();
if (testImpl(impl, features)) {
return impl;
}
// if not try the XSImplementation
impl = XSImplementationImpl.getDOMImplementation();
if (testImpl(impl, features)) {
return impl;
}
return null;
| public org.w3c.dom.DOMImplementationList | getDOMImplementationList(java.lang.String features)A method to request a list of DOM implementations that support the
specified features and versions, as specified in .
final Vector implementations = new Vector();
// first check whether the CoreDOMImplementation would do
DOMImplementationList list = super.getDOMImplementationList(features);
//Add core DOMImplementations
for (int i=0; i < list.getLength(); i++ ) {
implementations.addElement(list.item(i));
}
DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
if (testImpl(impl, features)) {
implementations.addElement(impl);
}
impl = XSImplementationImpl.getDOMImplementation();
if (testImpl(impl, features)) {
implementations.addElement(impl);
}
return new DOMImplementationListImpl(implementations);
|
|