| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug |
protected General |
generalSiteInfo |
protected static Logger |
LOGGER
Logging may be enabled by setting debug to true
|
protected String |
mediawikiVersion |
protected Map<String,Ns> |
namespaces |
protected Map<String,Ns> |
namespacesByCanonicalName |
protected Map<Integer,Ns> |
namespacesById |
| Constructor and Description |
|---|
SiteInfoImpl(General general,
List<Ns> list)
initalize me
|
| Modifier and Type | Method and Description |
|---|---|
General |
getGeneral()
get the general siteinfo
|
String |
getLang()
get the languge of this site
|
Map<String,Ns> |
getNamespaces()
get the Namespaces for this wiki
|
Map<String,Ns> |
getNamespacesByCanonicalName()
get the Namespaces by canonical name for this wiki
|
Map<Integer,Ns> |
getNamespacesById()
get the Namespaces for this wiki
|
String |
getVersion()
get the Version of this wiki
|
protected void |
initNameSpaces(General general,
List<Ns> namespaceList)
initialize the NameSpaces from the given namespaceList
|
String |
mapNamespace(String ns,
SiteInfo targetWiki)
map the given namespace to the target wiki
|
void |
setGeneral(General siteInfo) |
protected static Logger LOGGER
public static boolean debug
protected String mediawikiVersion
protected General generalSiteInfo
protected void initNameSpaces(General general, List<Ns> namespaceList)
general - namespaceList - public General getGeneral()
SiteInfogetGeneral in interface SiteInfopublic void setGeneral(General siteInfo)
siteInfo - the siteInfo to setpublic Map<String,Ns> getNamespaces() throws Exception
getNamespaces in interface SiteInfoExceptionpublic Map<String,Ns> getNamespacesByCanonicalName() throws Exception
getNamespacesByCanonicalName in interface SiteInfoExceptionpublic Map<Integer,Ns> getNamespacesById() throws Exception
getNamespacesById in interface SiteInfoExceptionpublic String mapNamespace(String ns, SiteInfo targetWiki) throws Exception
mapNamespace in interface SiteInfons - targetWiki - Exceptionpublic String getLang()
SiteInfoCopyright © 2018 BITPlan GmbH. All rights reserved.