Class AbstractPagerefHandler
java.lang.Object
org.docx4j.convert.out.common.writer.AbstractPagerefHandler
- All Implemented Interfaces:
AbstractFldSimpleWriter.FldSimpleNodeWriterHandler,AbstractFldSimpleWriter.FldSimpleWriterHandler
- Direct Known Subclasses:
FldSimpleWriter.PagerefHandler
public abstract class AbstractPagerefHandler extends java.lang.Object implements AbstractFldSimpleWriter.FldSimpleNodeWriterHandler
-
Field Summary
Fields Modifier and Type Field Description protected intoutputTypeFields inherited from interface org.docx4j.convert.out.common.writer.AbstractFldSimpleWriter.FldSimpleNodeWriterHandler
PROCESS_APPLY_STYLE, PROCESS_NONE, PROCESS_WRAP_APPLY_STYLE -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPagerefHandler(int outputType) -
Method Summary
Modifier and Type Method Description protected abstract org.w3c.dom.NodecreatePageref(AbstractWmlConversionContext context, org.w3c.dom.Document doc, java.lang.String bookmarkId)protected org.w3c.dom.NodefindTextNode(org.w3c.dom.Node root)Find a textnode with a text contentjava.lang.StringgetName()intgetProcessType()protected java.lang.StringgetTextcontent(org.w3c.dom.Node root)protected voidsetTextcontent(org.w3c.dom.Node root, java.lang.String text)protected java.util.List<java.lang.String>splitTextcontent(java.lang.String textcontent)org.w3c.dom.NodetoNode(AbstractWmlConversionContext context, FldSimpleModel model, org.w3c.dom.Document doc)
-
Field Details
-
outputType
protected int outputType
-
-
Constructor Details
-
AbstractPagerefHandler
protected AbstractPagerefHandler(int outputType)
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceAbstractFldSimpleWriter.FldSimpleWriterHandler
-
getProcessType
public int getProcessType()- Specified by:
getProcessTypein interfaceAbstractFldSimpleWriter.FldSimpleNodeWriterHandler
-
toNode
public org.w3c.dom.Node toNode(AbstractWmlConversionContext context, FldSimpleModel model, org.w3c.dom.Document doc) throws javax.xml.transform.TransformerException- Specified by:
toNodein interfaceAbstractFldSimpleWriter.FldSimpleNodeWriterHandler- Throws:
javax.xml.transform.TransformerException
-
splitTextcontent
protected java.util.List<java.lang.String> splitTextcontent(java.lang.String textcontent) -
getTextcontent
protected java.lang.String getTextcontent(org.w3c.dom.Node root) -
setTextcontent
protected void setTextcontent(org.w3c.dom.Node root, java.lang.String text) -
findTextNode
protected org.w3c.dom.Node findTextNode(org.w3c.dom.Node root)Find a textnode with a text content- Returns:
- textnode or null
-
createPageref
protected abstract org.w3c.dom.Node createPageref(AbstractWmlConversionContext context, org.w3c.dom.Document doc, java.lang.String bookmarkId)
-