Package ru.bgcrm.plugin.document.docgen
Class DocxDocBuilder
java.lang.Object
ru.bgcrm.plugin.document.docgen.DocxDocBuilder
- All Implemented Interfaces:
AutoCloseable,DocBuilder
- Direct Known Subclasses:
DocxPicturesBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDocxDocBuilder(File patternFile) protectedDocxDocBuilder(org.apache.poi.openxml4j.opc.OPCPackage opcPackage, org.apache.poi.xwpf.usermodel.XWPFDocument document) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected org.apache.poi.xwpf.usermodel.XWPFDocument@NotNull StringgetNotEmptyString(String string) Deprecated.protected org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBodywriteFields(String docPattern, Map<String, String> values) voidwriteValues(List<ru.ufanet.document.DocObject> docObjects, OutputStream out)
-
Field Details
-
XML_KEY_PREFIX
- See Also:
-
-
Constructor Details
-
DocxDocBuilder
-
DocxDocBuilder
protected DocxDocBuilder(org.apache.poi.openxml4j.opc.OPCPackage opcPackage, org.apache.poi.xwpf.usermodel.XWPFDocument document)
-
-
Method Details
-
getDocument
protected org.apache.poi.xwpf.usermodel.XWPFDocument getDocument() -
getFieldNames
- Specified by:
getFieldNamesin interfaceDocBuilder- Throws:
BGException
-
writeValues
public void writeValues(List<ru.ufanet.document.DocObject> docObjects, OutputStream out) throws BGException - Specified by:
writeValuesin interfaceDocBuilder- Throws:
BGException
-
writeFields
protected org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBody writeFields(String docPattern, Map<String, String> values) throws org.apache.xmlbeans.XmlException- Throws:
org.apache.xmlbeans.XmlException
-
getNotEmptyString
Deprecated. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-