org.w3c.domts
Class DOMTest

java.lang.Object
  extended byorg.w3c.domts.DOMTest
Direct Known Subclasses:
DOMTestCase, DOMTestSuite

public abstract class DOMTest
extends java.lang.Object

This is an abstract base class for generated DOM tests


Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

setFactory

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


hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)

hasSetting

public boolean hasSetting(DocumentBuilderSetting setting)

getFactory

protected DOMTestDocumentBuilderFactory getFactory()

getImplementation

public org.w3c.dom.DOMImplementation getImplementation()

getResourceURI

public java.lang.String getResourceURI(java.lang.String href,
                                       java.lang.String scheme,
                                       java.lang.String contentType)
                                throws DOMTestLoadException
Throws:
DOMTestLoadException

createTempURI

public java.lang.String createTempURI(java.lang.String scheme)
                               throws DOMTestLoadException
Throws:
DOMTestLoadException

load

public org.w3c.dom.Document load(java.lang.String docURI,
                                 boolean willBeModified)
                          throws DOMTestLoadException
Throws:
DOMTestLoadException

preload

public void preload(java.lang.String contentType,
                    java.lang.String docURI,
                    boolean willBeModified)
             throws DOMTestIncompatibleException
Throws:
DOMTestIncompatibleException

createXPathEvaluator

public java.lang.Object createXPathEvaluator(org.w3c.dom.Document doc)

createStream

public java.io.InputStream createStream(java.lang.String bytes)
                                 throws DOMTestLoadException,
                                        java.io.IOException
Throws:
DOMTestLoadException
java.io.IOException

getTargetURI

public abstract java.lang.String getTargetURI()

isCoalescing

public final boolean isCoalescing()

isExpandEntityReferences

public final boolean isExpandEntityReferences()

isIgnoringElementContentWhitespace

public final boolean isIgnoringElementContentWhitespace()

isNamespaceAware

public final boolean isNamespaceAware()

isValidating

public final boolean isValidating()

isSigned

public final boolean isSigned()

isHasNullString

public final boolean isHasNullString()

getContentType

public final java.lang.String getContentType()

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