Class PageSection

java.lang.Object
org.fastily.jwiki.dwrap.PageSection

public class PageSection
extends Object
Represents a paragraph in a page of wiki text.
Author:
Fastily
  • Field Details

    • header

      public final String header
      The text in the header of the page section section, excluding = characters. If this is null, then there was no header, i.e. this is the lead paragraph of a page.
    • level

      public final int level
      The header level of the section. If this is -1, then there was no header, i.e. this is the lead paragraph of a page.
    • text

      public final String text
      The full text of the section, including headers
  • Method Details

    • pageBySection

      public static ArrayList<PageSection> pageBySection​(ArrayList<JsonObject> jl, String text)
      Creates PageSection objects in the order of parsed header information jl using text.
      Parameters:
      jl - Parsed header information
      text - The text associated with the jl
      Returns:
      A List of PageSection objects in the same order.