|
||||||||||
| 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.IdentityNamespaceHandler
public class IdentityNamespaceHandler
Namespace handler to be used with text reports.
| Constructor Summary | |
|---|---|
IdentityNamespaceHandler(Report report)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
flush()
Flushes the handler. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
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)
|
| Methods inherited from class org.xml.sax.ext.DefaultHandler2 |
|---|
attributeDecl, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, 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, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Constructor Detail |
|---|
public IdentityNamespaceHandler(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 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 ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXException
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
public void comment(char[] ch,
int start,
int length)
comment in interface LexicalHandlercomment in class DefaultHandler2
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 | |||||||||