Package org.xwiki.rendering.block
Class AbstractMacroBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.AbstractMacroBlock
- Direct Known Subclasses:
MacroBlock,MacroMarkerBlock
Common class to MacroBlock and MacroMakerBlock.
- Since:
- 10.0
- Version:
- $Id: 26b4b8e5dc68497dfd9d71236f64c7eab88dfeb9 $
-
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, traverse
-
Constructor Details
-
AbstractMacroBlock
public AbstractMacroBlock(List<? extends Block> childrenBlocks, Map<String, String> parameters, String id, String content, boolean inline) - Parameters:
childrenBlocks- the list of children blocks of the block to constructparameters- the parameters to setid- the name of the macrocontent- the content of the macroinline- indicate if the macro is located in a inline content
-
-
Method Details
-
getContent
- Returns:
- the macro content.
-
getId
- Returns:
- the macro identifier.
-
isInline
public boolean isInline()- Returns:
- if true the macro is located in a inline content (like paragraph, etc.).
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-