Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

public Class XSImplementationImpl

extends CoreDOMImplementationImpl
implements XSImplementation
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.XSImplementation
Imports
com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl, .DOMMessageFormatter, com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl, com.sun.org.apache.xerces.internal.xs.StringList, .XSException, .XSImplementation, .XSLoader, org.w3c.dom.DOMImplementation

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

Field Summary

Modifier and TypeField and Description
pack-priv static XSImplementationImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XSLoader
createXSLoader(StringList
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.
versions
)

Implements com.sun.org.apache.xerces.internal.xs.XSImplementation.createXSLoader.

Creates a new XSLoader.
public static DOMImplementation
public StringList
getRecognizedVersions()

Implements com.sun.org.apache.xerces.internal.xs.XSImplementation.getRecognizedVersions.

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

Returns:

true iff this implementation is compatable with the specified feature and version.
hasFeature
(String
The package name of the feature to test. In Level 1, supported values are "HTML" and "XML" (case-insensitive). At this writing, com.sun.org.apache.xerces.internal.dom supports only XML.
feature
,
String
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"
version
)

Overrides com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.hasFeature.

Implements org.w3c.dom.DOMImplementation.hasFeature.

Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
Inherited from com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl:
assignDocTypeNumberassignDocumentNumbercreateDocumentcreateDocumentcreateDocumentTypecreateLSInputcreateLSOutputcreateLSParsercreateLSSerializergetFeature

Field Detail

singletonback to summary
pack-priv static XSImplementationImpl singleton

Hides com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.singleton.

Dom implementation singleton.

Constructor Detail

XSImplementationImplback to summary
public XSImplementationImpl()

Method Detail

createXSLoaderback to summary
public XSLoader createXSLoader(StringList versions) throws XSException

Implements com.sun.org.apache.xerces.internal.xs.XSImplementation.createXSLoader.

Doc from com.sun.org.apache.xerces.internal.xs.XSImplementation.createXSLoader.

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

Parameters
versions:StringList

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:XSLoader

An XML Schema loader.

Exceptions
XSException:
NOT_SUPPORTED_ERR: Raised if the implementation does not support one of the specified versions.
getDOMImplementationback to summary
public static DOMImplementation getDOMImplementation()

Hides com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.getDOMImplementation.

NON-DOM: Obtain and return the single shared object

getRecognizedVersionsback to summary
public StringList getRecognizedVersions()

Implements com.sun.org.apache.xerces.internal.xs.XSImplementation.getRecognizedVersions.

Doc from com.sun.org.apache.xerces.internal.xs.XSImplementation.getRecognizedVersions.

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

hasFeatureback to summary
public boolean hasFeature(String feature, String version)

Overrides com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.hasFeature.

Implements org.w3c.dom.DOMImplementation.hasFeature.

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

Parameters
feature:String

The package name of the feature to test. In Level 1, supported values are "HTML" and "XML" (case-insensitive). At this writing, com.sun.org.apache.xerces.internal.dom supports only XML.

version:String

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:boolean

true iff this implementation is compatable with the specified feature and version.