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

java.lang.Object
  extended by fr.opensagres.xdocreport.document.docx.preprocessor.sax.hyperlinks.HyperlinkUtils

public class HyperlinkUtils
extends Object

Utilities for Hyperlink.


Constructor Summary
HyperlinkUtils()
           
 
Method Summary
static String getEntryNameWithoutRels(String relsEntryName)
          Returns the entry name which uses the XML element Relationship from the given *.rels entry.
static String getHyperlinkRegistryKey(String entryName)
          Returns the key used for the template engine directive which must use the hyperlink regitsry for the given entryName (ex :"word/document.xml" will returns "___HyperlinkRegistryword_document_xml")
static InitialHyperlinkMap getInitialHyperlinkMap(String entryName, Map<String,Object> sharedContext)
          Returns the InitialHyperlinkMap from the given sharedContext for the given entry name.
static void putInitialHyperlinkMap(String entryName, Map<String,Object> sharedContext, InitialHyperlinkMap hyperlinkMap)
          Register the given InitialHyperlinkMap in the given sharedContext for the given entry name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperlinkUtils

public HyperlinkUtils()
Method Detail

getInitialHyperlinkMap

public static InitialHyperlinkMap getInitialHyperlinkMap(String entryName,
                                                         Map<String,Object> sharedContext)
Returns the InitialHyperlinkMap from the given sharedContext for the given entry name.

Parameters:
entryName -
sharedContext -
Returns:

putInitialHyperlinkMap

public static void putInitialHyperlinkMap(String entryName,
                                          Map<String,Object> sharedContext,
                                          InitialHyperlinkMap hyperlinkMap)
Register the given InitialHyperlinkMap in the given sharedContext for the given entry name.

Parameters:
entryName -
sharedContext -
hyperlinkMap -

getHyperlinkRegistryKey

public static String getHyperlinkRegistryKey(String entryName)
Returns the key used for the template engine directive which must use the hyperlink regitsry for the given entryName (ex :"word/document.xml" will returns "___HyperlinkRegistryword_document_xml")

Parameters:
entryName -
Returns:

getEntryNameWithoutRels

public static String getEntryNameWithoutRels(String relsEntryName)
Returns the entry name which uses the XML element Relationship from the given *.rels entry. Example : "word/_rels/document.xml.rels" will returns "word/document.xml".

Parameters:
relsEntryName -
Returns:


Copyright © 2013. All rights reserved.