public abstract class AbstractVisitorExporterGenerator<CC extends AbstractWmlConversionContext> extends TraversalUtil.CallbackImpl
| Modifier and Type | Field and Description |
|---|---|
protected Object |
anchorOrInline |
protected CC |
conversionContext |
protected Element |
currentP |
protected Element |
currentSpan |
protected Document |
document |
protected static int |
IMAGE_E10 |
protected static int |
IMAGE_E20 |
protected static int |
NODE_BLOCK |
protected static int |
NODE_INLINE |
protected Node |
parentNode |
protected PPr |
pPr |
protected RPr |
rPr |
protected static String |
TAB_DUMMY |
protected LinkedList<Element> |
tc |
protected LinkedList<Element> |
tr |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVisitorExporterGenerator(CC conversionContext,
Document document,
Node parentNode) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
apply(Object o)
Visits a node in pre order (before its children have been visited).
|
protected void |
convertTabToNode(CC conversionContext,
Document document) |
protected void |
convertToNode(CC conversionContext,
Object unmarshalledNode,
String modelId,
Document document,
Node parentNode) |
protected abstract DocumentFragment |
createImage(int imgType,
CC conversionContext,
Object anchorOrInline) |
protected abstract Element |
createNode(Document doc,
int nodeType) |
protected Node |
getCurrentParent() |
protected abstract AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<CC> |
getFactory() |
protected org.slf4j.Logger |
getLog() |
protected int |
getPos(List list,
Object wanted) |
protected abstract void |
handleBr(Br o) |
protected abstract Element |
handlePPr(CC conversionContext,
PPr pPrDirect,
boolean sdt,
Element currentParent) |
protected abstract void |
handleRPr(CC conversionContext,
PPr pPrDirect,
RPr rPrDirect,
Element currentParent)
On a block representing a run, we just put run properties
from this rPr node.
|
protected void |
rtlAwareAppendChildToCurrentP(Element child) |
boolean |
shouldTraverse(Object o)
Decide whether this node's children should be traversed.
|
void |
walkJAXBElements(Object o) |
getChildrenprotected static final String TAB_DUMMY
protected static final int NODE_BLOCK
protected static final int NODE_INLINE
protected static final int IMAGE_E10
protected static final int IMAGE_E20
protected CC extends AbstractWmlConversionContext conversionContext
protected Document document
protected Node parentNode
protected Element currentP
protected Element currentSpan
protected LinkedList<Element> tr
protected LinkedList<Element> tc
protected PPr pPr
protected RPr rPr
protected Object anchorOrInline
public boolean shouldTraverse(Object o)
TraversalUtil.CallbackImplshouldTraverse in interface TraversalUtil.CallbackshouldTraverse in class TraversalUtil.CallbackImplprotected Node getCurrentParent()
protected void convertToNode(CC conversionContext, Object unmarshalledNode, String modelId, Document document, Node parentNode) throws DOMException
DOMExceptionprotected void rtlAwareAppendChildToCurrentP(Element child)
public void walkJAXBElements(Object o)
walkJAXBElements in interface TraversalUtil.CallbackwalkJAXBElements in class TraversalUtil.CallbackImplpublic List<Object> apply(Object o)
TraversalUtil.CallbackImplTraversalUtil.CallbackImpl.shouldTraverse(Object)).
Implementations can have side effects.
apply in interface TraversalUtil.Callbackapply in class TraversalUtil.CallbackImplprotected abstract void handleBr(Br o)
protected void convertTabToNode(CC conversionContext, Document document) throws DOMException
DOMExceptionprotected abstract Element handlePPr(CC conversionContext, PPr pPrDirect, boolean sdt, Element currentParent)
protected abstract void handleRPr(CC conversionContext, PPr pPrDirect, RPr rPrDirect, Element currentParent)
protected abstract AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<CC> getFactory()
protected abstract DocumentFragment createImage(int imgType, CC conversionContext, Object anchorOrInline)
protected org.slf4j.Logger getLog()
Copyright © 2007-2022. All Rights Reserved.