Class ChildBlocksBuilder
java.lang.Object
org.apache.maven.doxia.module.confluence.parser.ChildBlocksBuilder
Re-usable builder that can be used to generate paragraph and list item text from a string containing all the content
and wiki formatting. This class is intentionally stateful, but cheap to create, so create one as needed and keep it
on the stack to preserve stateless behaviour in the caller.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private StringBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringBuilder
addTextBlockIfNecessary
(List<Block> blcks, List<Block> specialBlocks, StringBuilder txt) Utility method to convert marked up content into blocks for rendering.getChildren
(StringBuilder buffer, List<Block> currentBlocks) private static char
-
Field Details
-
insideBold
private boolean insideBold -
insideItalic
private boolean insideItalic -
insideLink
private boolean insideLink -
insideLinethrough
private boolean insideLinethrough -
insideUnderline
private boolean insideUnderline -
insideSub
private boolean insideSub -
insideSup
private boolean insideSup -
blocks
-
text
-
input
-
insideMonospaced
private boolean insideMonospaced
-
-
Constructor Details
-
ChildBlocksBuilder
Constructor for ChildBlocksBuilder.
- Parameters:
input
- the input.
-
-
Method Details
-
getBlocks
Utility method to convert marked up content into blocks for rendering.- Returns:
- a list of Blocks that can be used to render it
-
getList
-
getChildren
-
nextChar
-
addTextBlockIfNecessary
private StringBuilder addTextBlockIfNecessary(List<Block> blcks, List<Block> specialBlocks, StringBuilder txt)
-