|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.DOMBuilder | +--org.apache.xalan.stree.StreeDOMBuilder
**For internal use only** This class takes SAX events (in addition to some extra events that SAX doesn't handle yet) and adds the result to a document or document fragment.
Fields inherited from class org.apache.xml.utils.DOMBuilder |
m_doc,
m_docFrag |
Constructor Summary | |
StreeDOMBuilder(Document doc)
StreeDOMBuilder instance constructor... |
|
StreeDOMBuilder(Document doc,
DocumentFragment docFrag)
StreeDOMBuilder instance constructor... |
|
StreeDOMBuilder(Document doc,
Node node)
StreeDOMBuilder instance constructor... |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data. |
void |
charactersRaw(char[] ch,
int start,
int length)
If available, when the disable-output-escaping attribute is used, output raw text without escaping. |
void |
comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name)
Receive notification of the end of an element. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of ignorable whitespace in element content. |
void |
setIDAttribute(java.lang.String id,
Element elem)
Set an ID string to node association in the ID table. |
void |
setPreviousIsText(boolean isText)
Set the state of the source tree to indicate whether the last event was a characters event. |
void |
startElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name,
Attributes atts)
Receive notification of the beginning of an element. |
Methods inherited from class org.apache.xml.utils.DOMBuilder |
cdata,
endCDATA,
endDTD,
endEntity,
endPrefixMapping,
entityReference,
getCurrentNode,
getRootNode,
getWriter,
setDocumentLocator,
skippedEntity,
startCDATA,
startDocument,
startDTD,
startEntity,
startPrefixMapping |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StreeDOMBuilder(Document doc, Node node)
doc
- Root node of DOM being creatednode
- Node currently being processedpublic StreeDOMBuilder(Document doc, DocumentFragment docFrag)
doc
- Root node of DOM being createddocFrag
- Document fragment node of DOM being createdpublic StreeDOMBuilder(Document doc)
doc
- Root node of DOM being createdMethod Detail |
public void setIDAttribute(java.lang.String id, Element elem)
id
- The ID string.elem
- The associated ID.public void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, Attributes atts) throws SAXException
ns
- namespace URL of the elementlocalName
- local part of qualified name of the elementname
- The element type name.atts
- The attributes attached to the element, if any.DOMBuilder.startElement(String, String, String, Attributes)
public void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name) throws SAXException
ns
- namespace URL of the elementlocalName
- local part of qualified name of the elementname
- The element type namepublic void characters(char[] ch, int start, int length) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.public void charactersRaw(char[] ch, int start, int length) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.public void comment(char[] ch, int start, int length) throws SAXException
ch
- An array holding the characters in the comment.start
- The starting position in the array.length
- The number of characters to use from the array.public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.characters(char[], int, int)
public void setPreviousIsText(boolean isText) throws SAXException
isText
- True if last event was a characters eventpublic void endDocument() throws SAXException
The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |