Interface IMarkupFilter

    • Method Detail

      • getNextFilter

        IMarkupFilter getNextFilter()
        IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.
        Returns:
        The next filter in the chain, or null if the last one.
      • setNextFilter

        void setNextFilter​(IMarkupFilter parent)
        Set parent filter.
        Parameters:
        parent - The next element in the chain
      • nextElement

        MarkupElement nextElement()
                           throws ParseException
        Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met. Depending on the filter, it may return the MarkupElement unchanged, modified or remove it by asking the parent handler for the next tag.
        Returns:
        Return the next eligible MarkupElement. Null, if no more found.
        Throws:
        ParseException
      • postProcess

        void postProcess​(Markup markup)
        Called after all filters have been processed.
        Parameters:
        markup -