public abstract class DOMTest extends 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 |
---|---|
InputStream |
createStream(String bytes) |
String |
createTempURI(String scheme) |
Object |
createXPathEvaluator(Document doc) |
String |
getContentType() |
protected DOMTestDocumentBuilderFactory |
getFactory() |
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
|
String |
getResourceURI(String href,
String scheme,
String contentType) |
abstract String |
getTargetURI() |
boolean |
hasFeature(String feature,
String version) |
boolean |
hasSetting(DocumentBuilderSetting setting) |
boolean |
isCoalescing() |
boolean |
isExpandEntityReferences() |
boolean |
isHasNullString() |
boolean |
isIgnoringElementContentWhitespace() |
boolean |
isNamespaceAware() |
boolean |
isSigned() |
boolean |
isValidating() |
Document |
load(String docURI,
boolean willBeModified) |
void |
preload(String contentType,
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 hasSetting(DocumentBuilderSetting setting)
protected DOMTestDocumentBuilderFactory getFactory()
public DOMImplementation getImplementation()
public String getResourceURI(String href, String scheme, String contentType) throws DOMTestLoadException
DOMTestLoadException
public String createTempURI(String scheme) throws DOMTestLoadException
DOMTestLoadException
public Document load(String docURI, boolean willBeModified) throws DOMTestLoadException
DOMTestLoadException
public void preload(String contentType, String docURI, boolean willBeModified) throws DOMTestIncompatibleException
DOMTestIncompatibleException
public InputStream createStream(String bytes) throws DOMTestLoadException, IOException
DOMTestLoadException
IOException
public abstract 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 String getContentType()
public final int getMutationCount()
evt
- mutation event