Package org.xwiki.rendering.block
Class RawBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.RawBlock
Represents some raw content that shouldn't be parsed or modified and that should be injected as is in any output. The
content depends on a syntax and listeners decide if they can handle that syntax or not. For example if it's in
"xhtml/1.0" syntax then the XHTML Renderer can insert it directly in the XHTML output.
- Since:
- 1.8.3
- Version:
- $Id: f43998235ed54eb324416bbd919f88e91d0dd1c7 $
-
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
Constructors -
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
-
RawBlock
- Parameters:
rawContent- the content to inject as is into the listener (it won't be modified)syntax- the syntax in which the content is written
-
-
Method Details
-
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.
-
getRawContent
- Returns:
- the content to inject as is into the listener (it won't be modified)
-
getSyntax
- Returns:
- the syntax in which the content is written
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-