public class

XSImplementationImpl

extends CoreDOMImplementationImpl
implements XSImplementation
java.lang.Object
   ↳ org.apache.xerces.dom.CoreDOMImplementationImpl
     ↳ org.apache.xerces.impl.xs.XSImplementationImpl

Class Overview

Implements XSImplementation interface that allows one to retrieve an instance of XSLoader. This interface should be implemented on the same object that implements DOMImplementation.

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.ls.DOMImplementationLS
Public Constructors
XSImplementationImpl()
Public Methods
XSLoader createXSLoader(StringList versions)
Creates a new XSLoader.
static DOMImplementation getDOMImplementation()
NON-DOM: Obtain and return the single shared object
StringList getRecognizedVersions()
A list containing the versions of XML Schema documents recognized by this XSImplemenation.
boolean hasFeature(String feature, String version)
Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
[Expand]
Inherited Methods
From class org.apache.xerces.dom.CoreDOMImplementationImpl
From class java.lang.Object
From interface org.apache.xerces.xs.XSImplementation
From interface org.w3c.dom.DOMImplementation
From interface org.w3c.dom.ls.DOMImplementationLS

Public Constructors

public XSImplementationImpl ()

Public Methods

public XSLoader createXSLoader (StringList versions)

Creates a new XSLoader. The newly constructed loader may then be configured and used to load XML Schemas.

Parameters
versions A list containing the versions of XML Schema documents which can be loaded by the XSLoader or null to permit XML Schema documents of any recognized version to be loaded by the XSLoader.
Returns
  • An XML Schema loader.
Throws
XSException

public static DOMImplementation getDOMImplementation ()

NON-DOM: Obtain and return the single shared object

public StringList getRecognizedVersions ()

A list containing the versions of XML Schema documents recognized by this XSImplemenation.

public boolean hasFeature (String feature, String version)

Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.

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.