fr.opensagres.xdocreport.document.docx.preprocessor.sax.hyperlinks
Class HyperlinkContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.opensagres.xdocreport.document.docx.preprocessor.sax.hyperlinks.HyperlinkContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class HyperlinkContentHandler
extends org.xml.sax.helpers.DefaultHandler

SAX Handler which loads Relationship type of Hyperlink declared in the "word/_rels/document.xml.rels" in the initial InitialHyperlinkMap.


Constructor Summary
HyperlinkContentHandler()
           
 
Method Summary
 InitialHyperlinkMap getHyperlinks()
          Returns Map of initial Relationship type of Hyperlink declared in the "word/_rels/document.xml.rels" and null if there is no Hyperlink declared.
 void startElement(String uri, String localName, String name, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperlinkContentHandler

public HyperlinkContentHandler()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

getHyperlinks

public InitialHyperlinkMap getHyperlinks()
Returns Map of initial Relationship type of Hyperlink declared in the "word/_rels/document.xml.rels" and null if there is no Hyperlink declared.

Returns:


Copyright © 2013. All rights reserved.