Uses of Interface
org.xwiki.rendering.block.Block
Packages that use Block
Package
Description
Represents content elements (Paragraph, Header, List, Styles, etc) as Blocks and a full document content is
represented by a XDOM object.
-
Uses of Block in org.xwiki.rendering.block
Subinterfaces of Block in org.xwiki.rendering.blockModifier and TypeInterfaceDescriptioninterfaceRepresents any type of Lists (numbered list, bulleted list, etc).Classes in org.xwiki.rendering.block that implement BlockModifier and TypeClassDescriptionclassImplementation for Block operations.classCommon class to MacroBlock and MacroMakerBlock.classRepresents a Bulleted list.classThis block itself does not have any meaning (it does not have any corresponding rendering stream event) and is just here to pass together several Blocks to a method or as a return value as aBlock.classRepresents a definition description.classRepresents a definition list.classRepresents a definition description.classRepresents an empty line between 2 standalone Blocks.classTags the content as a figure (image(s), diagram, code fragment, audio, video, charts, etc).classRepresents a figure caption (similar to the HTML5<figcaption>element).classRepresents a text formatting block (bold, italic, etc).classRepresents a grouping of blocks.classclassRepresents a Horizontal line.classA reference/location in a page.classRepresents an image.classRepresents a Link element in a page.classRepresents a List item element in a page.classRepresents a Macro (standalone or inline) defined in a page.classA special block that Macro Blocks generate when they are executed so that it's possible to reconstruct the initial syntax even after Macros have been executed.classRepresents any kind of MetaData in the XDOM (eg saving original blocks so that the XWiki Syntax Renderer can restore them after a transformation has been executed, source reference, etc).final classRepresents a new line or line break (it's up to the Renderers to decide if it should be outputted as a new line or as a line break in the given syntax).classRepresents a numbered List.classclassRepresents a quotation.classRepresents a quotation line.classRepresents some raw content that shouldn't be parsed or modified and that should be injected as is in any output.classfinal classA space block represents a space.classRepresent a non-alphanumeric and non-space symbol (>,], ...).classRepresents a table.classRepresents a cell of a table.classRepresents a head of a row or column of a table.classRepresents the row of a table.classA Verbatim block.classRepresents a word.classContains the full tree ofBlockthat represent a XWiki Document's content.Methods in org.xwiki.rendering.block with type parameters of type BlockModifier and TypeMethodDescriptionAbstractBlock.getBlocks(BlockMatcher matcher, Block.Axes axes) Block.getBlocks(BlockMatcher matcher, Block.Axes axes) Get all blocks following providedBlockMatcherandBlock.Axes.<T extends Block>
TAbstractBlock.getFirstBlock(BlockMatcher matcher, Block.Axes axes) <T extends Block>
TBlock.getFirstBlock(BlockMatcher matcher, Block.Axes axes) Get the first matched block in the providedBlock.Axes.Methods in org.xwiki.rendering.block that return BlockModifier and TypeMethodDescriptionAbstractBlock.clone()AbstractBlock.clone(BlockFilter blockFilter) Return a copy of the block with filtered children.Block.clone()Block.clone(BlockFilter blockFilter) Return a copy of the block with filtered children.AbstractBlock.getNextSibling()Block.getNextSibling()AbstractBlock.getParent()Block.getParent()Get the parent block.AbstractBlock.getPreviousSibling()Block.getPreviousSibling()AbstractBlock.getRoot()Block.getRoot()Gets the top level Block.Methods in org.xwiki.rendering.block that return types with arguments of type BlockModifier and TypeMethodDescriptionFilter provided block into zero or more block.AbstractBlock.getChildren()Block.getChildren()Gets all children blocks.Methods in org.xwiki.rendering.block with parameters of type BlockModifier and TypeMethodDescriptionvoidvoidHelper method to add a single child block to the end of the children list of the current block.Filter provided block into zero or more block.longFind the index of the block in the tree.voidAbstractBlock.insertChildAfter(Block blockToInsert, Block previousBlock) voidBlock.insertChildAfter(Block blockToInsert, Block previousBlock) Helper method to add a single child block to the current block after the provided existing child block.voidAbstractBlock.insertChildBefore(Block blockToInsert, Block nextBlock) voidBlock.insertChildBefore(Block blockToInsert, Block nextBlock) Helper method to add a single child block to the current block before the provided existing child block.voidAbstractBlock.removeBlock(Block childBlockToRemove) voidBlock.removeBlock(Block childBlockToRemove) Removes a Block.voidAbstractBlock.replaceChild(List<Block> newBlocks, Block oldBlock) voidAbstractBlock.replaceChild(Block newBlock, Block oldBlock) voidBlock.replaceChild(List<Block> newBlocks, Block oldBlock) Replaces an existing children block with the passed new blocks.voidBlock.replaceChild(Block newBlock, Block oldBlock) Replaces an existing children block with the passed new block.voidAbstractBlock.setNextSiblingBlock(Block nextSiblingBlock) voidBlock.setNextSiblingBlock(Block nextSiblingBlock) voidvoidSets the parent block.voidAbstractBlock.setPreviousSiblingBlock(Block previousSiblingBlock) voidBlock.setPreviousSiblingBlock(Block previousSiblingBlock) Method parameters in org.xwiki.rendering.block with type arguments of type BlockModifier and TypeMethodDescriptionvoidAbstractBlock.addChildren(List<? extends Block> blocksToAdd) voidBlock.addChildren(List<? extends Block> blocksToAdd) Adds several children blocks to the end of the children list of the current block.<T> Optional<T>AbstractBlock.get(Function<Block, Optional<T>> searcher, Block.Axes axes) default <T> Optional<T>Block.get(Function<Block, Optional<T>> searcher, Block.Axes axes) Get the first value extracted from the blocks in the providedBlock.Axes.voidAbstractBlock.replaceChild(List<Block> newBlocks, Block oldBlock) voidBlock.replaceChild(List<Block> newBlocks, Block oldBlock) Replaces an existing children block with the passed new blocks.voidAbstractBlock.setChildren(List<? extends Block> children) voidBlock.setChildren(List<? extends Block> children) Replace current children by the provided list ofBlocks.Constructors in org.xwiki.rendering.block with parameters of type BlockModifierConstructorDescriptionAbstractBlock(Block childBlock) Constructs a block with a child block.AbstractBlock(Block childBlock, Map<String, String> parameters) Construct a block with a child block and parameters.Constructor parameters in org.xwiki.rendering.block with type arguments of type BlockModifierConstructorDescriptionAbstractBlock(List<? extends Block> childrenBlocks) Constructs a block with children blocks.Construct a block with children blocks and parameters.AbstractMacroBlock(List<? extends Block> childrenBlocks, Map<String, String> parameters, String id, String content, boolean inline) BulletedListBlock(List<Block> childrenBlocks) Construct a Bulleted List Block with no parameters.Construct a Bulleted List Block with parameters.CompositeBlock(List<Block> blocks) DefinitionDescriptionBlock(List<Block> childrenBlocks) Construct a Definition Description block.DefinitionListBlock(List<Block> childrenBlocks) Construct a Definition List block with no parameters.Construct a Definition List Block with parameters.DefinitionTermBlock(List<Block> childrenBlocks) Construct a Definition Term block.FigureBlock(List<Block> blocks) FigureCaptionBlock(List<Block> blocks) FormatBlock(List<Block> childrenBlocks, Format format) GroupBlock(List<Block> blocks) HeaderBlock(List<Block> childBlocks, HeaderLevel level) HeaderBlock(List<Block> childBlocks, HeaderLevel level, String id) HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String, String> parameters) HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String, String> parameters, String id) LinkBlock(List<Block> childrenBlocks, ResourceReference reference, boolean freestanding) LinkBlock(List<Block> childrenBlocks, ResourceReference reference, boolean freestanding, Map<String, String> parameters) ListItemBlock(List<Block> childrenBlocks) Constructs a list item Block.Constructs a list item Block.MacroMarkerBlock(String id, Map<String, String> parameters, String content, List<Block> childBlocks, boolean inline) MacroMarkerBlock(String id, Map<String, String> parameters, List<Block> childBlocks, boolean isInline) MetaDataBlock(List<? extends Block> childBlocks) MetaDataBlock(List<? extends Block> childBlocks, String key, Object value) Helper constructor.MetaDataBlock(List<? extends Block> childBlocks, MetaData metaData) NumberedListBlock(List<Block> childrenBlocks) Construct a Numbered List Block with no parameters.Construct a Numbered List Block with parameters.ParagraphBlock(List<Block> blocks) QuotationBlock(List<Block> blocks) QuotationLineBlock(List<Block> blocks) SectionBlock(List<Block> childBlocks) TableBlock(List<Block> list) TableCellBlock(List<Block> list) TableHeadCellBlock(List<Block> list) TableRowBlock(List<Block> list) XDOM(List<? extends Block> childBlocks, IdGenerator idGenerator) XDOM(List<? extends Block> childBlocks, IdGenerator idGenerator, MetaData metaData) -
Uses of Block in org.xwiki.rendering.block.match
Methods in org.xwiki.rendering.block.match with type parameters of type BlockModifier and TypeMethodDescriptionBlockNavigator.getBlocks(Block currentBlock, Block.Axes currentAxes) Get all blocks following providedBlockMatcherandBlock.Axes.<T extends Block>
TBlockNavigator.getFirstBlock(Block currentBlock, Block.Axes currentAxes) Get the first matched block in the providedBlock.Axes.Methods in org.xwiki.rendering.block.match with parameters of type BlockModifier and TypeMethodDescriptionBlockNavigator.getBlocks(Block currentBlock, Block.Axes currentAxes) Get all blocks following providedBlockMatcherandBlock.Axes.<T extends Block>
TBlockNavigator.getFirstBlock(Block currentBlock, Block.Axes currentAxes) Get the first matched block in the providedBlock.Axes.booleanbooleanTrue if the provided block is matched.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanConstructors in org.xwiki.rendering.block.match with parameters of type BlockModifierConstructorDescriptionCounterBlockMatcher(Block stopBlock) Find the index of the passed block.EqualsBlockMatcher(Block block) SameBlockMatcher(Block block) Constructor parameters in org.xwiki.rendering.block.match with type arguments of type BlockModifierConstructorDescriptionClassBlockMatcher(Class<? extends Block> blockClass) FunctionBlockMatcher(Function<Block, Optional<T>> function) -
Uses of Block in org.xwiki.rendering.renderer
Methods in org.xwiki.rendering.renderer with parameters of type BlockMethod parameters in org.xwiki.rendering.renderer with type arguments of type BlockModifier and TypeMethodDescriptionvoidBlockRenderer.render(Collection<Block> blocks, WikiPrinter printer) -
Uses of Block in org.xwiki.rendering.renderer.xml
Methods in org.xwiki.rendering.renderer.xml with parameters of type BlockModifier and TypeMethodDescriptionvoidContentHandlerBlockRenderer.render(Block block, ContentHandler contentHandler) Method parameters in org.xwiki.rendering.renderer.xml with type arguments of type BlockModifier and TypeMethodDescriptionvoidContentHandlerBlockRenderer.render(Collection<Block> blocks, ContentHandler contentHandler) -
Uses of Block in org.xwiki.rendering.transformation
Methods in org.xwiki.rendering.transformation that return BlockMethods in org.xwiki.rendering.transformation with parameters of type BlockModifier and TypeMethodDescriptionvoidTransformationManager.performTransformations(Block block, TransformationContext context) default voidPrepare a block meant to be cached to be executed several times.voidTransformation.transform(Block block, TransformationContext context) Transform the passed XDOM and modifies it. -
Uses of Block in org.xwiki.rendering.util
Methods in org.xwiki.rendering.util that return BlockModifier and TypeMethodDescriptionParserUtils.convertToInline(Block rootBlock, boolean preserveXDOM) Make its best to convert a passed block to its inline version.Methods in org.xwiki.rendering.util that return types with arguments of type BlockModifier and TypeMethodDescriptionErrorBlockGenerator.generateErrorBlocks(boolean inline, String messageId, String defaultMessage, String defaultDescription, Object... arguments) Generates error blocks to render an error in a wiki page.ErrorBlockGenerator.generateErrorBlocks(String message, String description, boolean isInline) Deprecated.ErrorBlockGenerator.generateErrorBlocks(String messagePrefix, Throwable throwable, boolean isInline) Deprecated.since 14.0RC1, useErrorBlockGenerator.generateErrorBlocks(boolean, String, String, String, Object...)insteadMethods in org.xwiki.rendering.util with parameters of type BlockModifier and TypeMethodDescriptiondefault booleanErrorBlockGenerator.containsError(Block block) ParserUtils.convertToInline(Block rootBlock, boolean preserveXDOM) Make its best to convert a passed block to its inline version.Method parameters in org.xwiki.rendering.util with type arguments of type BlockModifier and TypeMethodDescriptionvoidParserUtils.convertToInline(List<Block> blocks) Make its best to convert a passed blocks to their inline version.voidParserUtils.removeTopLevelParagraph(List<Block> blocks) Removes any top level paragraph since for example for the following use case we don't want an extra paragraph block:= hello {{velocity}}world{{/velocity}}.
ErrorBlockGenerator.generateErrorBlocks(boolean, String, String, String, Object...)instead