public class DocxDocumentXMLRelsDocumentContentHandler extends BufferedDocumentContentHandler
to add template engine script like this for Freemarker :
* to add template engine script like this for Velocity :[#if imageRegistry??] [#list imageRegistry.imageProviderInfos as ___info] [/#list] [/#if]
#if( $imageRegistry) #foreach( $___info in $imageRegistry.ImageProviderInfos) #end #end
| Modifier and Type | Field and Description |
|---|---|
protected String |
entryName |
protected FieldsMetadata |
fieldsMetadata |
protected IDocumentFormatter |
formatter |
bufferedDocument, CDATA_TYPE| Constructor and Description |
|---|
DocxDocumentXMLRelsDocumentContentHandler(String entryName,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
doEndElement(String uri,
String localName,
String name) |
boolean |
doStartElement(String uri,
String localName,
String name,
Attributes attributes) |
protected void |
generateRelationship(StringBuilder script,
String relationId,
String type,
String target,
String targetMode)
Generate Relationship XML element.
|
characters, createDocument, endElement, findParentElementInfo, findParentElementInfo, flushCharacters, getBufferedDocument, getCurrentElement, getElementIndex, mustEncodeCharachers, printEscaped, resetCharacters, startDocument, startElement, startPrefixMapping, toAttributesImplendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warningprotected final String entryName
protected final IDocumentFormatter formatter
protected final FieldsMetadata fieldsMetadata
public DocxDocumentXMLRelsDocumentContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext)
public boolean doStartElement(String uri, String localName, String name, Attributes attributes) throws SAXException
doStartElement in class BufferedDocumentContentHandlerSAXExceptionpublic void doEndElement(String uri, String localName, String name) throws SAXException
doEndElement in class BufferedDocumentContentHandlerSAXExceptionprotected void generateRelationship(StringBuilder script, String relationId, String type, String target, String targetMode)
script - relationId - type - target - targetMode - Copyright © 2017. All Rights Reserved.