Package org.xwiki.rendering.block.match
Class MetadataBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.ClassBlockMatcher
-
- org.xwiki.rendering.block.match.MetadataBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
public class MetadataBlockMatcher extends ClassBlockMatcher
Implementation ofBlockMatcherwhich matchesMetaDatainformation.- Since:
- 3.0M3
- Version:
- $Id: d939875149aba6eb28434f256722080eca505af7 $
-
-
Constructor Summary
Constructors Constructor Description MetadataBlockMatcher(String metadataKey)MatchMetaDataBlockcontaining the provided key.MetadataBlockMatcher(String metadataKey, Object metadataValue)MatchMetaDataBlockcontaining the provided key/value pair.
-
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
-
MetadataBlockMatcher
public MetadataBlockMatcher(String metadataKey)
MatchMetaDataBlockcontaining the provided key.- Parameters:
metadataKey- the key of theMetaData
-
MetadataBlockMatcher
public MetadataBlockMatcher(String metadataKey, Object metadataValue)
MatchMetaDataBlockcontaining the provided key/value pair.
-
-
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
-
-