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 ofBlockMatcherwhich matchesMacroMarkerBlocks for a list of provided macro names.- Since:
- 11.4
- Version:
- $Id: 58e8506ec203e93fb50dcf5a19a36634ca81ce9f $
-
-
Constructor Summary
Constructors Constructor Description MacroMarkerBlockMatcher(String... macroIds)MatchMacroMarkerBlocks having the passed ids.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Block block)True if the provided block is matched.
-
-
-
Constructor Detail
-
MacroMarkerBlockMatcher
public MacroMarkerBlockMatcher(String... macroIds)
MatchMacroMarkerBlocks having the passed ids.- Parameters:
macroIds- the macro ids to match
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcherTrue if the provided block is matched.- Specified by:
matchin interfaceBlockMatcher- Overrides:
matchin classClassBlockMatcher- Parameters:
block- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-