org.w3c.domts

Class DOMTest

public abstract class DOMTest extends Object

This is an abstract base class for generated DOM tests
Constructor Summary
DOMTest(DOMTestDocumentBuilderFactory factory)
This is the appropriate constructor for tests that make no requirements on the parser configuration.
DOMTest()
This constructor is used by tests that must create a modified document factory to meet requirements on the parser configuration. setFactory should be called within the test's constructor.
Method Summary
InputStreamcreateStream(String bytes)
StringcreateTempURI(String scheme)
ObjectcreateXPathEvaluator(Document doc)
StringgetContentType()
protected DOMTestDocumentBuilderFactorygetFactory()
DOMImplementationgetImplementation()
intgetMutationCount()
Implementation of EventListener.handleEvent This method is called when a mutation is reported for a document that was declared to not be modified during testing
StringgetResourceURI(String href, String scheme, String contentType)
abstract StringgetTargetURI()
booleanhasFeature(String feature, String version)
booleanhasSetting(DocumentBuilderSetting setting)
booleanisCoalescing()
booleanisExpandEntityReferences()
booleanisHasNullString()
booleanisIgnoringElementContentWhitespace()
booleanisNamespaceAware()
booleanisSigned()
booleanisValidating()
Documentload(String docURI, boolean willBeModified)
voidpreload(String contentType, String docURI, boolean willBeModified)
protected voidsetFactory(DOMTestDocumentBuilderFactory factory)
Should only be called in the constructor of a derived type.

Constructor Detail

DOMTest

public DOMTest(DOMTestDocumentBuilderFactory factory)
This is the appropriate constructor for tests that make no requirements on the parser configuration.

Parameters: factory must not be null

DOMTest

public DOMTest()
This constructor is used by tests that must create a modified document factory to meet requirements on the parser configuration. setFactory should be called within the test's constructor.

Method Detail

createStream

public InputStream createStream(String bytes)

createTempURI

public String createTempURI(String scheme)

createXPathEvaluator

public Object createXPathEvaluator(Document doc)

getContentType

public final String getContentType()

getFactory

protected DOMTestDocumentBuilderFactory getFactory()

getImplementation

public DOMImplementation getImplementation()

getMutationCount

public final int getMutationCount()
Implementation of EventListener.handleEvent This method is called when a mutation is reported for a document that was declared to not be modified during testing

Parameters: evt mutation event

getResourceURI

public String getResourceURI(String href, String scheme, String contentType)

getTargetURI

public abstract String getTargetURI()

hasFeature

public boolean hasFeature(String feature, String version)

hasSetting

public boolean hasSetting(DocumentBuilderSetting setting)

isCoalescing

public final boolean isCoalescing()

isExpandEntityReferences

public final boolean isExpandEntityReferences()

isHasNullString

public final boolean isHasNullString()

isIgnoringElementContentWhitespace

public final boolean isIgnoringElementContentWhitespace()

isNamespaceAware

public final boolean isNamespaceAware()

isSigned

public final boolean isSigned()

isValidating

public final boolean isValidating()

load

public Document load(String docURI, boolean willBeModified)

preload

public void preload(String contentType, String docURI, boolean willBeModified)

setFactory

protected void setFactory(DOMTestDocumentBuilderFactory factory)
Should only be called in the constructor of a derived type.