public abstract class DOMTest
extends java.lang.Object
| Constructor and Description |
|---|
DOMTest()
This constructor is used by tests that must create a modified document
factory to meet requirements on the parser configuration.
|
DOMTest(DOMTestDocumentBuilderFactory factory)
This is the appropriate constructor for tests that make no requirements
on the parser configuration.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
createStream(java.lang.String bytes) |
java.lang.String |
createTempURI(java.lang.String scheme) |
java.lang.Object |
createXPathEvaluator(org.w3c.dom.Document doc) |
java.lang.String |
getContentType() |
protected DOMTestDocumentBuilderFactory |
getFactory() |
org.w3c.dom.DOMImplementation |
getImplementation() |
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
|
java.lang.String |
getResourceURI(java.lang.String href,
java.lang.String scheme,
java.lang.String contentType) |
abstract java.lang.String |
getTargetURI() |
boolean |
hasFeature(java.lang.String feature,
java.lang.String version) |
boolean |
hasSetting(DocumentBuilderSetting setting) |
boolean |
isCoalescing() |
boolean |
isExpandEntityReferences() |
boolean |
isHasNullString() |
boolean |
isIgnoringElementContentWhitespace() |
boolean |
isNamespaceAware() |
boolean |
isSigned() |
boolean |
isValidating() |
org.w3c.dom.Document |
load(java.lang.String docURI,
boolean willBeModified) |
void |
preload(java.lang.String contentType,
java.lang.String docURI,
boolean willBeModified) |
protected void |
setFactory(DOMTestDocumentBuilderFactory factory)
Should only be called in the constructor of a derived type.
|
public DOMTest(DOMTestDocumentBuilderFactory factory)
factory - must not be nullpublic DOMTest()
protected void setFactory(DOMTestDocumentBuilderFactory factory)
public boolean hasFeature(java.lang.String feature,
java.lang.String version)
public boolean hasSetting(DocumentBuilderSetting setting)
protected DOMTestDocumentBuilderFactory getFactory()
public org.w3c.dom.DOMImplementation getImplementation()
public java.lang.String getResourceURI(java.lang.String href,
java.lang.String scheme,
java.lang.String contentType)
throws DOMTestLoadException
DOMTestLoadExceptionpublic java.lang.String createTempURI(java.lang.String scheme)
throws DOMTestLoadException
DOMTestLoadExceptionpublic org.w3c.dom.Document load(java.lang.String docURI,
boolean willBeModified)
throws DOMTestLoadException
DOMTestLoadExceptionpublic void preload(java.lang.String contentType,
java.lang.String docURI,
boolean willBeModified)
throws DOMTestIncompatibleException
DOMTestIncompatibleExceptionpublic java.lang.Object createXPathEvaluator(org.w3c.dom.Document doc)
public java.io.InputStream createStream(java.lang.String bytes)
throws DOMTestLoadException,
java.io.IOException
DOMTestLoadExceptionjava.io.IOExceptionpublic abstract java.lang.String getTargetURI()
public final boolean isCoalescing()
public final boolean isExpandEntityReferences()
public final boolean isIgnoringElementContentWhitespace()
public final boolean isNamespaceAware()
public final boolean isValidating()
public final boolean isSigned()
public final boolean isHasNullString()
public final java.lang.String getContentType()
public final int getMutationCount()
evt - mutation event