|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.rendering.block.match.ClassBlockMatcher org.xwiki.rendering.block.match.MetadataBlockMatcher
public class MetadataBlockMatcher
Implementation of BlockMatcher
which matches MetaData
information.
Constructor Summary | |
---|---|
MetadataBlockMatcher(String metadataKey)
Match MetaDataBlock containing the provided key. |
|
MetadataBlockMatcher(String metadataKey,
Object metadataValue)
Match MetaDataBlock containing the provided key/value pair. |
Method Summary | |
---|---|
boolean |
match(Block block)
True if the provided block is matched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
metadataKey
- the key of the MetaData
metadataValue
- the value of the MetaData
Method Detail |
---|
public boolean match(Block block)
BlockMatcher
match
in interface BlockMatcher
match
in class ClassBlockMatcher
block
- the block to match
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |