Package org.xwiki.rendering.block.match
Class MacroMarkerBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.ClassBlockMatcher
-
- org.xwiki.rendering.block.match.MacroMarkerBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
public class MacroMarkerBlockMatcher extends ClassBlockMatcher
Implementation ofBlockMatcher
which matchesMacroMarkerBlock
s for a list of provided macro names.- Since:
- 11.4
- Version:
- $Id: 58e8506ec203e93fb50dcf5a19a36634ca81ce9f $
-
-
Constructor Summary
Constructors Constructor Description MacroMarkerBlockMatcher(String... macroIds)
MatchMacroMarkerBlock
s having the passed ids.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(Block block)
True if the provided block is matched.
-
-
-
Constructor Detail
-
MacroMarkerBlockMatcher
public MacroMarkerBlockMatcher(String... macroIds)
MatchMacroMarkerBlock
s having the passed ids.- Parameters:
macroIds
- the macro ids to match
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcher
True if the provided block is matched.- Specified by:
match
in interfaceBlockMatcher
- Overrides:
match
in classClassBlockMatcher
- Parameters:
block
- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-