Package org.xwiki.rendering.block
Class SpecialSymbolBlock
- java.lang.Object
-
- org.xwiki.rendering.block.AbstractBlock
-
- org.xwiki.rendering.block.SpecialSymbolBlock
-
public class SpecialSymbolBlock extends AbstractBlock
Represent a non-alphanumeric and non-space symbol (>
,]
, ...).- Since:
- 1.5M2
- Version:
- $Id: 77c2aa6d3bd0a4bc1ba506080da80847372f00bb $
-
-
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 Constructor Description SpecialSymbolBlock(char symbol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
char
getSymbol()
int
hashCode()
String
toString()
void
traverse(Listener listener)
Let the block sendListener
events corresponding to its content.-
Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, clone, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
-
-
-
-
Method Detail
-
getSymbol
public char getSymbol()
- Returns:
- the symbol
-
traverse
public void traverse(Listener listener)
Description copied from interface:Block
Let the block sendListener
events 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:
traverse
in interfaceBlock
- Overrides:
traverse
in classAbstractBlock
- Parameters:
listener
- the listener to which to send the events to.
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractBlock
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractBlock
-
-