Top Description Fields Constructors Methods
org.apache.xerces.impl.xs

public Class XSImplementationImpl

extends PSVIDOMImplementationImpl
implements XSImplementation
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xs.XSImplementation
Imports
org.apache.xerces.dom.DOMMessageFormatter, .PSVIDOMImplementationImpl, org.apache.xerces.impl.xs.util.LSInputListImpl, .StringListImpl, org.apache.xerces.xs.LSInputList, .StringList, .XSException, .XSImplementation, .XSLoader, org.w3c.dom.DOMImplementation, org.w3c.dom.ls.LSInput

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
Version
$Id: XSImplementationImpl.java 726375 2008-12-14 05:48:29Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv static final XSImplementationImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LSInputList
createLSInputList(LSInput[]
the array containing the LSInput values that will be placed in the list.
values
)

Implements org.apache.xerces.xs.XSImplementation.createLSInputList.

Creates an immutable LSInputList from the given array of LSInputs.
public StringList
createStringList(String[]
the array containing the String values that will be placed in the list.
values
)

Implements org.apache.xerces.xs.XSImplementation.createStringList.

Creates an immutable StringList from the given array of Strings.
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 org.apache.xerces.xs.XSImplementation.createXSLoader.

Creates a new XSLoader.
public static DOMImplementation
getDOMImplementation()

Hides org.apache.xerces.dom.PSVIDOMImplementationImpl.getDOMImplementation.

NON-DOM: Obtain and return the single shared object
public StringList
getRecognizedVersions()

Implements org.apache.xerces.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, org.apache.xerces.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 org.apache.xerces.dom.PSVIDOMImplementationImpl.hasFeature.

Implements org.w3c.dom.DOMImplementation.hasFeature.

Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
Inherited from org.apache.xerces.dom.PSVIDOMImplementationImpl:
createDocument

Field Detail

singletonback to summary
pack-priv static final XSImplementationImpl singleton

Hides org.apache.xerces.dom.PSVIDOMImplementationImpl.singleton.

Dom implementation singleton.

Constructor Detail

XSImplementationImplback to summary
public XSImplementationImpl()

Method Detail

createLSInputListback to summary
public LSInputList createLSInputList(LSInput[] values)

Implements org.apache.xerces.xs.XSImplementation.createLSInputList.

Doc from org.apache.xerces.xs.XSImplementation.createLSInputList.

Creates an immutable LSInputList from the given array of LSInputs.

Parameters
values:LSInput[]

the array containing the LSInput values that will be placed in the list.

Returns:LSInputList

an immutable LSInputList from the given array of LSInputs.

createStringListback to summary
public StringList createStringList(String[] values)

Implements org.apache.xerces.xs.XSImplementation.createStringList.

Doc from org.apache.xerces.xs.XSImplementation.createStringList.

Creates an immutable StringList from the given array of Strings.

Parameters
values:String[]

the array containing the String values that will be placed in the list.

Returns:StringList

an immutable StringList from the given array of Strings.

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

Implements org.apache.xerces.xs.XSImplementation.createXSLoader.

Doc from org.apache.xerces.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 org.apache.xerces.dom.PSVIDOMImplementationImpl.getDOMImplementation.

NON-DOM: Obtain and return the single shared object

getRecognizedVersionsback to summary
public StringList getRecognizedVersions()

Implements org.apache.xerces.xs.XSImplementation.getRecognizedVersions.

Doc from org.apache.xerces.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 org.apache.xerces.dom.PSVIDOMImplementationImpl.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, org.apache.xerces.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.