|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.templating.html.demo.DemoTagHandler
Handles two custom tags: <toc/>
and
<footnote>
. See com.arsdigita.templating.html.demo
for details.
com.arsdigita.templating.html.demo
Constructor Summary | |
DemoTagHandler()
|
Method Summary | |
void |
endDocument()
Receives notification of the end of a document. |
void |
endElement(String qName)
Receives notification of the end of an element. |
String |
getExtrapolatedDocument()
|
static String |
getExtrapolatedDocument(String textWithCustomMarkup)
|
boolean |
isValid(String qName)
|
void |
startDocument()
Receives notification of the beginning of a document. |
void |
startElement(String qName,
AttributeMap attrs)
Receives notification of the beginning of an element. |
void |
text(String text)
Receives notification of textual data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DemoTagHandler()
Method Detail |
public void startDocument()
ContentHandler
startDocument
in interface ContentHandler
public void endDocument() throws HTMLParserException
ContentHandler
endDocument
in interface ContentHandler
HTMLParserException
public void text(String text) throws HTMLParserException
ContentHandler
text
in interface ContentHandler
HTMLParserException
public boolean isValid(String qName)
public void startElement(String qName, AttributeMap attrs) throws HTMLParserException
ContentHandler
HTMLParser.isRegistered(String)
is true. Any other HTML markup will be
treated as text and will be dispatched to ContentHandler.text(String)
.
startElement
in interface ContentHandler
HTMLParserException
public void endElement(String qName) throws HTMLParserException
ContentHandler
HTMLParser.isRegistered(String)
is true. Any other HTML markup will be
treated as text and will be dispatched to ContentHandler.text(String)
.
endElement
in interface ContentHandler
HTMLParserException
public String getExtrapolatedDocument()
public static String getExtrapolatedDocument(String textWithCustomMarkup) throws HTMLParserException
HTMLParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |