org.apache.xerces.impl.xs

Class XSImplementationImpl

Implemented Interfaces:
org.w3c.dom.DOMImplementation, org.w3c.dom.ls.DOMImplementationLS, org.apache.xerces.xs.XSImplementation

public class XSImplementationImpl
extends CoreDOMImplementationImpl
implements org.apache.xerces.xs.XSImplementation

Implements XSImplementation interface that allows one to retrieve an instance of XSLoader. This interface should be implemented on the same object that implements DOMImplementation.
Version:
$Id: XSImplementationImpl.java 320158 2004-12-08 22:49:05Z mrglavas $
Author:
Elena Litani, IBM

Fields inherited from interface org.w3c.dom.ls.DOMImplementationLS

MODE_ASYNCHRONOUS, MODE_SYNCHRONOUS

Method Summary

org.apache.xerces.xs.XSLoader
createXSLoader(org.apache.xerces.xs.StringList versions)
static org.w3c.dom.DOMImplementation
getDOMImplementation()
NON-DOM: Obtain and return the single shared object
org.apache.xerces.xs.StringList
getRecognizedVersions()
boolean
hasFeature(String feature, String version)
Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.

Methods inherited from class org.apache.xerces.dom.CoreDOMImplementationImpl

assignDocTypeNumber, assignDocumentNumber, createDocument, createDocumentType, createLSInput, createLSOutput, createLSParser, createLSSerializer, getDOMImplementation, getFeature, hasFeature

Method Details

createXSLoader

public org.apache.xerces.xs.XSLoader createXSLoader(org.apache.xerces.xs.StringList versions)
            throws org.apache.xerces.xs.XSException
Specified by:
createXSLoader in interface org.apache.xerces.xs.XSImplementation

getDOMImplementation

public static org.w3c.dom.DOMImplementation getDOMImplementation()
NON-DOM: Obtain and return the single shared object
Overrides:
getDOMImplementation in interface CoreDOMImplementationImpl

getRecognizedVersions

public org.apache.xerces.xs.StringList getRecognizedVersions()
Specified by:
getRecognizedVersions in interface org.apache.xerces.xs.XSImplementation

hasFeature

public boolean hasFeature(String feature,
                          String version)
Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
Specified by:
hasFeature in interface org.w3c.dom.DOMImplementation
Overrides:
hasFeature in interface CoreDOMImplementationImpl
Parameters:
feature - The package name of the feature to test. In Level 1, supported values are "HTML" and "XML" (case-insensitive). At this writing, org.apache.xerces.dom supports only XML.
version - The version number of the feature being tested. This is interpreted as "Version of the DOM API supported for the specified Feature", and in Level 1 should be "1.0"
Returns:
true iff this implementation is compatable with the specified feature and version.

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.