public class FO2StructureTreeConverter extends DelegatingFOEventHandler
| Modifier and Type | Field and Description |
|---|---|
protected FOEventHandler |
converter
The top of the
converters stack. |
fontInfo, foUserAgent| Constructor and Description |
|---|
FO2StructureTreeConverter(StructureTreeEventHandler structureTreeEventHandler,
FOEventHandler delegate)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
character(Character c)
Process a Character.
|
void |
characters(FOText foText)
Process character data.
|
void |
endBlock(Block bl) |
void |
endBlockContainer(BlockContainer blc) |
void |
endBody(TableBody body) |
void |
endCell(TableCell tc) |
void |
endColumn(TableColumn tc) |
void |
endDocument()
This method is called to indicate the end of a document run.
|
void |
endExternalDocument(ExternalDocument document)
Process the end of the external-document extension.
|
void |
endFlow(Flow fl) |
void |
endFooter(TableFooter footer) |
void |
endFootnote(Footnote footnote)
Process the ending of a footnote.
|
void |
endFootnoteBody(FootnoteBody body)
Process the ending of a footnote body.
|
void |
endHeader(TableHeader header) |
void |
endInline(Inline inl) |
void |
endInstreamForeignObject(InstreamForeignObject ifo)
Process the end of an InstreamForeignObject.
|
void |
endLeader(Leader l)
Process the end of a Leader.
|
void |
endLink(BasicLink basicLink)
Process end of a Link.
|
void |
endList(ListBlock lb) |
void |
endListBody(ListItemBody listItemBody)
Process end of a ListBody.
|
void |
endListItem(ListItem li) |
void |
endListLabel(ListItemLabel listItemLabel)
Process end of a ListLabel.
|
void |
endMarkup()
Process end of a Markup.
|
void |
endPageNumber(PageNumber pagenum) |
void |
endPageNumberCitation(PageNumberCitation pageCite) |
void |
endPageNumberCitationLast(PageNumberCitationLast pageLast) |
void |
endPageSequence(PageSequence pageSeq) |
void |
endRetrieveMarker(RetrieveMarker retrieveMarker)
Process the ending of a retrieve-marker.
|
void |
endRetrieveTableMarker(RetrieveTableMarker retrieveTableMarker)
Process the ending of a retrieve-table-marker.
|
void |
endRoot(Root root)
Called upon end of root element.
|
void |
endRow(TableRow tr) |
void |
endStatic(StaticContent staticContent)
Process end of a Static.
|
void |
endTable(Table tbl) |
void |
endWrapper(Wrapper wrapper)
Process the ending of a wrapper.
|
void |
image(ExternalGraphic eg)
Process an ExternalGraphic.
|
void |
pageRef()
Process a pageRef.
|
void |
restoreState(RetrieveMarker retrieveMarker)
Restore the state of this event handler as it was when the given fo:retrieve-marker
element was processed.
|
void |
restoreState(RetrieveTableMarker retrieveTableMarker)
|
void |
startBlock(Block bl) |
void |
startBlockContainer(BlockContainer blc) |
void |
startBody(TableBody body) |
void |
startCell(TableCell tc) |
void |
startColumn(TableColumn tc) |
void |
startDocument()
This method is called to indicate the start of a new document run.
|
void |
startExternalDocument(ExternalDocument document)
Process the start of the external-document extension.
|
void |
startFlow(Flow fl)
This method is called to indicate the start of a new fo:flow
or fo:static-content.
|
void |
startFooter(TableFooter footer) |
void |
startFootnote(Footnote footnote)
Process the start of a footnote.
|
void |
startFootnoteBody(FootnoteBody body)
Process the start of a footnote body.
|
void |
startHeader(TableHeader header) |
void |
startInline(Inline inl) |
void |
startInstreamForeignObject(InstreamForeignObject ifo)
Process the start of an InstreamForeignObject.
|
void |
startLeader(Leader l)
Process the start of a Leader.
|
void |
startLink(BasicLink basicLink)
Process start of a Link.
|
void |
startList(ListBlock lb) |
void |
startListBody(ListItemBody listItemBody)
Process start of a ListBody.
|
void |
startListItem(ListItem li) |
void |
startListLabel(ListItemLabel listItemLabel)
Process start of a ListLabel.
|
void |
startMarkup()
Process start of a Markup.
|
void |
startPageNumber(PageNumber pagenum) |
void |
startPageNumberCitation(PageNumberCitation pageCite) |
void |
startPageNumberCitationLast(PageNumberCitationLast pageLast) |
void |
startPageSequence(PageSequence pageSeq) |
void |
startRetrieveMarker(RetrieveMarker retrieveMarker)
Process the start of a retrieve-marker.
|
void |
startRetrieveTableMarker(RetrieveTableMarker retrieveTableMarker)
Process the start of a retrieve-table-marker.
|
void |
startRoot(Root root)
Called upon start of root element.
|
void |
startRow(TableRow tr) |
void |
startStatic(StaticContent staticContent)
Process start of a Static.
|
void |
startTable(Table tbl) |
void |
startWrapper(Wrapper wrapper)
Process the start of a wrapper.
|
getFontInfo, getResults, getUserAgentprotected FOEventHandler converter
converters stack.public FO2StructureTreeConverter(StructureTreeEventHandler structureTreeEventHandler, FOEventHandler delegate)
structureTreeEventHandler - the object that will hold the structure treedelegate - the FO event handler that must be wrapped by this instancepublic void startDocument()
throws SAXException
FOEventHandlerstartDocument in class DelegatingFOEventHandlerSAXException - In case of a problempublic void endDocument()
throws SAXException
FOEventHandlerendDocument in class DelegatingFOEventHandlerSAXException - In case of a problempublic void startRoot(Root root)
FOEventHandlerstartRoot in class DelegatingFOEventHandlerroot - elementpublic void endRoot(Root root)
FOEventHandlerendRoot in class DelegatingFOEventHandlerroot - elementpublic void startPageSequence(PageSequence pageSeq)
startPageSequence in class DelegatingFOEventHandlerpageSeq - PageSequence that is starting.public void endPageSequence(PageSequence pageSeq)
endPageSequence in class DelegatingFOEventHandlerpageSeq - PageSequence that is ending.public void startPageNumber(PageNumber pagenum)
startPageNumber in class DelegatingFOEventHandlerpagenum - PageNumber that is starting.public void endPageNumber(PageNumber pagenum)
endPageNumber in class DelegatingFOEventHandlerpagenum - PageNumber that is ending.public void startPageNumberCitation(PageNumberCitation pageCite)
startPageNumberCitation in class DelegatingFOEventHandlerpageCite - PageNumberCitation that is starting.public void endPageNumberCitation(PageNumberCitation pageCite)
endPageNumberCitation in class DelegatingFOEventHandlerpageCite - PageNumberCitation that is ending.public void startPageNumberCitationLast(PageNumberCitationLast pageLast)
startPageNumberCitationLast in class DelegatingFOEventHandlerpageLast - PageNumberCitationLast that is starting.public void endPageNumberCitationLast(PageNumberCitationLast pageLast)
endPageNumberCitationLast in class DelegatingFOEventHandlerpageLast - PageNumberCitationLast that is ending.public void startStatic(StaticContent staticContent)
FOEventHandlerstartStatic in class DelegatingFOEventHandlerstaticContent - StaticContent that is startingpublic void endStatic(StaticContent staticContent)
FOEventHandlerendStatic in class DelegatingFOEventHandlerstaticContent - StaticContent that is endingpublic void startFlow(Flow fl)
FOEventHandlerstartFlow in class DelegatingFOEventHandlerfl - Flow that is starting.public void endFlow(Flow fl)
endFlow in class DelegatingFOEventHandlerfl - Flow that is ending.public void startBlock(Block bl)
startBlock in class DelegatingFOEventHandlerbl - Block that is starting.public void endBlock(Block bl)
endBlock in class DelegatingFOEventHandlerbl - Block that is ending.public void startBlockContainer(BlockContainer blc)
startBlockContainer in class DelegatingFOEventHandlerblc - BlockContainer that is starting.public void endBlockContainer(BlockContainer blc)
endBlockContainer in class DelegatingFOEventHandlerblc - BlockContainer that is ending.public void startInline(Inline inl)
startInline in class DelegatingFOEventHandlerinl - Inline that is starting.public void endInline(Inline inl)
endInline in class DelegatingFOEventHandlerinl - Inline that is ending.public void startTable(Table tbl)
startTable in class DelegatingFOEventHandlertbl - Table that is starting.public void endTable(Table tbl)
endTable in class DelegatingFOEventHandlertbl - Table that is ending.public void startColumn(TableColumn tc)
startColumn in class DelegatingFOEventHandlertc - TableColumn that is starting;public void endColumn(TableColumn tc)
endColumn in class DelegatingFOEventHandlertc - TableColumn that is ending;public void startHeader(TableHeader header)
startHeader in class DelegatingFOEventHandlerheader - TableHeader that is starting;public void endHeader(TableHeader header)
endHeader in class DelegatingFOEventHandlerheader - TableHeader that is ending.public void startFooter(TableFooter footer)
startFooter in class DelegatingFOEventHandlerfooter - TableFooter that is starting.public void endFooter(TableFooter footer)
endFooter in class DelegatingFOEventHandlerfooter - TableFooter that is ending.public void startBody(TableBody body)
startBody in class DelegatingFOEventHandlerbody - TableBody that is starting.public void endBody(TableBody body)
endBody in class DelegatingFOEventHandlerbody - TableBody that is ending.public void startRow(TableRow tr)
startRow in class DelegatingFOEventHandlertr - TableRow that is starting.public void endRow(TableRow tr)
endRow in class DelegatingFOEventHandlertr - TableRow that is ending.public void startCell(TableCell tc)
startCell in class DelegatingFOEventHandlertc - TableCell that is starting.public void endCell(TableCell tc)
endCell in class DelegatingFOEventHandlertc - TableCell that is ending.public void startList(ListBlock lb)
startList in class DelegatingFOEventHandlerlb - ListBlock that is starting.public void endList(ListBlock lb)
endList in class DelegatingFOEventHandlerlb - ListBlock that is ending.public void startListItem(ListItem li)
startListItem in class DelegatingFOEventHandlerli - ListItem that is starting.public void endListItem(ListItem li)
endListItem in class DelegatingFOEventHandlerli - ListItem that is ending.public void startListLabel(ListItemLabel listItemLabel)
FOEventHandlerstartListLabel in class DelegatingFOEventHandlerlistItemLabel - ListItemLabel that is startingpublic void endListLabel(ListItemLabel listItemLabel)
FOEventHandlerendListLabel in class DelegatingFOEventHandlerlistItemLabel - ListItemLabel that is endingpublic void startListBody(ListItemBody listItemBody)
FOEventHandlerstartListBody in class DelegatingFOEventHandlerlistItemBody - ListItemBody that is startingpublic void endListBody(ListItemBody listItemBody)
FOEventHandlerendListBody in class DelegatingFOEventHandlerlistItemBody - ListItemBody that is endingpublic void startMarkup()
FOEventHandlerstartMarkup in class DelegatingFOEventHandlerpublic void endMarkup()
FOEventHandlerendMarkup in class DelegatingFOEventHandlerpublic void startLink(BasicLink basicLink)
FOEventHandlerstartLink in class DelegatingFOEventHandlerbasicLink - BasicLink that is startingpublic void endLink(BasicLink basicLink)
FOEventHandlerendLink in class DelegatingFOEventHandlerbasicLink - BasicLink that is endingpublic void image(ExternalGraphic eg)
FOEventHandlerimage in class DelegatingFOEventHandlereg - ExternalGraphic to process.public void pageRef()
FOEventHandlerpageRef in class DelegatingFOEventHandlerpublic void startInstreamForeignObject(InstreamForeignObject ifo)
FOEventHandlerstartInstreamForeignObject in class DelegatingFOEventHandlerifo - InstreamForeignObject that is startingpublic void endInstreamForeignObject(InstreamForeignObject ifo)
FOEventHandlerendInstreamForeignObject in class DelegatingFOEventHandlerifo - InstreamForeignObject that is endingpublic void startFootnote(Footnote footnote)
FOEventHandlerstartFootnote in class DelegatingFOEventHandlerfootnote - Footnote that is startingpublic void endFootnote(Footnote footnote)
FOEventHandlerendFootnote in class DelegatingFOEventHandlerfootnote - Footnote that is endingpublic void startFootnoteBody(FootnoteBody body)
FOEventHandlerstartFootnoteBody in class DelegatingFOEventHandlerbody - FootnoteBody that is startingpublic void endFootnoteBody(FootnoteBody body)
FOEventHandlerendFootnoteBody in class DelegatingFOEventHandlerbody - FootnoteBody that is endingpublic void startLeader(Leader l)
FOEventHandlerstartLeader in class DelegatingFOEventHandlerl - Leader that is startingpublic void endLeader(Leader l)
FOEventHandlerendLeader in class DelegatingFOEventHandlerl - Leader that is endingpublic void startWrapper(Wrapper wrapper)
FOEventHandlerstartWrapper in class DelegatingFOEventHandlerwrapper - wrapper that is startingpublic void endWrapper(Wrapper wrapper)
FOEventHandlerendWrapper in class DelegatingFOEventHandlerwrapper - wrapper that is endingpublic void startRetrieveMarker(RetrieveMarker retrieveMarker)
FOEventHandlerstartRetrieveMarker in class DelegatingFOEventHandlerretrieveMarker - the retrieve-marker that is startingpublic void endRetrieveMarker(RetrieveMarker retrieveMarker)
FOEventHandlerendRetrieveMarker in class DelegatingFOEventHandlerretrieveMarker - the retrieve-marker that is endingpublic void restoreState(RetrieveMarker retrieveMarker)
FOEventHandlerThe default implementation of this method does nothing.
restoreState in class DelegatingFOEventHandlerretrieveMarker - the fo:retrieve-marker element that is retrieving markerspublic void startRetrieveTableMarker(RetrieveTableMarker retrieveTableMarker)
FOEventHandlerstartRetrieveTableMarker in class DelegatingFOEventHandlerretrieveTableMarker - the retrieve-table-marker that is startingpublic void endRetrieveTableMarker(RetrieveTableMarker retrieveTableMarker)
FOEventHandlerendRetrieveTableMarker in class DelegatingFOEventHandlerretrieveTableMarker - the retrieve-table-marker that is endingpublic void restoreState(RetrieveTableMarker retrieveTableMarker)
FOEventHandlerrestoreState in class DelegatingFOEventHandlerpublic void character(Character c)
FOEventHandlercharacter in class DelegatingFOEventHandlerc - Character to process.public void characters(FOText foText)
FOEventHandlercharacters in class DelegatingFOEventHandlerfoText - text to processpublic void startExternalDocument(ExternalDocument document)
FOEventHandlerstartExternalDocument in class DelegatingFOEventHandlerdocument - the external-document nodepublic void endExternalDocument(ExternalDocument document)
FOEventHandlerendExternalDocument in class DelegatingFOEventHandlerdocument - the external-document nodeCopyright © 2023 Apache Software Foundation. All rights reserved.