Package org.xwiki.rendering.block
Class XDOM
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.MetaDataBlock
org.xwiki.rendering.block.XDOM
Contains the full tree of
Block that represent a XWiki Document's content.- Since:
- 1.5M2
- Version:
- $Id: fc276802d7dfaa1ba3a31a11b11e2650d25168c6 $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes -
Field Summary
FieldsFields inherited from interface org.xwiki.rendering.block.Block
LIST_BLOCK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSendListenerevents corresponding to the end of the block.voidSendListenerevents corresponding to the start of the block.clone()voidsetIdGenerator(IdGenerator idGenerator) Methods inherited from class org.xwiki.rendering.block.MetaDataBlock
equals, getMetaData, hashCode, toStringMethods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, clone, get, getAttribute, getAttributes, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, getSyntaxMetadata, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setAttribute, setAttributes, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
-
Field Details
-
EMPTY
Constructs an empty XDOM. Useful for example when calling a macro that doesn't use the XDOM parameter passed to it.
-
-
Constructor Details
-
XDOM
- Parameters:
childBlocks- the list of children blocks of the block to construct- See Also:
-
XDOM
- Parameters:
childBlocks- the list of children blocks of the block to constructmetaData- the meta data to add for this block- See Also:
-
XDOM
- Parameters:
childBlocks- the list of children blocks of the block to constructidGenerator- a stateful id generator for this document
-
XDOM
- Parameters:
childBlocks- the list of children blocks of the block to constructmetaData- the meta data to add for this blockidGenerator- a stateful id generator for this document- See Also:
-
-
Method Details
-
getIdGenerator
- Returns:
- a stateful id generator for the whole document.
-
setIdGenerator
- Parameters:
idGenerator- a stateful id generator for the whole document.- Since:
- 2.1M1
-
before
Description copied from class:AbstractBlockSendListenerevents corresponding to the start of the block. For example for a Bold block, this allows an XHTML Listener (aka a Renderer) to output<b>.- Overrides:
beforein classMetaDataBlock- Parameters:
listener- the listener that will receive the events sent by this block before its children blocks have emitted their own events.
-
after
Description copied from class:AbstractBlockSendListenerevents corresponding to the end of the block. For example for a Bold block, this allows an XHTML Listener (aka a Renderer) to output</b>.- Overrides:
afterin classMetaDataBlock- Parameters:
listener- the listener that will receive the events sent by this block before its children blocks have emitted their own events.
-
clone
- Specified by:
clonein interfaceBlock- Overrides:
clonein classMetaDataBlock- Returns:
- the cloned Block
- See Also:
-