Class DOCXEngine.StyleUpdateProcess
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.nomagic.magicreport.engine.velocity.DOCXEngine.StyleUpdateProcess
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Enclosing class:
DOCXEngine
Handle style for child document
This id and name in this file may be updated
- Since:
- Oct 26, 2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String qName) Get style map {new id, old id} for child templateGet content of styleGet list of style idGet style map {name, id} of stylevoidstartElement(String namespaceURI, String localName, String qName, Attributes attributes) protected voidwriteAttributes(String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
StyleUpdateProcess
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
writeAttributes
- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
getContent
Get content of style- Returns:
- content of style
-
getParentStyleIds
Get list of style id- Returns:
- list of style id
-
getParentStyleNameMap
Get style map {name, id} of style- Returns:
- style name map of all templates
-
getChildStyleIdMap
Get style map {new id, old id} for child template- Returns:
- style id map for child template
-