fr.opensagres.xdocreport.document.docx.preprocessor
Class HyperlinkRegistry
java.lang.Object
fr.opensagres.xdocreport.document.docx.preprocessor.HyperlinkRegistry
public class HyperlinkRegistry
- extends java.lang.Object
Registry which stores each Hyperlink of the final generated report.
|
Field Summary |
static java.lang.String |
KEY
|
|
Method Summary |
java.util.List<HyperlinkInfo> |
getHyperlinks()
Returns list of Hyperlink. |
java.lang.String |
registerHyperlink(java.lang.String id,
java.lang.String target,
java.lang.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 |
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
HyperlinkRegistry
public HyperlinkRegistry()
registerHyperlink
public java.lang.String registerHyperlink(java.lang.String id,
java.lang.String target,
java.lang.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:
getHyperlinks
public java.util.List<HyperlinkInfo> getHyperlinks()
- Returns list of Hyperlink.
- Returns:
Copyright © 2011. All Rights Reserved.