org.milyn.delivery.dom
Class DOMBuilder
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.xml.sax.ext.DefaultHandler2
org.milyn.delivery.dom.DOMBuilder
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler
public class DOMBuilder
- extends DefaultHandler2
DOM Document builder.
Handler class for DOM construction.
- Author:
- tom.fennelly@gmail.com
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endEntity(String name)
|
Document |
getDocument()
Get the Document node of the document into which this handler
is parsing. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
setAppendElement(Element appendElement)
Set the DOM Element node on which the parsed content it to be added. |
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startEntity(String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMBuilder
public DOMBuilder(ExecutionContext execContext)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class DefaultHandler
- Throws:
SAXException
getDocument
public Document getDocument()
- Get the Document node of the document into which this handler
is parsing.
- Returns:
- Returns the ownerDocument.
setAppendElement
public void setAppendElement(Element appendElement)
- Set the DOM Element node on which the parsed content it to be added.
Used to merge ownerDocument fragments etc.
- Parameters:
appendElement - The append DOM element.
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class DefaultHandler
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace in interface ContentHandler- Overrides:
ignorableWhitespace in class DefaultHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA in interface LexicalHandler- Overrides:
startCDATA in class DefaultHandler2
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA in interface LexicalHandler- Overrides:
endCDATA in class DefaultHandler2
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
comment in interface LexicalHandler- Overrides:
comment in class DefaultHandler2
- Throws:
SAXException
startEntity
public void startEntity(String name)
throws SAXException
- Specified by:
startEntity in interface LexicalHandler- Overrides:
startEntity in class DefaultHandler2
- Throws:
SAXException
endEntity
public void endEntity(String name)
throws SAXException
- Specified by:
endEntity in interface LexicalHandler- Overrides:
endEntity in class DefaultHandler2
- Throws:
SAXException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
startDTD in interface LexicalHandler- Overrides:
startDTD in class DefaultHandler2
- Throws:
SAXException
Copyright © 2008. All Rights Reserved.