Class ZzzzzzLinkRefProcessor.Factory

    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LinkRefProcessor apply​(Document document)
      Create a link ref processor for the document
      int getBracketNestingLevel​(DataHolder options)
      Whether the element consists of nested [] inside the link ref.
      boolean getWantExclamationPrefix​(DataHolder options)
      Whether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • Factory

        public Factory()
    • Method Detail

      • getWantExclamationPrefix

        public boolean getWantExclamationPrefix​(@NotNull
                                                DataHolder options)
        Description copied from interface: LinkRefProcessorFactory
        Whether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text
        Specified by:
        getWantExclamationPrefix in interface LinkRefProcessorFactory
        Parameters:
        options - options
        Returns:
        true if ! is part of the desired element, false otherwise
      • getBracketNestingLevel

        public int getBracketNestingLevel​(@NotNull
                                          DataHolder options)
        Description copied from interface: LinkRefProcessorFactory
        Whether the element consists of nested [] inside the link ref. For example Wiki link [[]] processor would return 1 Only immediately nested [] are considered. [[ ]] is nesting 1, [ [ ]] is not considered

        When >0 then preview of next characters is used and if they will match then inner reference will not be created to allow outer one to match the desired element

        Specified by:
        getBracketNestingLevel in interface LinkRefProcessorFactory
        Parameters:
        options - options
        Returns:
        nesting level for references, >0 for nesting