org.w3c.domts

Class 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
StringaddExtension(String testFileName)
Adds any specialized extension required by the implementation.
StringgetContentType()
Gets content type.
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

BatikTestDocumentBuilderFactory

public BatikTestDocumentBuilderFactory(DocumentBuilderSetting[] settings)
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

addExtension

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

Parameters: testFileName file name from test

Returns: possibly modified file name

getContentType

public String getContentType()
Gets content type.

Returns: content type, "image/svg+xml"

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