Uses of Interface
org.xwiki.rendering.block.Block
-
Packages that use Block Package Description org.xwiki.rendering.block Represents content elements (Paragraph, Header, List, Styles, etc) as Blocks and a full document content is represented by a XDOM object.org.xwiki.rendering.block.match org.xwiki.rendering.renderer org.xwiki.rendering.renderer.xml org.xwiki.rendering.transformation org.xwiki.rendering.util -
-
Uses of Block in org.xwiki.rendering.block
Subinterfaces of Block in org.xwiki.rendering.block Modifier and Type Interface Description interfaceListBLockRepresents any type of Lists (numbered list, bulleted list, etc).Classes in org.xwiki.rendering.block that implement Block Modifier and Type Class Description classAbstractBlockImplementation for Block operations.classAbstractMacroBlockCommon class to MacroBlock and MacroMakerBlock.classBulletedListBlockRepresents a Bulleted list.classCompositeBlockThis 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.classDefinitionDescriptionBlockRepresents a definition description.classDefinitionListBlockRepresents a definition list.classDefinitionTermBlockRepresents a definition description.classEmptyLinesBlockRepresents an empty line between 2 standalone Blocks.classFigureBlockTags the content as a figure (image(s), diagram, code fragment, audio, video, charts, etc).classFigureCaptionBlockRepresents a figure caption (similar to the HTML5<figcaption>element).classFormatBlockRepresents a text formatting block (bold, italic, etc).classGroupBlockRepresents a grouping of blocks.classHeaderBlockclassHorizontalLineBlockRepresents a Horizontal line.classIdBlockA reference/location in a page.classImageBlockRepresents an image.classLinkBlockRepresents a Link element in a page.classListItemBlockRepresents a List item element in a page.classMacroBlockRepresents a Macro (standalone or inline) defined in a page.classMacroMarkerBlockA 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.classMetaDataBlockRepresents 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).classNewLineBlockRepresents 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).classNumberedListBlockRepresents a numbered List.classParagraphBlockclassQuotationBlockRepresents a quotation.classQuotationLineBlockRepresents a quotation line.classRawBlockRepresents some raw content that shouldn't be parsed or modified and that should be injected as is in any output.classSectionBlockclassSpaceBlockA space block represents a space.classSpecialSymbolBlockRepresent a non-alphanumeric and non-space symbol (>,], ...).classTableBlockRepresents a table.classTableCellBlockRepresents a cell of a table.classTableHeadCellBlockRepresents a head of a row or column of a table.classTableRowBlockRepresents the row of a table.classVerbatimBlockA Verbatim block.classWordBlockRepresents a word.classXDOMContains the full tree ofBlockthat represent a XWiki Document's content.Methods in org.xwiki.rendering.block with type parameters of type Block Modifier and Type Method Description <T extends Block>
List<T>AbstractBlock. getBlocks(BlockMatcher matcher, Block.Axes axes)<T extends Block>
List<T>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 Block Modifier and Type Method Description BlockAbstractBlock. clone()BlockAbstractBlock. clone(BlockFilter blockFilter)Return a copy of the block with filtered children.BlockBlock. clone()BlockBlock. clone(BlockFilter blockFilter)Return a copy of the block with filtered children.BlockAbstractBlock. getNextSibling()BlockBlock. getNextSibling()BlockAbstractBlock. getParent()BlockBlock. getParent()Get the parent block.BlockAbstractBlock. getPreviousSibling()BlockBlock. getPreviousSibling()BlockAbstractBlock. getRoot()BlockBlock. getRoot()Gets the top level Block.Methods in org.xwiki.rendering.block that return types with arguments of type Block Modifier and Type Method Description List<Block>BlockFilter. filter(Block block)Filter provided block into zero or more block.List<Block>PlainTextBlockFilter. filter(Block block)List<Block>AbstractBlock. getChildren()List<Block>Block. getChildren()Gets all children blocks.Methods in org.xwiki.rendering.block with parameters of type Block Modifier and Type Method Description voidAbstractBlock. addChild(Block blockToAdd)voidBlock. addChild(Block blockToAdd)Helper method to add a single child block to the end of the children list of the current block.List<Block>BlockFilter. filter(Block block)Filter provided block into zero or more block.List<Block>PlainTextBlockFilter. filter(Block block)longAbstractBlock. indexOf(Block child)Find 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)voidAbstractBlock. setParent(Block parentBlock)voidBlock. setParent(Block parentBlock)Sets the parent block.voidAbstractBlock. setPreviousSiblingBlock(Block previousSiblingBlock)voidBlock. setPreviousSiblingBlock(Block previousSiblingBlock)Method parameters in org.xwiki.rendering.block with type arguments of type Block Modifier and Type Method Description voidAbstractBlock. 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.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 Block Constructor Description AbstractBlock(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 Block Constructor Description AbstractBlock(List<? extends Block> childrenBlocks)Constructs a block with children blocks.AbstractBlock(List<? extends Block> childrenBlocks, Map<String,String> parameters)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.BulletedListBlock(List<Block> childrenBlocks, Map<String,String> 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.DefinitionListBlock(List<Block> childrenBlocks, Map<String,String> parameters)Construct a Definition List Block with parameters.DefinitionTermBlock(List<Block> childrenBlocks)Construct a Definition Term block.FigureBlock(List<Block> blocks)FigureBlock(List<Block> blocks, Map<String,String> parameters)FigureCaptionBlock(List<Block> blocks)FigureCaptionBlock(List<Block> blocks, Map<String,String> parameters)FormatBlock(List<Block> childrenBlocks, Format format)FormatBlock(List<Block> childrenBlocks, Format format, Map<String,String> parameters)GroupBlock(List<Block> blocks)GroupBlock(List<Block> blocks, Map<String,String> parameters)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.ListItemBlock(List<Block> childrenBlocks, Map<String,String> parameters)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.NumberedListBlock(List<Block> childrenBlocks, Map<String,String> parameters)Construct a Numbered List Block with parameters.ParagraphBlock(List<Block> blocks)ParagraphBlock(List<Block> blocks, Map<String,String> parameters)QuotationBlock(List<Block> blocks)QuotationBlock(List<Block> blocks, Map<String,String> parameters)QuotationLineBlock(List<Block> blocks)SectionBlock(List<Block> childBlocks)SectionBlock(List<Block> childBlocks, Map<String,String> parameters)TableBlock(List<Block> list)TableBlock(List<Block> list, Map<String,String> parameters)TableCellBlock(List<Block> list)TableCellBlock(List<Block> list, Map<String,String> parameters)TableHeadCellBlock(List<Block> list)TableHeadCellBlock(List<Block> list, Map<String,String> parameters)TableRowBlock(List<Block> list)TableRowBlock(List<Block> list, Map<String,String> parameters)XDOM(List<? extends Block> childBlocks)XDOM(List<? extends Block> childBlocks, MetaData metaData)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 Block Modifier and Type Method Description <T extends Block>
List<T>BlockNavigator. 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 Block Modifier and Type Method Description <T extends Block>
List<T>BlockNavigator. 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.booleanAnyBlockMatcher. match(Block block)booleanBlockMatcher. match(Block block)True if the provided block is matched.booleanClassBlockMatcher. match(Block block)booleanCompositeBlockMatcher. match(Block block)booleanCounterBlockMatcher. match(Block block)booleanEqualsBlockMatcher. match(Block block)booleanMacroBlockMatcher. match(Block block)booleanMacroMarkerBlockMatcher. match(Block block)booleanMetadataBlockMatcher. match(Block block)booleanOrBlockMatcher. match(Block block)booleanSameBlockMatcher. match(Block block)Constructors in org.xwiki.rendering.block.match with parameters of type Block Constructor Description CounterBlockMatcher(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 Block Constructor Description ClassBlockMatcher(Class<? extends Block> blockClass) -
Uses of Block in org.xwiki.rendering.renderer
Methods in org.xwiki.rendering.renderer with parameters of type Block Modifier and Type Method Description voidBlockRenderer. render(Block block, WikiPrinter printer)Method parameters in org.xwiki.rendering.renderer with type arguments of type Block Modifier and Type Method Description voidBlockRenderer. 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 Block Modifier and Type Method Description voidContentHandlerBlockRenderer. render(Block block, ContentHandler contentHandler)Method parameters in org.xwiki.rendering.renderer.xml with type arguments of type Block Modifier and Type Method Description voidContentHandlerBlockRenderer. render(Collection<Block> blocks, ContentHandler contentHandler) -
Uses of Block in org.xwiki.rendering.transformation
Methods in org.xwiki.rendering.transformation that return Block Modifier and Type Method Description BlockRenderingContext. getCurrentBlock()Methods in org.xwiki.rendering.transformation with parameters of type Block Modifier and Type Method Description voidTransformationManager. performTransformations(Block block, TransformationContext context)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 Block Modifier and Type Method Description BlockParserUtils. 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 Block Modifier and Type Method Description default List<Block>ErrorBlockGenerator. generateErrorBlocks(boolean inline, String messageId, String defaultMessage, String defaultDescription, Object... arguments)Generates error blocks to render an error in a wiki page.List<Block>ErrorBlockGenerator. generateErrorBlocks(String message, String description, boolean isInline)Deprecated.since 14.0RC1, useErrorBlockGenerator.generateErrorBlocks(boolean, String, String, String, Object...)insteadList<Block>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 Block Modifier and Type Method Description default booleanErrorBlockGenerator. containsError(Block block)BlockParserUtils. 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 Block Modifier and Type Method Description voidParserUtils. 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}}.
-