Interface IWemListenerInline

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beginFormat​(WikiFormat format)
      This method is called at the beginning of a sequence of in-line elements having the specified formatting parameters.
      void endFormat​(WikiFormat format)
      This method is called to notify about the end of a sequence of in-line elements having common formatting parameters.
      void onEscape​(String str)
      Escaped symbols.
      void onImage​(String ref)
      This method is called to notify that an free standing image was found in the parsed wiki document.
      void onImage​(WikiReference ref)
      This method is called to notify that a structured reference was found in the text
      void onLineBreak()
      This method is called to notify about a forced line break found in the text.
      void onNewLine()
      This method is called to notify that the parsed block contains a new line sequence ("\r\n" or "\r" or "\n" character sequence).
      void onReference​(String ref)
      This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document.
      void onReference​(WikiReference ref)
      This method is called to notify that a structured reference was found in the text
      void onSpace​(String str)
      This method is called to notify about a sequence of space symbols (like " " or "\t" symbols).
      void onSpecialSymbol​(String str)
      This method is called to notify about a sequence of special characters.
      void onVerbatimInline​(String str, WikiParameters params)
      This method is called to notify about not-interpreted in-line sequence of characters which should be represented in the final text "as is".
      void onWord​(String str)
      This method is called to notify about a "word" found in the document.
    • Method Detail

      • beginFormat

        void beginFormat​(WikiFormat format)
        This method is called at the beginning of a sequence of in-line elements having the specified formatting parameters.
        Parameters:
        format - the object defining formatting parameters of in-line elements.
      • endFormat

        void endFormat​(WikiFormat format)
        This method is called to notify about the end of a sequence of in-line elements having common formatting parameters.
        Parameters:
        format - the formatting object defining how contained in-line elements should be formatted
      • onEscape

        void onEscape​(String str)
        Escaped symbols. More frequently the given string has just one symbol.
        Parameters:
        str - the escaped sequence of characters
      • onImage

        void onImage​(String ref)
        This method is called to notify that an free standing image was found in the parsed wiki document.
        Parameters:
        ref - the reference the reference
      • onImage

        void onImage​(WikiReference ref)
        This method is called to notify that a structured reference was found in the text
        Parameters:
        ref - the reference the reference
      • onLineBreak

        void onLineBreak()
        This method is called to notify about a forced line break found in the text. Note that the line break symbol can be found in the middle of a "physical" line so this event is not equals to the onNewLine() notification.
        See Also:
        onNewLine()
      • onReference

        void onReference​(String ref)
        This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document.
        Parameters:
        ref - the URI
      • onReference

        void onReference​(WikiReference ref)
        This method is called to notify that a structured reference was found in the text
        Parameters:
        ref - the reference the reference
      • onSpecialSymbol

        void onSpecialSymbol​(String str)
        This method is called to notify about a sequence of special characters. Special symbols are characters which are not interpreted as a part of a word (letters or digits) or as a space. Note that the handling of these symbols requires special attention because these symbols most frequently used to define text formatting. Various wiki syntaxes use combinations of these sequences to define structural elements in wiki documents.

        The full list of possible special symbols:

        
          "!",     "\"",     "#",     "$",     "%",     "&",     "'",     "(",
          ")",     "*",      "+",     ",",     "-",     ".",     "/",     ":",
          ";",     "<",      "=",     ">",     "?",     "@",     "[",     "\\",
          "]",     "^",      "_",     "`",     "{",     "|",     "}",     "~"
         
        Parameters:
        str - the sequence of special symbols
        See Also:
        onSpace(String), onWord(String), onNewLine()
      • onVerbatimInline

        void onVerbatimInline​(String str,
                              WikiParameters params)
        This method is called to notify about not-interpreted in-line sequence of characters which should be represented in the final text "as is".
        Parameters:
        str - the sequence of non-interpreted characters
        params - the list of parameters for this event
      • onWord

        void onWord​(String str)
        This method is called to notify about a "word" found in the document. Words are formed by all characters which are not considered as spaces or special symbols.

        Words are formed by the all characters excluding the following ones:

        
          "\t",    "\n",     "\r",    " ",
          "!",     "\"",     "#",     "$",     "%",     "&",     "'",     "(",
          ")",     "*",      "+",     ",",     "-",     ".",     "/",     ":",
          ";",     "<",      "=",     ">",     "?",     "@",     "[",     "\\",
          "]",     "^",      "_",     "`",     "{",     "|",     "}",     "~"
         
        Parameters:
        str - the sequence of characters forming a word
        See Also:
        onSpace(String), onSpecialSymbol(String), onNewLine()