public class HyperlinkRegistry extends Object
| Constructor and Description |
|---|
HyperlinkRegistry() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String KEY
public String registerHyperlink(String target, String targetMode)
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
id - target - targetMode - public String registerHyperlink(String target)
target - public List<HyperlinkInfo> getHyperlinks()
Copyright © 2017. All Rights Reserved.