org.w3c.domts

Class LSDocumentBuilderFactory

public class LSDocumentBuilderFactory extends DOMTestDocumentBuilderFactory

This class implements the generic parser and configuation abstract class for the DOM L3 implementations
Constructor Summary
LSDocumentBuilderFactory(DocumentBuilderSetting[] settings)
Creates a LS implementation of DOMTestDocumentBuilderFactory.
Method Summary
DOMImplementationgetDOMImplementation()
Gets DOMImplementation
booleanhasFeature(String feature, String version)
Determines if the implementation supports the specified feature
booleanisCoalescing()
Indicates whether the implementation combines text and cdata nodes.
booleanisExpandEntityReferences()
Indicates whether the implementation expands entity references.
booleanisIgnoringElementContentWhitespace()
Indicates whether the implementation ignores element content whitespace.
booleanisNamespaceAware()
Indicates whether the implementation is namespace aware.
booleanisValidating()
Indicates whether the implementation is validating.
Documentload(URL url)
Loads specified URL
DOMTestDocumentBuilderFactorynewInstance(DocumentBuilderSetting[] newSettings)
Create new instance of document builder factory reflecting specified settings

Constructor Detail

LSDocumentBuilderFactory

public LSDocumentBuilderFactory(DocumentBuilderSetting[] settings)
Creates a LS implementation of DOMTestDocumentBuilderFactory.

Parameters: settings array of settings, may be null.

Throws: DOMTestIncompatibleException Thrown if implementation does not support the specified settings

Method Detail

getDOMImplementation

public DOMImplementation getDOMImplementation()
Gets DOMImplementation

Returns: DOM implementation, may be null

hasFeature

public boolean hasFeature(String feature, String version)
Determines if the implementation supports the specified feature

Parameters: feature Feature version Version

Returns: true if implementation supports the feature

isCoalescing

public boolean isCoalescing()
Indicates whether the implementation combines text and cdata nodes.

Returns: true if coalescing

isExpandEntityReferences

public boolean isExpandEntityReferences()
Indicates whether the implementation expands entity references.

Returns: true if expanding entity references

isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()
Indicates whether the implementation ignores element content whitespace.

Returns: true if ignoring element content whitespace

isNamespaceAware

public boolean isNamespaceAware()
Indicates whether the implementation is namespace aware.

Returns: true if namespace aware

isValidating

public boolean isValidating()
Indicates whether the implementation is validating.

Returns: true if validating

load

public Document load(URL url)
Loads specified URL

Parameters: url url to load

Returns: DOM document

Throws: DOMTestLoadException if unable to load document

newInstance

public DOMTestDocumentBuilderFactory newInstance(DocumentBuilderSetting[] newSettings)
Create new instance of document builder factory reflecting specified settings

Parameters: newSettings new settings

Returns: New instance

Throws: DOMTestIncompatibleException if settings are not supported by implementation