Interface StructuralNode

    • Method Detail

      • title

        @Deprecated
        java.lang.String title()
        Deprecated.
        Please use getTitle() instead
      • getTitle

        java.lang.String getTitle()
      • setTitle

        void setTitle​(java.lang.String title)
      • getCaption

        java.lang.String getCaption()
      • setCaption

        void setCaption​(java.lang.String caption)
      • style

        @Deprecated
        java.lang.String style()
        Deprecated.
        Please use getStyle() instead
      • getStyle

        java.lang.String getStyle()
      • setStyle

        void setStyle​(java.lang.String style)
      • blocks

        @Deprecated
        java.util.List<StructuralNode> blocks()
        Deprecated.
        Please use getBlocks() instead
        Returns:
        The list of child blocks of this block
      • getBlocks

        java.util.List<StructuralNode> getBlocks()
        Returns:
        The list of child blocks of this block
      • append

        void append​(StructuralNode block)
        Appends a new child block as the last block to this block.
        Parameters:
        block - The new child block added as last child to this block.
      • content

        @Deprecated
        java.lang.Object content()
        Deprecated.
        Please use getContent() instead
      • getContent

        java.lang.Object getContent()
      • convert

        java.lang.String convert()
      • findBy

        java.util.List<StructuralNode> findBy​(java.util.Map<java.lang.Object,​java.lang.Object> selector)
      • getLevel

        int getLevel()
      • setLevel

        void setLevel​(int level)
      • getContentModel

        java.lang.String getContentModel()
        Returns the content model.
        Returns:
        the content model
        See Also:
        ContentModel
      • getSourceLocation

        Cursor getSourceLocation()
        Returns the source location of this block. This information is only available if the sourcemap option is enabled when loading or rendering the document.
        Returns:
        the source location of this block or null if the sourcemap option is not enabled when loading the document.
      • getSubstitutions

        java.util.List<java.lang.String> getSubstitutions()
        Returns the list of enabled substitutions.
        Returns:
        A list of substitutions enabled for this node, e.g. ["specialcharacters", "quotes", "attributes", "replacements", "macros", "post_replacements"] for paragraphs.
        See Also:
        Asciidoctor User Manual
      • isSubstitutionEnabled

        boolean isSubstitutionEnabled​(java.lang.String substitution)
        Parameters:
        substitution - the name of a substitution, e.g. SUBSTITUTION_POST_REPLACEMENTS
        Returns:
        true if the name of the given substitution is enabled.
        See Also:
        Asciidoctor User Manual
      • removeSubstitution

        void removeSubstitution​(java.lang.String substitution)
        Removes the given substitution from this node.
        Parameters:
        substitution - the name of a substitution, e.g. SUBSTITUTION_QUOTES
        See Also:
        Asciidoctor User Manual
      • addSubstitution

        void addSubstitution​(java.lang.String substitution)
        Adds the given substitution to this node at the end of the substitution list.
        Parameters:
        substitution - the name of a substitution, e.g. SUBSTITUTION_MACROS
        See Also:
        Asciidoctor User Manual
      • prependSubstitution

        void prependSubstitution​(java.lang.String substitution)
        Adds the given substitution to this node at the beginning of the substitution list.
        Parameters:
        substitution - the name of a substitution, e.g. SUBSTITUTION_ATTRIBUTES
        See Also:
        Asciidoctor User Manual
      • setSubstitutions

        void setSubstitutions​(java.lang.String... substitution)
        Sets the given substitutions on this node overwriting all other substitutions.
        Parameters:
        substitution - the name of a substitution, e.g. SUBSTITUTION_SPECIAL_CHARACTERS
        See Also:
        Asciidoctor User Manual