public class BlockStateChainingListener extends AbstractChainingListener implements StackableChainingListener
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockStateChainingListener.Event |
EMPTY_PARAMETERS| Constructor and Description |
|---|
BlockStateChainingListener(ListenerChain listenerChain) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginDefinitionDescription()
Start of a definition list description.
|
void |
beginDefinitionList(Map<String,String> parameters)
Start of a definition list.
|
void |
beginDefinitionTerm()
Start of a definition list term.
|
void |
beginHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
Start of a header.
|
void |
beginLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
Start of a link.
|
void |
beginList(ListType listType,
Map<String,String> parameters)
Start of a list.
|
void |
beginListItem()
Start of a list item.
|
void |
beginMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
Start of marker containing a macro definition.
|
void |
beginParagraph(Map<String,String> parameters)
Start of a paragraph.
|
void |
beginQuotation(Map<String,String> parameters)
Start of a quotation.
|
void |
beginQuotationLine()
Start of a quotation line.
|
void |
beginTable(Map<String,String> parameters)
Start of a table.
|
void |
beginTableCell(Map<String,String> parameters)
Start of a table cell.
|
void |
beginTableHeadCell(Map<String,String> parameters)
Start of a table head cell.
|
void |
beginTableRow(Map<String,String> parameters)
Start of a table row.
|
StackableChainingListener |
createChainingListenerInstance() |
void |
endDefinitionDescription()
End of a definition list description.
|
void |
endDefinitionList(Map<String,String> parameters)
End of a definition list.
|
void |
endDefinitionTerm()
End of a definition list term.
|
void |
endDocument(MetaData metaData)
End of the document.
|
void |
endFormat(Format format,
Map<String,String> parameters)
End of a text formatting block.
|
void |
endHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
End of a header.
|
void |
endLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
End of a link.
|
void |
endList(ListType listType,
Map<String,String> parameters)
End of a list.
|
void |
endListItem()
End of a list item.
|
void |
endMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
End of marker containing a macro definition.
|
void |
endParagraph(Map<String,String> parameters)
End of a paragraph.
|
void |
endQuotation(Map<String,String> parameters)
End of a quotation.
|
void |
endQuotationLine()
End of a quotation line.
|
void |
endSection(Map<String,String> parameters)
End of a section.
|
void |
endTable(Map<String,String> parameters)
End of a table.
|
void |
endTableCell(Map<String,String> parameters)
End of a table cell.
|
void |
endTableHeadCell(Map<String,String> parameters)
End of a table head cell.
|
void |
endTableRow(Map<String,String> parameters)
End of a table row.
|
int |
getCellCol() |
int |
getCellRow() |
int |
getDefinitionListDepth() |
int |
getDefinitionListItemIndex() |
int |
getInlineDepth() |
int |
getLinkDepth() |
int |
getListDepth() |
int |
getListItemIndex() |
int |
getMacroDepth() |
BlockStateChainingListener.Event |
getPreviousEvent() |
int |
getQuotationDepth() |
int |
getQuotationLineDepth() |
int |
getQuotationLineIndex() |
boolean |
isInDefinitionList() |
boolean |
isInHeader() |
boolean |
isInLine() |
boolean |
isInLink() |
boolean |
isInList() |
boolean |
isInMacro() |
boolean |
isInParagraph() |
boolean |
isInQuotation() |
boolean |
isInQuotationLine() |
boolean |
isInTable() |
boolean |
isInTableCell() |
void |
onEmptyLines(int count)
Represents an empty line between 2 standalone Blocks.
|
void |
onHorizontalLine(Map<String,String> parameters)
Represents an horizontal line.
|
void |
onId(String name)
A reference/location in a page.
|
void |
onImage(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
An image.
|
void |
onMacro(String id,
Map<String,String> parameters,
String content,
boolean isInline)
A Macro.
|
void |
onNewLine()
A new line or line break (it's up to the renderers to decide if it should be outputted as a new line or as a line
break in the given syntax).
|
void |
onRawText(String text,
Syntax syntax)
Some text to inject directly into the listener output without parsing it.
|
void |
onSpace()
A space.
|
void |
onSpecialSymbol(char symbol)
A special symbol ("*", "<", ">", "=", quote, etc).
|
void |
onVerbatim(String protectedString,
boolean isInline,
Map<String,String> parameters)
A portion of text.
|
void |
onWord(String word)
A word.
|
void |
popLinkDepth() |
void |
pushLinkDepth() |
beginDocument, beginFormat, beginGroup, beginMetaData, beginSection, endGroup, endMetaData, getListenerChain, setListenerChainclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListenerChainbeginDocument, beginFormat, beginGroup, beginMetaData, beginSection, endGroup, endMetaDatapublic BlockStateChainingListener(ListenerChain listenerChain)
public StackableChainingListener createChainingListenerInstance()
createChainingListenerInstance in interface StackableChainingListenerpublic BlockStateChainingListener.Event getPreviousEvent()
public int getInlineDepth()
public boolean isInLine()
public boolean isInParagraph()
public boolean isInHeader()
public boolean isInTable()
public boolean isInTableCell()
public int getCellCol()
public int getCellRow()
public int getDefinitionListDepth()
public boolean isInDefinitionList()
public int getDefinitionListItemIndex()
public int getListDepth()
public boolean isInList()
public int getListItemIndex()
public void pushLinkDepth()
public void popLinkDepth()
public int getLinkDepth()
public boolean isInLink()
public int getQuotationDepth()
public boolean isInQuotation()
public int getQuotationLineDepth()
public boolean isInQuotationLine()
public int getQuotationLineIndex()
public int getMacroDepth()
public boolean isInMacro()
public void beginDefinitionDescription()
ListenerbeginDefinitionDescription in interface ListenerbeginDefinitionDescription in class AbstractChainingListenerpublic void beginDefinitionList(Map<String,String> parameters)
beginDefinitionList in interface ListenerbeginDefinitionList in class AbstractChainingListenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"public void beginDefinitionTerm()
ListenerbeginDefinitionTerm in interface ListenerbeginDefinitionTerm in class AbstractChainingListenerpublic void beginLink(ResourceReference reference, boolean isFreeStandingURI, Map<String,String> parameters)
beginLink in interface LinkListenerbeginLink in class AbstractChainingListenerreference - the link referenceisFreeStandingURI - if true then the link is a free standing URI directly in the textparameters - a generic list of parameters. Example: style="background-color: blue"ResourceReferencepublic void beginList(ListType listType, Map<String,String> parameters)
ListenerbeginList in interface ListenerbeginList in class AbstractChainingListenerlistType - the type of list (bulleted, numbered, etc)parameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"ListTypepublic void beginListItem()
ListenerbeginListItem in interface ListenerbeginListItem in class AbstractChainingListenerpublic void beginMacroMarker(String name, Map<String,String> parameters, String content, boolean isInline)
ListenerbeginMacroMarker in interface ListenerbeginMacroMarker in class AbstractChainingListenername - the macro nameparameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Listener.onMacro(String, java.util.Map, String, boolean)public void beginParagraph(Map<String,String> parameters)
ListenerbeginParagraph in interface ListenerbeginParagraph in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"public void beginQuotation(Map<String,String> parameters)
ListenerbeginQuotation in interface ListenerbeginQuotation in class AbstractChainingListenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"public void beginQuotationLine()
ListenerbeginQuotationLine in interface ListenerbeginQuotationLine in class AbstractChainingListenerpublic void beginHeader(HeaderLevel level, String id, Map<String,String> parameters)
ListenerbeginHeader in interface ListenerbeginHeader in class AbstractChainingListenerlevel - the header level (1, 2, 3, etc)id - the header unique identifierparameters - a generic list of parameters. Example: style="background-color: blue"HeaderLevelpublic void beginTable(Map<String,String> parameters)
ListenerbeginTable in interface ListenerbeginTable in class AbstractChainingListenerparameters - a generic list of parameters for the table.public void beginTableRow(Map<String,String> parameters)
ListenerbeginTableRow in interface ListenerbeginTableRow in class AbstractChainingListenerparameters - a generic list of parameters for the table row.public void beginTableCell(Map<String,String> parameters)
ListenerbeginTableCell in interface ListenerbeginTableCell in class AbstractChainingListenerparameters - a generic list of parameters for the table cell.public void beginTableHeadCell(Map<String,String> parameters)
ListenerbeginTableHeadCell in interface ListenerbeginTableHeadCell in class AbstractChainingListenerparameters - a generic list of parameters for the table head cell.public void endDefinitionDescription()
ListenerendDefinitionDescription in interface ListenerendDefinitionDescription in class AbstractChainingListenerpublic void endDefinitionList(Map<String,String> parameters)
endDefinitionList in interface ListenerendDefinitionList in class AbstractChainingListenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"public void endDefinitionTerm()
ListenerendDefinitionTerm in interface ListenerendDefinitionTerm in class AbstractChainingListenerpublic void endDocument(MetaData metaData)
endDocument in interface ListenerendDocument in class AbstractChainingListenermetaData - the meta data associated with the previous events, see MetaDatapublic void endFormat(Format format, Map<String,String> parameters)
ListenerendFormat in interface ListenerendFormat in class AbstractChainingListenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"Formatpublic void endLink(ResourceReference reference, boolean isFreeStandingURI, Map<String,String> parameters)
endLink in interface LinkListenerendLink in class AbstractChainingListenerreference - the link referenceisFreeStandingURI - if true then the link is a free standing URI directly in the textparameters - a generic list of parameters. Example: style="background-color: blue"ResourceReferencepublic void endList(ListType listType, Map<String,String> parameters)
ListenerendList in interface ListenerendList in class AbstractChainingListenerlistType - the type of list (bulleted, numbered, etc)parameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"ListTypepublic void endListItem()
ListenerendListItem in interface ListenerendListItem in class AbstractChainingListenerpublic void endMacroMarker(String name, Map<String,String> parameters, String content, boolean isInline)
ListenerendMacroMarker in interface ListenerendMacroMarker in class AbstractChainingListenername - the macro nameparameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Listener.beginMacroMarker(String, java.util.Map, String, boolean)public void endParagraph(Map<String,String> parameters)
ListenerendParagraph in interface ListenerendParagraph in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"public void endQuotation(Map<String,String> parameters)
ListenerendQuotation in interface ListenerendQuotation in class AbstractChainingListenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"public void endQuotationLine()
ListenerendQuotationLine in interface ListenerendQuotationLine in class AbstractChainingListenerpublic void endSection(Map<String,String> parameters)
ListenerendSection in interface ListenerendSection in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"HeaderLevelpublic void endHeader(HeaderLevel level, String id, Map<String,String> parameters)
ListenerendHeader in interface ListenerendHeader in class AbstractChainingListenerlevel - the header level (1, 2, 3, etc)id - the header unique identifierparameters - a generic list of parameters. Example: style="background-color: blue"HeaderLevelpublic void endTable(Map<String,String> parameters)
ListenerendTable in interface ListenerendTable in class AbstractChainingListenerparameters - a generic list of parameters for the table.public void endTableCell(Map<String,String> parameters)
ListenerendTableCell in interface ListenerendTableCell in class AbstractChainingListenerparameters - a generic list of parameters for the table cell.public void endTableHeadCell(Map<String,String> parameters)
ListenerendTableHeadCell in interface ListenerendTableHeadCell in class AbstractChainingListenerparameters - a generic list of parameters for the table head cell.public void endTableRow(Map<String,String> parameters)
ListenerendTableRow in interface ListenerendTableRow in class AbstractChainingListenerparameters - a generic list of parameters for the table row.public void onRawText(String text, Syntax syntax)
ListeneronRawText in interface ListeneronRawText in class AbstractChainingListenertext - the text to injectsyntax - the syntax in which the text is written. This is useful so that listener implementations can decide
whether they can handle direct inject for that syntaxpublic void onEmptyLines(int count)
ListeneronEmptyLines in interface ListeneronEmptyLines in class AbstractChainingListenercount - the number of empty lines between 2 standalone Blockspublic void onHorizontalLine(Map<String,String> parameters)
ListeneronHorizontalLine in interface ListeneronHorizontalLine in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"public void onId(String name)
ListeneronId in interface ListeneronId in class AbstractChainingListenername - the location name.public void onImage(ResourceReference reference, boolean isFreeStandingURI, Map<String,String> parameters)
onImage in interface ImageListeneronImage in class AbstractChainingListenerreference - the image referenceisFreeStandingURI - if true then the image is defined directly as a URI in the textparameters - a generic list of parameters. Example: style="background-color: blue"public void onNewLine()
ListeneronNewLine in interface ListeneronNewLine in class AbstractChainingListenerpublic void onSpace()
ListeneronSpace in interface ListeneronSpace in class AbstractChainingListenerpublic void onSpecialSymbol(char symbol)
ListeneronSpecialSymbol in interface ListeneronSpecialSymbol in class AbstractChainingListenersymbol - the symbol encounteredpublic void onVerbatim(String protectedString, boolean isInline, Map<String,String> parameters)
ListeneronVerbatim in interface ListeneronVerbatim in class AbstractChainingListenerprotectedString - the string to protected from renderingisInline - if true the text content is located in a inline content (like paragraph, etc.)parameters - a generic list of parameters. Example: style="background-color: blue"public void onWord(String word)
ListeneronWord in interface ListeneronWord in class AbstractChainingListenerword - the word encounteredpublic void onMacro(String id, Map<String,String> parameters, String content, boolean isInline)
ListeneronMacro in interface ListeneronMacro in class AbstractChainingListenerid - the macro id (eg "toc" for the TOC macro)parameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Copyright © 2004–2015 XWiki. All rights reserved.