org.w3c.domts
Class BatikTestDocumentBuilderFactory

java.lang.Object
  extended byorg.w3c.domts.DOMTestDocumentBuilderFactory
      extended byorg.w3c.domts.BatikTestDocumentBuilderFactory

public class BatikTestDocumentBuilderFactory
extends DOMTestDocumentBuilderFactory

This class implements the generic parser and configuation abstract class for the DOM implementation of Batik.


Constructor Summary
BatikTestDocumentBuilderFactory(DocumentBuilderSetting[] settings)
          Creates a Batik implementation of DOMTestDocumentBuilderFactory.
 
Method Summary
 java.lang.String addExtension(java.lang.String testFileName)
          Adds any specialized extension required by the implementation.
 java.lang.String getContentType()
          Gets content type.
 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
createXPathEvaluator, getActualSettings, mergeSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatikTestDocumentBuilderFactory

public BatikTestDocumentBuilderFactory(DocumentBuilderSetting[] settings)
                                throws DOMTestIncompatibleException
Creates a Batik implementation of DOMTestDocumentBuilderFactory.

Parameters:
settings - array of settings, may be null.
Throws:
DOMTestIncompatibleException - 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

addExtension

public java.lang.String addExtension(java.lang.String testFileName)
Adds any specialized extension required by the implementation.

Overrides:
addExtension in class DOMTestDocumentBuilderFactory
Parameters:
testFileName - file name from test
Returns:
possibly modified file name

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

getContentType

public java.lang.String getContentType()
Gets content type.

Overrides:
getContentType in class DOMTestDocumentBuilderFactory
Returns:
content type, "image/svg+xml"