org.oXML.engine
Class DOMResultHandler

java.lang.Object
  extended byorg.oXML.engine.DOMResultHandler
All Implemented Interfaces:
ResultHandler

public class DOMResultHandler
extends java.lang.Object
implements ResultHandler


Constructor Summary
DOMResultHandler()
           
DOMResultHandler(org.w3c.dom.Document doc)
           
DOMResultHandler(org.w3c.dom.Node node)
           
 
Method Summary
 void comment(java.lang.String text)
           
 void end()
          called after end of output
 void endDocumentType()
           
 void endElement(Name name)
           
 void entityDeclaration(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
           
 java.lang.Object getResult()
           
static org.w3c.dom.Document newDocument()
           
 void notationDeclaration(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 java.lang.String print(Name name)
           
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void start(java.lang.String contenttype)
          called before start of output
 void startDocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset)
           
 void startElement(Name name, java.util.Collection attributes)
           
 void text(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMResultHandler

public DOMResultHandler()

DOMResultHandler

public DOMResultHandler(org.w3c.dom.Document doc)

DOMResultHandler

public DOMResultHandler(org.w3c.dom.Node node)
Method Detail

newDocument

public static org.w3c.dom.Document newDocument()

getResult

public java.lang.Object getResult()
Specified by:
getResult in interface ResultHandler

text

public void text(java.lang.String text)
Specified by:
text in interface ResultHandler

comment

public void comment(java.lang.String text)
Specified by:
comment in interface ResultHandler

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
Specified by:
processingInstruction in interface ResultHandler

print

public java.lang.String print(Name name)

startElement

public void startElement(Name name,
                         java.util.Collection attributes)
Specified by:
startElement in interface ResultHandler

endElement

public void endElement(Name name)
Specified by:
endElement in interface ResultHandler

start

public void start(java.lang.String contenttype)
Description copied from interface: ResultHandler
called before start of output

Specified by:
start in interface ResultHandler

end

public void end()
Description copied from interface: ResultHandler
called after end of output

Specified by:
end in interface ResultHandler

startDocumentType

public void startDocumentType(java.lang.String name,
                              java.lang.String publicId,
                              java.lang.String systemId,
                              java.lang.String internalSubset)
Specified by:
startDocumentType in interface ResultHandler

endDocumentType

public void endDocumentType()
Specified by:
endDocumentType in interface ResultHandler

notationDeclaration

public void notationDeclaration(java.lang.String name,
                                java.lang.String publicId,
                                java.lang.String systemId)
Specified by:
notationDeclaration in interface ResultHandler

entityDeclaration

public void entityDeclaration(java.lang.String name,
                              java.lang.String publicId,
                              java.lang.String systemId,
                              java.lang.String notationName)
Specified by:
entityDeclaration in interface ResultHandler
Parameters:
notationName - For unparsed entities, the name of the notation for the entity. For parsed entities, this is null.