public class TemplateNoteRenderingPreProcessor extends Object implements NoteContentRenderingPreProcessor
DEFAULT_ORDER
Constructor and Description |
---|
TemplateNoteRenderingPreProcessor() |
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 item)
Whether the processor supports a specific render mode.
|
public int getOrder()
getOrder
in interface Orderable
getOrder
in interface NoteContentRenderingPreProcessor
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 item)
supports
in interface NoteContentRenderingPreProcessor
mode
- the note render mode, never nullitem
- 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.