Class FootnoteLinkRefProcessor.Factory
java.lang.Object
com.vladsch.flexmark.ext.footnotes.internal.FootnoteLinkRefProcessor.Factory
- All Implemented Interfaces:
LinkRefProcessorFactory, Function<Document, LinkRefProcessor>
- Enclosing class:
FootnoteLinkRefProcessor
public static class FootnoteLinkRefProcessor.Factory
extends Object
implements LinkRefProcessorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull LinkRefProcessorCreate a link ref processor for the documentintgetBracketNestingLevel(@NotNull DataHolder options) Whether the element consists of nested [] inside the link ref.booleangetWantExclamationPrefix(@NotNull DataHolder options) Whether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
apply
Description copied from interface:LinkRefProcessorFactoryCreate a link ref processor for the document- Specified by:
applyin interfaceFunction<Document, LinkRefProcessor>- Specified by:
applyin interfaceLinkRefProcessorFactory- Parameters:
document- on which the processor will work- Returns:
- link ref processor
-
getWantExclamationPrefix
Description copied from interface:LinkRefProcessorFactoryWhether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text- Specified by:
getWantExclamationPrefixin interfaceLinkRefProcessorFactory- Parameters:
options- options- Returns:
- true if ! is part of the desired element, false otherwise
-
getBracketNestingLevel
Description copied from interface:LinkRefProcessorFactoryWhether 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 consideredWhen
>0then 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:
getBracketNestingLevelin interfaceLinkRefProcessorFactory- Parameters:
options- options- Returns:
- nesting level for references,
>0for nesting
-