Package org.fastily.jwiki.dwrap
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 Summary
-
Method Summary
Modifier and Type Method Description static ArrayList<PageSection>
pageBySection(ArrayList<JsonObject> jl, String text)
Creates PageSection objects in the order of parsed header informationjl
usingtext
.
-
Field Details
-
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 levelThe 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
The full text of the section, including headers
-
-
Method Details
-
pageBySection
Creates PageSection objects in the order of parsed header informationjl
usingtext
.- Parameters:
jl
- Parsed header informationtext
- The text associated with thejl
- Returns:
- A List of PageSection objects in the same order.
-