Package org.xwiki.rendering.block
Class VerbatimBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.VerbatimBlock
A Verbatim block.
- Since:
- 1.8M2
- Version:
- $Id: 22056513a919039095ba7c732d17042acc19a8d8 $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes -
Field Summary
Fields inherited from interface org.xwiki.rendering.block.Block
LIST_BLOCK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionVerbatimBlock(String protectedString, boolean isInline) VerbatimBlock(String protectedString, Map<String, String> parameters, boolean isInline) -
Method Summary
Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, clone, clone, get, getAttribute, getAttributes, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, getSyntaxMetadata, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setAttribute, setAttributes, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
-
Constructor Details
-
VerbatimBlock
- Parameters:
protectedString- the string to protect from rendering.isInline- if true the macro is located in a inline content (like paragraph, etc.).
-
VerbatimBlock
- Parameters:
protectedString- the string to protect from rendering.parameters- the custom parametersisInline- if true the macro is located in a inline content (like paragraph, etc.).
-
-
Method Details
-
getProtectedString
- Returns:
- the string to protect from rendering
-
isInline
public boolean isInline()- Returns:
- if true the macro is located in a inline content (like paragraph, etc.).
-
traverse
Description copied from interface:BlockLet the block sendListenerevents corresponding to its content. For example a Paragraph block will send theListener.beginParagraph(java.util.Map<java.lang.String, java.lang.String>)andListener.endParagraph(java.util.Map<java.lang.String, java.lang.String>)events when this method is called.- Specified by:
traversein interfaceBlock- Overrides:
traversein classAbstractBlock- Parameters:
listener- the listener to which to send the events to.
-
toString
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-