| Modifier and Type | Class and Description |
|---|---|
| private static enum | BaseFormat.
A list of all formatting attributes managed by |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the string with the prefixthe string str)Prepends |
| protected String | Returns: the generated text ornullthe type of the display group to close typeGenerate text that closes a display group |
| protected String | Returns: the generated text ornullthe font style to disable fontStyle)Generate text that disables the given font style in the output format |
| protected String | Returns: the generated text ornullthe font variant to disable fontVariant)Generate text that disables the given font variant in the output format |
| protected String | Returns: the generated text ornullthe font weight to disable fontWeight)Generate text that disables the given font weight in the output format |
| private void | closeFormattingAttribute(BaseFormat.
the formatting attribute to close f,the attribute's old value value, StringBuilder the string builder to append the result to result)Close the given formatting attribute by calling the respective
|
| protected String | Returns: the generated text ornullthe text decoration to disable textDecoration)Generate text that disables the given text decoration in the output format |
| protected String | Returns: the generated text ornullthe vertical alignment to disable verticalAlign)Generate text that disables the given vertical alignment in the output format |
| protected abstract String | Returns: the formatted bibliography entrythe post-processed buffer to format buffer, RenderContext the render context holding the original, non-post-processed
buffer and parameters ctx, int the index of the entry index)Convert a bibliography entry from a post-processed buffer to a string |
| protected abstract String | Returns: the formatted citationthe post-processed buffer to format buffer, RenderContext the render context holding the original, non-post-processed
buffer and parameters ctx)Convert a citation from a post-processed buffer to a string |
| protected abstract String | Returns: the linkthe string to convert text, String the URI the link should point to uri)Convert the given string to a link |
| protected String | |
| private static int | Returns: the index of the first text token afteri, or -1
if there is no such tokenthe list of tokens tokens, int the index of the token after which the search should start i)Search the list of tokens from |
| private static int | Returns: the index of the first text token beforei that is not
a closing quotation mark, or -1 if there is no such tokenthe list of tokens tokens, int the index of the token before which the search should start i)Search the list of tokens from |
| private static int | Returns: the index of the first text token beforei, or -1
if there is no such tokenthe list of tokens tokens, int the index of the token before which the search should start i)Search the list of tokens from |
| protected String | Returns: the formatted stringthe buffer to format buffer)Format a given token buffer |
| public String | formatBibliographyEntry(RenderContext ctx, int index)
Implements de. Format a bibliography entry |
| public String | formatCitation(RenderContext ctx)
Implements de. Format a citation |
| protected String | |
| protected String | |
| protected String | Returns: the generated text ornullthe type of the display group to open typeGenerate text that opens a display group |
| protected String | Returns: the generated text ornullthe font style to enable fontStyle)Generate text that enables the given font style in the output format |
| protected String | Returns: the generated text ornullthe font variant to enable fontVariant)Generate text that enables the given font variant in the output format |
| protected String | Returns: the generated text ornullthe font weight to enable fontWeight)Generate text that enables the given font weight in the output format |
| private void | openFormattingAttribute(BaseFormat.
the formatting attribute to open f,the attribute's value value, StringBuilder the string builder to append the result to result)Open the given formatting attribute by calling the respective
|
| protected String | Returns: the generated text ornullthe text decoration to enable textDecoration)Generate text that enables the given text decoration in the output format |
| protected String | Returns: the generated text ornullthe vertical alignment to enable verticalAlign)Generate text that enables the given vertical alignment in the output format |
| protected void | postProcess(TokenBuffer
the buffer to process buffer, RenderContext the render context in which the buffer was created ctx)Performs post-processing on the given buffer. |
| public void | setConvertLinks(boolean convert)
Implements de. Specifies if URLs and DOIs should be converted to to links |
| convertLinks | back to summary |
|---|---|
| protected boolean convertLinks | |
| MERGE_PUNCTUATION_MAP | back to summary |
|---|---|
| private static final Map<String, String> MERGE_PUNCTUATION_MAP | |
| BaseFormat | back to summary |
|---|---|
| public BaseFormat() | |
| addDOIPrefix | back to summary |
|---|---|
| protected String addDOIPrefix(String str) Prepends | |
| closeDisplayGroup | back to summary |
|---|---|
| protected String closeDisplayGroup(DisplayGroupToken. Generate text that closes a display group
| |
| closeFontStyle | back to summary |
|---|---|
| protected String closeFontStyle(int fontStyle) Generate text that disables the given font style in the output format
| |
| closeFontVariant | back to summary |
|---|---|
| protected String closeFontVariant(int fontVariant) Generate text that disables the given font variant in the output format
| |
| closeFontWeight | back to summary |
|---|---|
| protected String closeFontWeight(int fontWeight) Generate text that disables the given font weight in the output format
| |
| closeFormattingAttribute | back to summary |
|---|---|
| private void closeFormattingAttribute(BaseFormat. Close the given formatting attribute by calling the respective
| |
| closeTextDecoration | back to summary |
|---|---|
| protected String closeTextDecoration(int textDecoration) Generate text that disables the given text decoration in the output format
| |
| closeVerticalAlign | back to summary |
|---|---|
| protected String closeVerticalAlign(int verticalAlign) Generate text that disables the given vertical alignment in the output format
| |
| doFormatBibliographyEntry | back to summary |
|---|---|
| protected abstract String doFormatBibliographyEntry(TokenBuffer buffer, RenderContext ctx, int index) Convert a bibliography entry from a post-processed buffer to a string
| |
| doFormatCitation | back to summary |
|---|---|
| protected abstract String doFormatCitation(TokenBuffer buffer, RenderContext ctx) Convert a citation from a post-processed buffer to a string
| |
| doFormatLink | back to summary |
|---|---|
| protected abstract String doFormatLink(String text, String uri) Convert the given string to a link | |
| escape | back to summary |
|---|---|
| protected String escape(String str) Escape any formatting instructions specific to the output format | |
| findNextText | back to summary |
|---|---|
| private static int findNextText(List<Token> tokens, int i) Search the list of tokens from | |
| findPreviousNonQuote | back to summary |
|---|---|
| private static int findPreviousNonQuote(List<Token> tokens, int i) Search the list of tokens from | |
| findPreviousText | back to summary |
|---|---|
| private static int findPreviousText(List<Token> tokens, int i) Search the list of tokens from | |
| format | back to summary |
|---|---|
| protected String format(TokenBuffer buffer) Format a given token buffer
| |
| formatBibliographyEntry | back to summary |
|---|---|
| public String formatBibliographyEntry(RenderContext ctx, int index) Implements de. Doc from de. Format a bibliography entry
| |
| formatCitation | back to summary |
|---|---|
| public String formatCitation(RenderContext ctx) Implements de. Doc from de. Format a citation
| |
| formatDOI | back to summary |
|---|---|
| protected String formatDOI(String str) Convert a DOI to a link | |
| formatURL | back to summary |
|---|---|
| protected String formatURL(String str) Convert a URL to a link | |
| openDisplayGroup | back to summary |
|---|---|
| protected String openDisplayGroup(DisplayGroupToken. Generate text that opens a display group
| |
| openFontStyle | back to summary |
|---|---|
| protected String openFontStyle(int fontStyle) Generate text that enables the given font style in the output format
| |
| openFontVariant | back to summary |
|---|---|
| protected String openFontVariant(int fontVariant) Generate text that enables the given font variant in the output format
| |
| openFontWeight | back to summary |
|---|---|
| protected String openFontWeight(int fontWeight) Generate text that enables the given font weight in the output format
| |
| openFormattingAttribute | back to summary |
|---|---|
| private void openFormattingAttribute(BaseFormat. Open the given formatting attribute by calling the respective
| |
| openTextDecoration | back to summary |
|---|---|
| protected String openTextDecoration(int textDecoration) Generate text that enables the given text decoration in the output format
| |
| openVerticalAlign | back to summary |
|---|---|
| protected String openVerticalAlign(int verticalAlign) Generate text that enables the given vertical alignment in the output format
| |
| postProcess | back to summary |
|---|---|
| protected void postProcess(TokenBuffer buffer, RenderContext ctx) Performs post-processing on the given buffer. Alters the buffer's contents. Be sure to make a copy of the buffer before calling this method.
| |
| setConvertLinks | back to summary |
|---|---|
| public void setConvertLinks(boolean convert) Implements de. Doc from de. Specifies if URLs and DOIs should be converted to to links
| |
format(TokenBuffer)
| Modifier and Type | Field and Description |
|---|---|
| public static final BaseFormat. | |
| public static final BaseFormat. | |
| public static final BaseFormat. | |
| public static final BaseFormat. | |
| public static final BaseFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BaseFormat. | |
| public static BaseFormat. |
| FontStyle | back to summary |
|---|---|
| public static final BaseFormat. | |
| FontVariant | back to summary |
|---|---|
| public static final BaseFormat. | |
| FontWeight | back to summary |
|---|---|
| public static final BaseFormat. | |
| TextDecoration | back to summary |
|---|---|
| public static final BaseFormat. | |
| VerticalAlign | back to summary |
|---|---|
| public static final BaseFormat. | |
| Format | back to summary |
|---|---|
| private Format() | |
| valueOf | back to summary |
|---|---|
| public static BaseFormat. | |
| values | back to summary |
|---|---|
| public static BaseFormat. | |