public class AliasAndTagLinkRenderer extends Object implements NoteContentRenderingPreProcessor
DEFAULT_ORDER| Constructor and Description |
|---|
AliasAndTagLinkRenderer()
Creates a new alias and tag link renderer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
boolean |
isCachable() |
boolean |
processNoteContent(NoteRenderContext context,
NoteData item)
Processes the note content for a specific render context.
|
boolean |
replacesContent()
Denotes whether the pre-processor replaces the note content completely.
|
boolean |
supports(NoteRenderMode mode,
NoteData note)
Whether the processor supports a specific render mode.
|
public AliasAndTagLinkRenderer()
public int getOrder()
getOrder in interface OrderablegetOrder in interface NoteContentRenderingPreProcessorNoteMetadataRenderingPreProcessor.DEFAULT_ORDERpublic boolean isCachable()
isCachable in interface NoteContentRenderingPreProcessorpublic boolean processNoteContent(NoteRenderContext context, NoteData item) throws NoteRenderingPreProcessorException
processNoteContent in interface NoteContentRenderingPreProcessorcontext - holds details about the render context to allow specific processing in different
situationsitem - the note item to processNoteRenderingPreProcessorException - in case something unexpected lead to the failure of the processorpublic boolean replacesContent()
NoteContentRenderingPreProcessorreplacesContent in interface NoteContentRenderingPreProcessorpublic boolean supports(NoteRenderMode mode, NoteData note)
supports in interface NoteContentRenderingPreProcessormode - the note render mode, never nullnote - the note to render. A pre-processor can use this parameter to decide based on note
attributes whether the note content should be processedCopyright © 2019 Communote team. All rights reserved.