|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.xml.sax.ext.DefaultHandler2
info.informatica.report.handler.XHTMLNamespaceHandler
public class XHTMLNamespaceHandler
Document handler for XHTML tags.
| Constructor Summary | |
|---|---|
XHTMLNamespaceHandler(Report report)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
flush()
Flushes the handler. |
boolean |
isInsideForeignElement()
The parsing is considered to be inside a foreign element when it is not inside a Report element. |
void |
registerReportHandler(ReportScopeHandler carteHandler)
Registers a ReportScopeHandler to receive callbacks (events) from this ForeignNamespaceHandler. |
void |
setTargetDocumentDeclaration(String dtdDecl)
Sets the document type declaration of the target document format. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class org.xml.sax.ext.DefaultHandler2 |
|---|
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Constructor Detail |
|---|
public XHTMLNamespaceHandler(Report report)
| Method Detail |
|---|
public void registerReportHandler(ReportScopeHandler carteHandler)
ForeignNamespaceHandler
registerReportHandler in interface ForeignNamespaceHandlercarteHandler - the handler
public void setTargetDocumentDeclaration(String dtdDecl)
throws info.informatica.doc.DocumentFormatException
ForeignNamespaceHandlerIntended only for reports that have an XML format as destination.
setTargetDocumentDeclaration in interface ForeignNamespaceHandlerdtdDecl - the document type declaration.
info.informatica.doc.DocumentFormatException - if the document type is not supported.
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXException
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException
public void flush()
throws SAXException
ForeignNamespaceHandlerHandlers are required to merge as much templates as possible, to optimize the report. Small templates should be merged to form a larger one, and this merged template must be committed when this method is called. This is typically done when the end of the document, or a new report tag, is found.
When the handler is flushed, it should commit any pending work.
flush in interface ForeignNamespaceHandlerSAXException - if any problem is found when flushing.public boolean isInsideForeignElement()
ForeignNamespaceHandler
isInsideForeignElement in interface ForeignNamespaceHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||