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
public abstract class AbstractMacroBlock extends AbstractBlock
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContent()StringgetId()inthashCode()booleanisInline()-
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, traverse
-
-
-
-
Constructor Detail
-
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 Detail
-
getContent
public String getContent()
- Returns:
- the macro content.
-
getId
public String getId()
- Returns:
- the macro identifier.
-
isInline
public boolean isInline()
- Returns:
- if true the macro is located in a inline content (like paragraph, etc.).
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractBlock
-
-