public class MetaDataStateChainingListener extends AbstractChainingListener
EMPTY_PARAMETERS
Constructor and Description |
---|
MetaDataStateChainingListener(ListenerChain listenerChain) |
Modifier and Type | Method and Description |
---|---|
void |
beginDocument(MetaData metaData)
Start of the document.
|
void |
beginMetaData(MetaData metaData)
Start of MetaData (eg saving source from where the content is coming from).
|
void |
endDocument(MetaData metaData)
End of the document.
|
void |
endMetaData(MetaData metaData)
End of MetaData.
|
<T> List<T> |
getAllMetaData(String key) |
<T> T |
getMetaData(String key) |
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginFigure, beginFigureCaption, beginFormat, beginGroup, beginHeader, beginLink, beginList, beginListItem, beginListItem, beginMacroMarker, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endFigure, endFigureCaption, endFormat, endGroup, endHeader, endLink, endList, endListItem, endListItem, endMacroMarker, endParagraph, endQuotation, endQuotationLine, endSection, endTable, endTableCell, endTableHeadCell, endTableRow, getListenerChain, onEmptyLines, onHorizontalLine, onId, onImage, onMacro, onNewLine, onRawText, onSpace, onSpecialSymbol, onVerbatim, onWord, setListenerChain
public MetaDataStateChainingListener(ListenerChain listenerChain)
listenerChain
- see AbstractChainingListener.getListenerChain()
public <T> List<T> getAllMetaData(String key)
T
- the type of the value for the passed keykey
- the key for which to find the valuepublic <T> T getMetaData(String key)
T
- the type of the value for the passed keykey
- the key for which to find the valuepublic void beginDocument(MetaData metaData)
Listener
beginDocument
in interface Listener
beginDocument
in class AbstractChainingListener
metaData
- the meta data to associate to the following events, see MetaData
public void endDocument(MetaData metaData)
Listener
endDocument
in interface Listener
endDocument
in class AbstractChainingListener
metaData
- the meta data associated with the previous events, see MetaData
public void beginMetaData(MetaData metaData)
Listener
beginMetaData
in interface Listener
beginMetaData
in class AbstractChainingListener
metaData
- the metadatapublic void endMetaData(MetaData metaData)
Listener
endMetaData
in interface Listener
endMetaData
in class AbstractChainingListener
metaData
- the metadataCopyright © 2004–2021 XWiki. All rights reserved.