public class MetaDataBlock extends AbstractBlock
Block.Axes| Constructor and Description |
|---|
MetaDataBlock(List<? extends Block> childBlocks) |
MetaDataBlock(List<? extends Block> childBlocks,
MetaData metaData) |
MetaDataBlock(List<? extends Block> childBlocks,
String key,
Object value)
Helper constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(Listener listener)
Send
Listener events corresponding to the end of the block. |
void |
before(Listener listener)
Send
Listener events corresponding to the start of the block. |
MetaDataBlock |
clone() |
boolean |
equals(Object obj) |
MetaData |
getMetaData() |
int |
hashCode() |
addChild, addChildren, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traversepublic MetaDataBlock(List<? extends Block> childBlocks, MetaData metaData)
childBlocks - the list of children blocks of the block to constructmetaData - the metadata to setAbstractBlock.AbstractBlock(List)public MetaDataBlock(List<? extends Block> childBlocks, String key, Object value)
childBlocks - the list of children blocks of the block to constructkey - the metadata key to setvalue - the metadata value to setAbstractBlock.AbstractBlock(List)public MetaDataBlock(List<? extends Block> childBlocks)
childBlocks - the list of children blocks of the block to constructAbstractBlock.AbstractBlock(List)public void before(Listener listener)
AbstractBlockListener events corresponding to the start of the block. For example
for a Bold block, this allows an XHTML Listener (aka a Renderer) to output <b>.before in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.public void after(Listener listener)
AbstractBlockListener events corresponding to the end of the block. For example for a Bold block, this allows an
XHTML Listener (aka a Renderer) to output </b>.after in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.public MetaDataBlock clone()
clone in interface Blockclone in class AbstractBlockObject.clone()public boolean equals(Object obj)
equals in class AbstractBlockpublic int hashCode()
hashCode in class AbstractBlockCopyright © 2004–2016 XWiki. All rights reserved.