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 Orderable
getOrder
in interface NoteContentRenderingPreProcessor
NoteMetadataRenderingPreProcessor.DEFAULT_ORDER
public boolean isCachable()
isCachable
in interface NoteContentRenderingPreProcessor
public boolean processNoteContent(NoteRenderContext context, NoteData item) throws NoteRenderingPreProcessorException
processNoteContent
in interface NoteContentRenderingPreProcessor
context
- 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()
NoteContentRenderingPreProcessor
replacesContent
in interface NoteContentRenderingPreProcessor
public boolean supports(NoteRenderMode mode, NoteData note)
supports
in interface NoteContentRenderingPreProcessor
mode
- 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.