|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConfiguration
Configuration interface for extensions similar to the Mediawiki HTML styled tag extension, template parser functions and interwiki links
Configuration
Method Summary | |
---|---|
SourceCodeFormatter |
addCodeFormatter(java.lang.String key,
SourceCodeFormatter value)
Add a new source code formatter to the configuration |
java.lang.String |
addInterwikiLink(java.lang.String key,
java.lang.String value)
Add another Interwiki link to the configuration. |
ITemplateFunction |
addTemplateFunction(java.lang.String key,
ITemplateFunction value)
Add a new interwiki link to the configuration |
TagToken |
addTokenTag(java.lang.String key,
TagToken value)
Add a new HTML styled tag to the configuration |
java.util.Map<java.lang.String,SourceCodeFormatter> |
getCodeFormatterMap()
Get the source code formatter map of built-in source code formatters |
java.util.Map<java.lang.String,java.lang.String> |
getInterwikiMap()
Get the interwiki links map for converting interwiki links into external URLs. |
java.util.Map<java.lang.String,java.lang.String> |
getTemplateCallsCache()
Get the currently configured cache implementation for template calls. |
java.util.Map<java.lang.String,ITemplateFunction> |
getTemplateMap()
Get the template parser functions map of built-in template functions |
java.util.Map<java.lang.String,TagToken> |
getTokenMap()
Get the HTML styled tag map for built-in tags |
java.util.Set<java.lang.String> |
getUriSchemeSet()
Get the set of all allowed URI scheme shortcuts like http, https, ftp,... |
void |
setTemplateCallsCache(java.util.Map<java.lang.String,java.lang.String> map)
Set a cache map implementation. |
Method Detail |
---|
SourceCodeFormatter addCodeFormatter(java.lang.String key, SourceCodeFormatter value)
key
- value
-
java.lang.String addInterwikiLink(java.lang.String key, java.lang.String value)
${title}
placeholder for the used wiki article
link.
key
- the prefix used in the interwiki link (i.e. [[prefix:...]] )value
- the external link which should be generated from the interwiki
link
ITemplateFunction addTemplateFunction(java.lang.String key, ITemplateFunction value)
key
- value
-
TagToken addTokenTag(java.lang.String key, TagToken value)
key
- value
-
java.util.Map<java.lang.String,SourceCodeFormatter> getCodeFormatterMap()
java.util.Map<java.lang.String,java.lang.String> getInterwikiMap()
java.util.Map<java.lang.String,java.lang.String> getTemplateCallsCache()
null
if no cache implementation is set.setTemplateCallsCache(Map)
java.util.Map<java.lang.String,ITemplateFunction> getTemplateMap()
java.util.Map<java.lang.String,TagToken> getTokenMap()
java.util.Set<java.lang.String> getUriSchemeSet()
void setTemplateCallsCache(java.util.Map<java.lang.String,java.lang.String> map)
map
- the cache implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |