Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.six
Class DOMBuilder  view DOMBuilder download DOMBuilder.java

java.lang.Object
  extended byorg.jdaemon.six.DOMBuilder
All Implemented Interfaces:
Builder

public class DOMBuilder
extends java.lang.Object
implements Builder


Field Summary
private  org.w3c.dom.Node current
          Current node in document being built
private  org.w3c.dom.Document document
          Documenet being built
 
Constructor Summary
DOMBuilder(javax.xml.parsers.DocumentBuilder document_builder)
          Creates a new instance of DOMBuilder.
 
Method Summary
 void endElement(java.lang.String type)
          End a document element; subsequent elements will be children of this element's parent
 org.w3c.dom.Document getDocument()
          get the generated Document
 void startElement(java.lang.String type, org.jdaemon.util.AttributeList attributes)
          Begin a document element; subsequent elements will be children of this element
 void writeObject(java.lang.Object content)
          Add content to a document element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

private org.w3c.dom.Document document
Documenet being built


current

private org.w3c.dom.Node current
Current node in document being built

Constructor Detail

DOMBuilder

public DOMBuilder(javax.xml.parsers.DocumentBuilder document_builder)
Creates a new instance of DOMBuilder.

Method Detail

endElement

public void endElement(java.lang.String type)
End a document element; subsequent elements will be children of this element's parent

Specified by:
endElement in interface Builder

startElement

public void startElement(java.lang.String type,
                         org.jdaemon.util.AttributeList attributes)
Begin a document element; subsequent elements will be children of this element

Specified by:
startElement in interface Builder

writeObject

public void writeObject(java.lang.Object content)
Add content to a document element

Specified by:
writeObject in interface Builder

getDocument

public org.w3c.dom.Document getDocument()
get the generated Document