Class AbbreviationExtension
- java.lang.Object
-
- com.vladsch.flexmark.ext.abbreviation.AbbreviationExtension
-
- All Implemented Interfaces:
com.vladsch.flexmark.formatter.Formatter.FormatterExtension,com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension,com.vladsch.flexmark.parser.Parser.ParserExtension,com.vladsch.flexmark.parser.Parser.ReferenceHoldingExtension,com.vladsch.flexmark.util.misc.Extension
public class AbbreviationExtension extends Object implements com.vladsch.flexmark.parser.Parser.ParserExtension, com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension, com.vladsch.flexmark.parser.Parser.ReferenceHoldingExtension, com.vladsch.flexmark.formatter.Formatter.FormatterExtension
-
-
Field Summary
Fields Modifier and Type Field Description static com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository>ABBREVIATIONSADataKeythat is used to get the document's Node repository holding all the abbreviations defined in the current document.static com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.ast.KeepType>ABBREVIATIONS_KEEPADataKeythat is used to set the behavior of the abbreviations repository when duplicates are defined.static com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacement>ABBREVIATIONS_PLACEMENTstatic com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacementSort>ABBREVIATIONS_SORTstatic com.vladsch.flexmark.util.data.DataKey<Boolean>MAKE_MERGED_ABBREVIATIONS_UNIQUEstatic com.vladsch.flexmark.util.data.DataKey<Boolean>USE_LINKSADataKeythat is used to set the use links option when true, default is false and abbr tag will be used in the rendered HTML.
-
Constructor Summary
Constructors Constructor Description AbbreviationExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbbreviationExtensioncreate()voidextend(com.vladsch.flexmark.formatter.Formatter.Builder formatterBuilder)voidextend(com.vladsch.flexmark.html.HtmlRenderer.Builder htmlRendererBuilder, @NotNull String rendererType)voidextend(com.vladsch.flexmark.parser.Parser.Builder parserBuilder)voidparserOptions(com.vladsch.flexmark.util.data.MutableDataHolder options)voidrendererOptions(@NotNull com.vladsch.flexmark.util.data.MutableDataHolder options)booleantransferReferences(com.vladsch.flexmark.util.data.MutableDataHolder document, com.vladsch.flexmark.util.data.DataHolder included)
-
-
-
Field Detail
-
ABBREVIATIONS_KEEP
public static final com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.ast.KeepType> ABBREVIATIONS_KEEP
ADataKeythat is used to set the behavior of the abbreviations repository when duplicates are defined.KeepType
-
ABBREVIATIONS
public static final com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository> ABBREVIATIONS
ADataKeythat is used to get the document's Node repository holding all the abbreviations defined in the current document.
-
USE_LINKS
public static final com.vladsch.flexmark.util.data.DataKey<Boolean> USE_LINKS
ADataKeythat is used to set the use links option when true, default is false and abbr tag will be used in the rendered HTML.
-
ABBREVIATIONS_PLACEMENT
public static final com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacement> ABBREVIATIONS_PLACEMENT
-
ABBREVIATIONS_SORT
public static final com.vladsch.flexmark.util.data.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacementSort> ABBREVIATIONS_SORT
-
MAKE_MERGED_ABBREVIATIONS_UNIQUE
public static final com.vladsch.flexmark.util.data.DataKey<Boolean> MAKE_MERGED_ABBREVIATIONS_UNIQUE
-
-
Method Detail
-
create
public static AbbreviationExtension create()
-
extend
public void extend(com.vladsch.flexmark.formatter.Formatter.Builder formatterBuilder)
- Specified by:
extendin interfacecom.vladsch.flexmark.formatter.Formatter.FormatterExtension
-
rendererOptions
public void rendererOptions(@NotNull @NotNull com.vladsch.flexmark.util.data.MutableDataHolder options)- Specified by:
rendererOptionsin interfacecom.vladsch.flexmark.formatter.Formatter.FormatterExtension- Specified by:
rendererOptionsin interfacecom.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension
-
parserOptions
public void parserOptions(com.vladsch.flexmark.util.data.MutableDataHolder options)
- Specified by:
parserOptionsin interfacecom.vladsch.flexmark.parser.Parser.ParserExtension
-
transferReferences
public boolean transferReferences(com.vladsch.flexmark.util.data.MutableDataHolder document, com.vladsch.flexmark.util.data.DataHolder included)- Specified by:
transferReferencesin interfacecom.vladsch.flexmark.parser.Parser.ReferenceHoldingExtension
-
extend
public void extend(com.vladsch.flexmark.parser.Parser.Builder parserBuilder)
- Specified by:
extendin interfacecom.vladsch.flexmark.parser.Parser.ParserExtension
-
extend
public void extend(@NotNull com.vladsch.flexmark.html.HtmlRenderer.Builder htmlRendererBuilder, @NotNull @NotNull String rendererType)- Specified by:
extendin interfacecom.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension
-
-