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
Implementation of
BlockMatcher which matches MetaData information.- Since:
- 3.0M3
- Version:
- $Id: 82adc6572f38518d107c2d24716c20f4994f998f $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetadataBlockMatcherTheMetadataBlockMatcherforMetaData.SYNTAX. -
Constructor Summary
ConstructorsConstructorDescriptionMetadataBlockMatcher(String metadataKey) MatchMetaDataBlockcontaining the provided key.MetadataBlockMatcher(String metadataKey, Object metadataValue) MatchMetaDataBlockcontaining the provided key/value pair. -
Method Summary
-
Field Details
-
SYNTAX
TheMetadataBlockMatcherforMetaData.SYNTAX.- Since:
- 15.9RC1
-
-
Constructor Details
-
MetadataBlockMatcher
MatchMetaDataBlockcontaining the provided key.- Parameters:
metadataKey- the key of theMetaData
-
MetadataBlockMatcher
MatchMetaDataBlockcontaining the provided key/value pair.
-
-
Method Details
-
match
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
-