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

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

public class HyperlinkRegistry
extends Object

Registry which stores each Hyperlink of the final generated report.


Field Summary
static String KEY
           
 
Constructor Summary
HyperlinkRegistry()
           
 
Method Summary
 List<HyperlinkInfo> getHyperlinks()
          Returns list of Hyperlink.
 String registerHyperlink(String target)
          Register external hyperlink.
 String registerHyperlink(String target, String targetMode)
          Register in the registry the given Hyperlink and returns the computed if of the hyperlink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final String KEY
See Also:
Constant Field Values
Constructor Detail

HyperlinkRegistry

public HyperlinkRegistry()
Method Detail

registerHyperlink

public String registerHyperlink(String target,
                                String targetMode)
Register in the registry the given Hyperlink and returns the computed if of the hyperlink.

This method is called at first by the entry "document.xml" which defines hyperlink (after preprocessing) like this :

     
 
To generate for instance
     
 

The registry stores each hyperlink which are used in the second XML entry "word/_rels/document.xml.rels" :

          [#if ___HyperlinkRegistry??]
    [#list ___HyperlinkRegistry.hyperlinks as ___info]
    
    [/#list]
    [/#if]
 
To generate for instance
     
 

Parameters:
id -
target -
targetMode -
Returns:

registerHyperlink

public String registerHyperlink(String target)
Register external hyperlink.

Parameters:
target -
Returns:

getHyperlinks

public List<HyperlinkInfo> getHyperlinks()
Returns list of Hyperlink.

Returns:


Copyright © 2013. All rights reserved.