org.w3c.domts
public class LSDocumentBuilderFactory extends DOMTestDocumentBuilderFactory
Constructor Summary | |
---|---|
LSDocumentBuilderFactory(DocumentBuilderSetting[] settings)
Creates a LS implementation of DOMTestDocumentBuilderFactory. |
Method Summary | |
---|---|
DOMImplementation | getDOMImplementation()
Gets DOMImplementation |
boolean | hasFeature(String feature, String version)
Determines if the implementation supports the specified feature |
boolean | isCoalescing()
Indicates whether the implementation combines text and cdata nodes. |
boolean | isExpandEntityReferences()
Indicates whether the implementation expands entity references. |
boolean | isIgnoringElementContentWhitespace()
Indicates whether the implementation ignores
element content whitespace. |
boolean | isNamespaceAware()
Indicates whether the implementation is namespace aware. |
boolean | isValidating()
Indicates whether the implementation is validating. |
Document | load(URL url)
Loads specified URL |
DOMTestDocumentBuilderFactory | newInstance(DocumentBuilderSetting[] newSettings)
Create new instance of document builder factory
reflecting specified settings |
Parameters: settings array of settings, may be null.
Throws: DOMTestIncompatibleException Thrown if implementation does not support the specified settings
Returns: DOM implementation, may be null
Parameters: feature Feature version Version
Returns: true if implementation supports the feature
Returns: true if coalescing
Returns: true if expanding entity references
Returns: true if ignoring element content whitespace
Returns: true if namespace aware
Returns: true if validating
Parameters: url url to load
Returns: DOM document
Throws: DOMTestLoadException if unable to load document
Parameters: newSettings new settings
Returns: New instance
Throws: DOMTestIncompatibleException if settings are not supported by implementation