Package org.docx4j.model.fields.seq
Class FieldUpdaterSEQ
java.lang.Object
org.docx4j.model.fields.seq.FieldUpdaterSEQ
Renumbers SEQ fields, following the approach
in FieldUpdater (for DOCPROPERTY and DOCVARIABLE fields).
This implementation updates all SEQ fields,
whatever their identifier. For example, all
"Figure", "Table".
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 TypeFieldDescriptionA counter for each identifier; identifier is the name assigned to the series of items that are to be numbered.private static org.slf4j.Logger(package private) StringBuilderprivate static final String(package private) WordprocessingMLPackage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringextractInstr(List<Object> instructions) private RgetFirstRun(List<Object> content) private intprotected voidsetSimpleFieldConent(R r, String val) voidupdate()voidupdateComplex(JaxbXmlPart part) voidupdateSimple(JaxbXmlPart part)
-
Field Details
-
log
private static org.slf4j.Logger log -
wordMLPackage
WordprocessingMLPackage wordMLPackage -
counters
A counter for each identifier; identifier is the name assigned to the series of items that are to be numbered. [Example: identifier might be Equation, Figure, Table, or Thing, as the user deems appropriate for a caption. end example] -
report
StringBuilder report -
SEQ
- See Also:
-
-
Constructor Details
-
FieldUpdaterSEQ
-
-
Method Details
-
getValue
-
update
- Throws:
Docx4JException
-
updateSimple
- Throws:
Docx4JException
-
setSimpleFieldConent
-
getFirstRun
-
updateComplex
- Throws:
Docx4JException
-
extractInstr
-