Class WikiText


  • public class WikiText
    extends Object
    Created by serasset on 24/01/16.
    • Field Detail

      • sourceContent

        public final String sourceContent
    • Constructor Detail

      • WikiText

        public WikiText​(String sourceContent)
      • WikiText

        public WikiText​(String pagename,
                        String sourceContent)
      • WikiText

        public WikiText​(String pagename,
                        String sourceContent,
                        int startOffset,
                        int endOffset)
    • Method Detail

      • getStartOffset

        public int getStartOffset()
      • getEndOffset

        public int getEndOffset()
      • wikiTokens

        public List<WikiText.Token> wikiTokens()
        returns all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments.
        Returns:
        a sequence of Tokens
      • wikiTokensWithHtmlComments

        public List<WikiText.Token> wikiTokensWithHtmlComments()
        returns all wikiTokens in the wikiText, that is all special media wiki constructs, including html comments.
        Returns:
        a sequence of Tokens
      • tokens

        public List<WikiText.Token> tokens()
        returns all tokens in the wikiText, that is all special media wiki constructs, along with special Text tokens containing textual content.
        Returns:
        a sequence of Tokens (including Text tokens)
      • tokensWithHtmlComments

        public List<WikiText.Token> tokensWithHtmlComments()
        returns all tokens in the wikiText, that is all special media wiki constructs, along with special Text tokens containing textual content. The List will include Html Comments
        Returns:
        a sequence of Tokens (including Text tokens)