public abstract class NodeRepositoryFormatter<R extends NodeRepository<B>,B extends Node & ReferenceNode<R,B,N>,N extends Node & ReferencingNode<R,B>> extends Object implements PhasedNodeFormatter
| Modifier and Type | Field and Description |
|---|---|
static HashSet<FormattingPhase> |
FORMATTING_PHASES |
protected B |
lastReference |
protected Comparator<B> |
myComparator |
protected boolean |
recheckUndefinedReferences |
protected List<B> |
referenceList |
protected R |
referenceRepository |
protected boolean |
repositoryNodesDone |
protected HashSet<Node> |
unusedReferences |
| Constructor and Description |
|---|
NodeRepositoryFormatter(DataHolder options) |
| Modifier and Type | Method and Description |
|---|---|
Set<FormattingPhase> |
getFormattingPhases() |
Comparator<B> |
getReferenceComparator() |
abstract ElementPlacement |
getReferencePlacement() |
abstract ElementPlacementSort |
getReferenceSort() |
abstract R |
getRepository(DataHolder options) |
void |
renderDocument(NodeFormatterContext context,
MarkdownWriter markdown,
Document document,
FormattingPhase phase)
Render the specified node.
|
protected void |
renderReference(B node,
NodeFormatterContext context,
MarkdownWriter markdown) |
abstract void |
renderReferenceBlock(B node,
NodeFormatterContext context,
MarkdownWriter markdown) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodeClasses, getNodeFormattingHandlerspublic static final HashSet<FormattingPhase> FORMATTING_PHASES
protected final R extends NodeRepository<B> referenceRepository
protected boolean recheckUndefinedReferences
protected boolean repositoryNodesDone
protected final Comparator<B extends Node & ReferenceNode<R,B,N>> myComparator
public NodeRepositoryFormatter(DataHolder options)
public Comparator<B> getReferenceComparator()
public abstract R getRepository(DataHolder options)
public abstract ElementPlacement getReferencePlacement()
public abstract ElementPlacementSort getReferenceSort()
public abstract void renderReferenceBlock(B node, NodeFormatterContext context, MarkdownWriter markdown)
public Set<FormattingPhase> getFormattingPhases()
getFormattingPhases in interface PhasedNodeFormatterpublic void renderDocument(NodeFormatterContext context, MarkdownWriter markdown, Document document, FormattingPhase phase)
PhasedNodeFormatterrenderDocument in interface PhasedNodeFormattercontext - node renderer context instancemarkdown - markdown writer instancedocument - the document node to renderphase - rendering phase for which to generate the output. Will be any of FormattingPhase except FormattingPhase.DOCUMENT because this phase is used for the non-phased node renderingprotected void renderReference(B node, NodeFormatterContext context, MarkdownWriter markdown)
Copyright © 2018. All rights reserved.