Package org.docx4j.model.fields
Class FieldUpdater
java.lang.Object
org.docx4j.model.fields.FieldUpdater
Refreshes the values of certain fields in the
docx (currently DOCPROPERTY and DOCVARIABLE only).
(For MERGEFIELD, see FieldsMailMerge)
Do this whether they are simple or complex.
This updates the docx. If you don't want to do
that, apply it to a clone instead.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String(package private) DocPropertyResolverprivate static final String(package private) DocVariableResolverprivate static org.slf4j.Logger(package private) StringBuilder(package private) WordprocessingMLPackage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringextractInstr(List<Object> instructions) private RgetFirstRun(List<Object> content) protected voidsetSimpleFieldConent(R r, String val) voidupdate(boolean processHeadersAndFooters) voidupdateComplex(JaxbXmlPart part) voidupdatePart(JaxbXmlPart part) voidupdateSimple(JaxbXmlPart part)
-
Field Details
-
log
private static org.slf4j.Logger log -
wordMLPackage
WordprocessingMLPackage wordMLPackage -
docPropertyResolver
DocPropertyResolver docPropertyResolver -
docVariableResolver
DocVariableResolver docVariableResolver -
report
StringBuilder report -
DOCPROPERTY
- See Also:
-
DOCVARIABLE
- See Also:
-
-
Constructor Details
-
FieldUpdater
-
-
Method Details
-
update
- Throws:
Docx4JException
-
updatePart
- Throws:
Docx4JException
-
updateSimple
- Throws:
Docx4JException
-
setSimpleFieldConent
-
getFirstRun
-
updateComplex
- Throws:
Docx4JException
-
extractInstr
-