Interface NodeDocxRenderer
-
- All Known Subinterfaces:
PhasedNodeDocxRenderer
- All Known Implementing Classes:
CoreNodeDocxRenderer
public interface NodeDocxRenderer
A renderer for a set of node types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.Class<?>>
getBookmarkWrapsChildrenClasses()
Return mapping of all nodes whose children should be wrapped in a bookmark if the parent node has an id attribute.java.util.Set<java.lang.Class<?>>
getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.java.util.Set<NodeDocxRendererHandler<?>>
getNodeFormattingHandlers()
-
-
-
Method Detail
-
getNodeFormattingHandlers
java.util.Set<NodeDocxRendererHandler<?>> getNodeFormattingHandlers()
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
java.util.Set<java.lang.Class<?>> getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Returns:
- the nodes of interest to this formatter during formatting.
-
getBookmarkWrapsChildrenClasses
java.util.Set<java.lang.Class<?>> getBookmarkWrapsChildrenClasses()
Return mapping of all nodes whose children should be wrapped in a bookmark if the parent node has an id attribute. Default for block nodes to have a bookmark before the node element and for inline nodes to have a bookmark around the element.CAUTION: final classes need to be returned, not super classes. Comparison is done by hash on class
- Returns:
- the nodes of interest to this formatter during formatting.
-
-