public class Configuration extends Object implements IConfiguration
IConfiguration.Casing| Modifier and Type | Field and Description |
|---|---|
static boolean |
AVOID_PAGE_BREAK_IN_TABLE
Tries to avoid page breaks inside tables, e.g.
|
static String |
BLIKI_VERSION
Get the current
Bliki.info Engine version |
protected static HashMap<String,SourceCodeFormatter> |
CODE_FORMATTER_MAP
Map the source code's language string to the code formatter implementation
|
static boolean |
DEBUG
Print additional debug information to System.out
|
static String |
DEFAULT_WIKI_ID |
static HTMLTag |
HTML_ABBR_OPEN |
static HTMLTag |
HTML_BIG_OPEN |
static HTMLTag |
HTML_BLOCKQUOTE_OPEN |
static HTMLTag |
HTML_BOLD_OPEN |
static HTMLTag |
HTML_CAPTION_OPEN |
static HTMLTag |
HTML_CENTER_OPEN |
static HTMLTag |
HTML_CITE_OPEN |
static HTMLTag |
HTML_CODE_OPEN |
static HTMLTag |
HTML_DD_OPEN |
static HTMLTag |
HTML_DEL_OPEN |
static HTMLTag |
HTML_DIV_OPEN |
static HTMLTag |
HTML_DL_OPEN |
static HTMLTag |
HTML_EM_OPEN |
static HTMLTag |
HTML_FONT_OPEN |
static HTMLTag |
HTML_H1_OPEN |
static HTMLTag |
HTML_H2_OPEN |
static HTMLTag |
HTML_H3_OPEN |
static HTMLTag |
HTML_H4_OPEN |
static HTMLTag |
HTML_H5_OPEN |
static HTMLTag |
HTML_H6_OPEN |
static HTMLTag |
HTML_ITALIC_OPEN |
static HTMLTag |
HTML_LI_OPEN |
static HTMLTag |
HTML_OL_OPEN |
static HTMLTag |
HTML_PARAGRAPH_OPEN |
static HTMLTag |
HTML_PRE_OPEN |
static HTMLTag |
HTML_Q_OPEN |
static HTMLTag |
HTML_RP_OPEN |
static HTMLTag |
HTML_RT_OPEN |
static HTMLTag |
HTML_RUBY_OPEN |
static HTMLTag |
HTML_S_OPEN |
static HTMLTag |
HTML_SMALL_OPEN |
static HTMLTag |
HTML_SPAN_OPEN |
static HTMLTag |
HTML_STRIKE_OPEN |
static HTMLTag |
HTML_STRONG_OPEN |
static HTMLTag |
HTML_SUB_OPEN |
static HTMLTag |
HTML_SUP_OPEN |
static HTMLTag |
HTML_TABLE_OPEN |
static HTMLTag |
HTML_TD_OPEN |
static HTMLTag |
HTML_TH_OPEN |
static HTMLTag |
HTML_TR_OPEN |
static HTMLTag |
HTML_TT_OPEN |
static HTMLTag |
HTML_UL_OPEN |
static HTMLTag |
HTML_UNDERLINE_OPEN |
static HTMLTag |
HTML_VAR_OPEN |
static int |
MAX_CACHE_KEY_LENGTH
Limits the length of the template cache key to this length.
|
static Pattern |
NOWIKI_CLOSE_PATTERN |
static Pattern |
NOWIKI_OPEN_PATTERN |
static boolean |
PARSER_FUNCTIONS
Print parser function calls (ITemplateFunction calls) with isSubst==false
|
static int |
PARSER_RECURSION_LIMIT
Limits the recursive call of the Wikipedia and Template parser to a depth
of PARSER_RECURSION_LIMIT
|
static boolean |
RAW_CONTENT
Print raw content calls
|
static int |
RENDERER_RECURSION_LIMIT
Limits the recursive call of the HTMLConverter renderer to a depth of
RENDERER_RECURSION_LIMIT
|
static String |
SPECIAL_BLOCK_TAGS |
static boolean |
STACKTRACE
Print additional stack trace information to System.out
|
protected static HashMap<String,TagToken> |
TAG_TOKEN_MAP
Map the HTML token string to the corresponding TagToken implementation
|
protected HashMap<String,TagToken> |
tagTokenMap |
static int |
TEMPLATE_BUFFER_LIMIT
Limits the Scanner buffer.
|
protected static Map<String,ITemplateFunction> |
TEMPLATE_FUNCTION_MAP
Map the template's function name to the TemplateFunction implementation
|
static boolean |
TEMPLATE_NAMES
Print template calls
|
static int |
TEMPLATE_RECURSION_LIMIT
Limits the recursive call of the Template parser to a depth of
TEMPLATE_RECURSION_LIMIT
|
static int |
TEMPLATE_VALUE_LIMIT
Limits the template parameter value length
|
protected static Set<String> |
URI_SCHEME_MAP
Allowed URI schemes
|
| Constructor and Description |
|---|
Configuration() |
Configuration(String wikiId,
IConfiguration.Casing casing) |
| Modifier and Type | Method and Description |
|---|---|
SourceCodeFormatter |
addCodeFormatter(String key,
SourceCodeFormatter value)
Add a new
source code formatter
to the configuration
|
String |
addInterwikiLink(String key,
String value)
Add another Interwiki link to the configuration.
|
ITemplateFunction |
addTemplateFunction(String key,
ITemplateFunction value)
Add a new interwiki
link to the configuration
|
TagToken |
addTokenTag(String key,
TagToken value)
Add a new
HTML styled tag to the configuration
|
boolean |
addUriScheme(String uriKey)
Add an allowed URI scheme shortcut like http, https, ftp,...
|
IConfiguration.Casing |
casing() |
Map<String,SourceCodeFormatter> |
getCodeFormatterMap()
Get the source code formatter map of built-in source code formatters
|
Map<String,String> |
getInterWikiMapping() |
Map<String,String> |
getTemplateCallsCache()
Get the currently configured cache implementation for template calls.
|
Map<String,ITemplateFunction> |
getTemplateMap()
Get the template
parser functions map of built-in template functions
|
Map<String,TagToken> |
getTokenMap()
Get the HTML
styled tag map for built-in tags
|
Set<String> |
getUriSchemeSet()
Get the set of all allowed URI scheme shortcuts like http, https, ftp,...
|
String |
getWikiId() |
void |
setTemplateCallsCache(Map<String,String> map)
Set a cache map implementation.
|
public static final String BLIKI_VERSION
Bliki.info Engine versionpublic static final boolean DEBUG
public static final boolean STACKTRACE
public static final boolean PARSER_FUNCTIONS
public static final boolean TEMPLATE_NAMES
public static final boolean RAW_CONTENT
public static final String SPECIAL_BLOCK_TAGS
public static final HTMLTag HTML_ABBR_OPEN
public static final HTMLTag HTML_EM_OPEN
public static final HTMLTag HTML_H1_OPEN
public static final HTMLTag HTML_H2_OPEN
public static final HTMLTag HTML_H3_OPEN
public static final HTMLTag HTML_H4_OPEN
public static final HTMLTag HTML_H5_OPEN
public static final HTMLTag HTML_H6_OPEN
public static final HTMLTag HTML_ITALIC_OPEN
public static final HTMLTag HTML_BOLD_OPEN
public static final HTMLTag HTML_PARAGRAPH_OPEN
public static final HTMLTag HTML_BLOCKQUOTE_OPEN
public static final HTMLTag HTML_STRIKE_OPEN
public static final HTMLTag HTML_STRONG_OPEN
public static final HTMLTag HTML_UNDERLINE_OPEN
public static final HTMLTag HTML_SUB_OPEN
public static final HTMLTag HTML_SUP_OPEN
public static final HTMLTag HTML_CENTER_OPEN
public static final HTMLTag HTML_TT_OPEN
public static final HTMLTag HTML_TABLE_OPEN
public static final HTMLTag HTML_CAPTION_OPEN
public static final HTMLTag HTML_TH_OPEN
public static final HTMLTag HTML_TR_OPEN
public static final HTMLTag HTML_TD_OPEN
public static final HTMLTag HTML_UL_OPEN
public static final HTMLTag HTML_OL_OPEN
public static final HTMLTag HTML_LI_OPEN
public static final HTMLTag HTML_FONT_OPEN
public static final HTMLTag HTML_CITE_OPEN
public static final HTMLTag HTML_DIV_OPEN
public static final HTMLTag HTML_SPAN_OPEN
public static final HTMLTag HTML_VAR_OPEN
public static final HTMLTag HTML_CODE_OPEN
public static final HTMLTag HTML_S_OPEN
public static final HTMLTag HTML_SMALL_OPEN
public static final HTMLTag HTML_BIG_OPEN
public static final HTMLTag HTML_DEL_OPEN
public static final HTMLTag HTML_PRE_OPEN
public static final HTMLTag HTML_DL_OPEN
public static final HTMLTag HTML_DD_OPEN
public static final HTMLTag HTML_Q_OPEN
public static final HTMLTag HTML_RUBY_OPEN
public static final HTMLTag HTML_RP_OPEN
public static final HTMLTag HTML_RT_OPEN
public static final String DEFAULT_WIKI_ID
protected static final HashMap<String,TagToken> TAG_TOKEN_MAP
protected static final HashMap<String,SourceCodeFormatter> CODE_FORMATTER_MAP
protected static final Map<String,ITemplateFunction> TEMPLATE_FUNCTION_MAP
public static final Pattern NOWIKI_OPEN_PATTERN
public static final Pattern NOWIKI_CLOSE_PATTERN
public static final int MAX_CACHE_KEY_LENGTH
public static final int PARSER_RECURSION_LIMIT
public static final int RENDERER_RECURSION_LIMIT
public static final int TEMPLATE_RECURSION_LIMIT
public static final int TEMPLATE_BUFFER_LIMIT
public static final int TEMPLATE_VALUE_LIMIT
public static boolean AVOID_PAGE_BREAK_IN_TABLE
public Configuration()
public Configuration(String wikiId, IConfiguration.Casing casing)
public String addInterwikiLink(String key, String value)
IConfiguration$1 placeholder for the used wiki article
link.addInterwikiLink in interface IConfigurationkey - the prefix used in the interwiki link (i.e. [[prefix:...]] )value - the external link which should be generated from the interwiki
linkpublic String getWikiId()
public Set<String> getUriSchemeSet()
getUriSchemeSet in interface IConfigurationpublic boolean addUriScheme(String uriKey)
true if the set did not already contain the specified
URI key.public Map<String,ITemplateFunction> getTemplateMap()
IConfigurationgetTemplateMap in interface IConfigurationpublic ITemplateFunction addTemplateFunction(String key, ITemplateFunction value)
IConfigurationaddTemplateFunction in interface IConfigurationpublic Map<String,String> getTemplateCallsCache()
IConfigurationgetTemplateCallsCache in interface IConfigurationnull if no cache implementation is set.IConfiguration.setTemplateCallsCache(Map)public void setTemplateCallsCache(Map<String,String> map)
IConfigurationsetTemplateCallsCache in interface IConfigurationmap - the cache implementationpublic IConfiguration.Casing casing()
casing in interface IConfigurationIConfiguration.Casing.FirstLetter.public Map<String,SourceCodeFormatter> getCodeFormatterMap()
IConfigurationgetCodeFormatterMap in interface IConfigurationpublic SourceCodeFormatter addCodeFormatter(String key, SourceCodeFormatter value)
IConfigurationaddCodeFormatter in interface IConfigurationpublic Map<String,TagToken> getTokenMap()
IConfigurationgetTokenMap in interface IConfigurationpublic TagToken addTokenTag(String key, TagToken value)
IConfigurationaddTokenTag in interface IConfigurationCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.