org.w3c.domts
Class LSDocumentBuilderFactory

java.lang.Object
  extended byorg.w3c.domts.DOMTestDocumentBuilderFactory
      extended byorg.w3c.domts.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
 org.w3c.dom.DOMImplementation getDOMImplementation()
          Gets DOMImplementation
 boolean hasFeature(java.lang.String feature, java.lang.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.
 org.w3c.dom.Document load(java.net.URL url)
          Loads specified URL
 DOMTestDocumentBuilderFactory newInstance(DocumentBuilderSetting[] newSettings)
          Create new instance of document builder factory reflecting specified settings
 
Methods inherited from class org.w3c.domts.DOMTestDocumentBuilderFactory
addExtension, createXPathEvaluator, getActualSettings, getContentType, mergeSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSDocumentBuilderFactory

public LSDocumentBuilderFactory(DocumentBuilderSetting[] settings)
                         throws DOMTestIncompatibleException
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

newInstance

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

Specified by:
newInstance in class DOMTestDocumentBuilderFactory
Parameters:
newSettings - new settings
Returns:
New instance
Throws:
DOMTestIncompatibleException - if settings are not supported by implementation

load

public org.w3c.dom.Document load(java.net.URL url)
                          throws DOMTestLoadException
Loads specified URL

Specified by:
load in class DOMTestDocumentBuilderFactory
Parameters:
url - url to load
Returns:
DOM document
Throws:
DOMTestLoadException - if unable to load document

getDOMImplementation

public org.w3c.dom.DOMImplementation getDOMImplementation()
Gets DOMImplementation

Specified by:
getDOMImplementation in class DOMTestDocumentBuilderFactory
Returns:
DOM implementation, may be null

hasFeature

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

Specified by:
hasFeature in class DOMTestDocumentBuilderFactory
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.

Specified by:
isCoalescing in class DOMTestDocumentBuilderFactory
Returns:
true if coalescing

isExpandEntityReferences

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

Specified by:
isExpandEntityReferences in class DOMTestDocumentBuilderFactory
Returns:
true if expanding entity references

isIgnoringElementContentWhitespace

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

Specified by:
isIgnoringElementContentWhitespace in class DOMTestDocumentBuilderFactory
Returns:
true if ignoring element content whitespace

isNamespaceAware

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

Specified by:
isNamespaceAware in class DOMTestDocumentBuilderFactory
Returns:
true if namespace aware

isValidating

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

Specified by:
isValidating in class DOMTestDocumentBuilderFactory
Returns:
true if validating