public class MetadataBlockMatcher extends ClassBlockMatcher
BlockMatcher
which matches MetaData
information.Constructor and Description |
---|
MetadataBlockMatcher(String metadataKey)
Match
MetaDataBlock containing the provided key. |
MetadataBlockMatcher(String metadataKey,
Object metadataValue)
Match
MetaDataBlock containing the provided key/value pair. |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Block block)
True if the provided block is matched.
|
public MetadataBlockMatcher(String metadataKey)
MetaDataBlock
containing the provided key.metadataKey
- the key of the MetaData
public MetadataBlockMatcher(String metadataKey, Object metadataValue)
MetaDataBlock
containing the provided key/value pair.public boolean match(Block block)
BlockMatcher
match
in interface BlockMatcher
match
in class ClassBlockMatcher
block
- the block to matchCopyright © 2004–2021 XWiki. All rights reserved.