|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.listener.chaining.AbstractChainingListener
org.xwiki.rendering.listener.chaining.ConsecutiveNewLineStateChainingListener
public class ConsecutiveNewLineStateChainingListener
Counts consecutive new lines.
| Field Summary |
|---|
| Fields inherited from interface org.xwiki.rendering.listener.Listener |
|---|
EMPTY_PARAMETERS |
| Constructor Summary | |
|---|---|
ConsecutiveNewLineStateChainingListener(ListenerChain listenerChain)
|
|
| Method Summary | |
|---|---|
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 |
endGroup(Map<String,String> parameters)
End of the group. |
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 |
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 |
getNewLineCount()
|
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. |
| Methods inherited from class org.xwiki.rendering.listener.chaining.AbstractChainingListener |
|---|
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFormat, beginGroup, beginHeader, beginLink, beginList, beginListItem, beginMacroMarker, beginMetaData, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endMetaData, endSection, getListenerChain, setListenerChain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xwiki.rendering.listener.chaining.ChainingListener |
|---|
getListenerChain |
| Methods inherited from interface org.xwiki.rendering.listener.Listener |
|---|
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFormat, beginGroup, beginHeader, beginList, beginListItem, beginMacroMarker, beginMetaData, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endMetaData, endSection |
| Methods inherited from interface org.xwiki.rendering.listener.LinkListener |
|---|
beginLink |
| Constructor Detail |
|---|
public ConsecutiveNewLineStateChainingListener(ListenerChain listenerChain)
listenerChain - see AbstractChainingListener.getListenerChain()| Method Detail |
|---|
public StackableChainingListener createChainingListenerInstance()
createChainingListenerInstance in interface StackableChainingListenerStackableChainingListener.createChainingListenerInstance()public int getNewLineCount()
public void endDefinitionDescription()
endDefinitionDescription in interface ListenerendDefinitionDescription in class AbstractChainingListenerAbstractChainingListener.endDefinitionDescription()public 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"AbstractChainingListener.endDefinitionList(java.util.Map)public void endDefinitionTerm()
endDefinitionTerm in interface ListenerendDefinitionTerm in class AbstractChainingListenerAbstractChainingListener.endDefinitionTerm()public void endDocument(MetaData metaData)
endDocument in interface ListenerendDocument in class AbstractChainingListenermetaData - the meta data associated with the previous events, see MetaDataAbstractChainingListener.endDocument(org.xwiki.rendering.listener.MetaData)public void endGroup(Map<String,String> parameters)
endGroup in interface ListenerendGroup in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"AbstractChainingListener.endGroup(Map)
public void endFormat(Format format,
Map<String,String> parameters)
endFormat in interface ListenerendFormat in class AbstractChainingListenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"AbstractChainingListener.endFormat(org.xwiki.rendering.listener.Format,
java.util.Map)
public 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"AbstractChainingListener.endLink(
org.xwiki.rendering.listener.reference.ResourceReference , boolean, java.util.Map)
public void endList(ListType listType,
Map<String,String> parameters)
endList 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"AbstractChainingListener.endList(org.xwiki.rendering.listener.ListType,
java.util.Map)public void endListItem()
endListItem in interface ListenerendListItem in class AbstractChainingListenerAbstractChainingListener.endListItem()
public void endMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
endMacroMarker 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.)AbstractChainingListener.endMacroMarker(java.lang.String,
java.util.Map, java.lang.String, boolean)public void endParagraph(Map<String,String> parameters)
endParagraph in interface ListenerendParagraph in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"AbstractChainingListener.endParagraph(java.util.Map)public void endQuotation(Map<String,String> parameters)
endQuotation in interface ListenerendQuotation in class AbstractChainingListenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"AbstractChainingListener.endQuotation(java.util.Map)public void endQuotationLine()
endQuotationLine in interface ListenerendQuotationLine in class AbstractChainingListenerAbstractChainingListener.endQuotationLine()
public void endHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
endHeader 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"AbstractChainingListener.endHeader(org.xwiki.rendering.listener.HeaderLevel,
java.lang.String, java.util.Map)public void endTable(Map<String,String> parameters)
endTable in interface ListenerendTable in class AbstractChainingListenerparameters - a generic list of parameters for the table.AbstractChainingListener.endTable(java.util.Map)public void endTableCell(Map<String,String> parameters)
endTableCell in interface ListenerendTableCell in class AbstractChainingListenerparameters - a generic list of parameters for the table cell.AbstractChainingListener.endTableCell(java.util.Map)public void endTableHeadCell(Map<String,String> parameters)
endTableHeadCell in interface ListenerendTableHeadCell in class AbstractChainingListenerparameters - a generic list of parameters for the table head cell.AbstractChainingListener.endTableHeadCell(java.util.Map)public void endTableRow(Map<String,String> parameters)
endTableRow in interface ListenerendTableRow in class AbstractChainingListenerparameters - a generic list of parameters for the table row.AbstractChainingListener.endTableRow(java.util.Map)
public void onRawText(String text,
Syntax syntax)
onRawText 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 syntaxAbstractChainingListener.onRawText(String, Syntax)public void onEmptyLines(int count)
onEmptyLines in interface ListeneronEmptyLines in class AbstractChainingListenercount - the number of empty lines between 2 standalone BlocksAbstractChainingListener.onEmptyLines(int)public void onHorizontalLine(Map<String,String> parameters)
onHorizontalLine in interface ListeneronHorizontalLine in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"AbstractChainingListener.onHorizontalLine(java.util.Map)public void onId(String name)
onId in interface ListeneronId in class AbstractChainingListenername - the location name.AbstractChainingListener.onId(java.lang.String)
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"AbstractChainingListener.onImage(
org.xwiki.rendering.listener.reference.ResourceReference , boolean, java.util.Map)public void onNewLine()
onNewLine in interface ListeneronNewLine in class AbstractChainingListenerAbstractChainingListener.onNewLine()public void onSpace()
onSpace in interface ListeneronSpace in class AbstractChainingListenerAbstractChainingListener.onSpace()public void onSpecialSymbol(char symbol)
onSpecialSymbol in interface ListeneronSpecialSymbol in class AbstractChainingListenersymbol - the symbol encounteredAbstractChainingListener.onSpecialSymbol(char)
public void onMacro(String id,
Map<String,String> parameters,
String content,
boolean isInline)
onMacro 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.)AbstractChainingListener.onMacro(String, Map, String, boolean)
public void onVerbatim(String protectedString,
boolean isInline,
Map<String,String> parameters)
onVerbatim 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"AbstractChainingListener.onVerbatim(String, boolean, Map)public void onWord(String word)
onWord in interface ListeneronWord in class AbstractChainingListenerword - the word encounteredAbstractChainingListener.onWord(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||