info.bliki.wiki.dump
Class Siteinfo

java.lang.Object
  extended by info.bliki.wiki.dump.Siteinfo

public class Siteinfo
extends java.lang.Object

The site and namespace information found in the header of a Mediawiki dump


Constructor Summary
Siteinfo()
           
 
Method Summary
 void addNamespace(java.lang.String integerKey, java.lang.String namespace)
           
 java.lang.String getBase()
          Get the "MainPage" URL of the wiki.
 java.lang.String getCharacterCase()
          Get the character case of the wiki.
 java.lang.String getGenerator()
          Get the generator signature of the wiki (i.e.
 java.lang.Integer getIntegerNamespace(java.lang.String namespace)
          Get the integer value of this site from the given namespace.
 java.lang.String getNamespace(java.lang.Integer key)
          Get the namespace of this site from the given integer key.
 java.lang.String getSitename()
          Get the site name of the wiki.
 void setBase(java.lang.String base)
           
 void setCharacterCase(java.lang.String characterCase)
           
 void setGenerator(java.lang.String generator)
           
 void setSitename(java.lang.String sitename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Siteinfo

public Siteinfo()
Method Detail

addNamespace

public void addNamespace(java.lang.String integerKey,
                         java.lang.String namespace)

getNamespace

public java.lang.String getNamespace(java.lang.Integer key)
Get the namespace of this site from the given integer key. For example in an english Mediawiki installation 10 is typically the Template namespace and 14 is typically the Category namespace.

Parameters:
key -
Returns:
null if no namespace is defined for the given key.

getIntegerNamespace

public java.lang.Integer getIntegerNamespace(java.lang.String namespace)
Get the integer value of this site from the given namespace. For example in an english Mediawiki installation 10 is typically the Template namespace and 14 is typically the Category namespace.

Parameters:
namespace -
Returns:
null if no integer value is defined for the given namespace.

getBase

public java.lang.String getBase()
Get the "MainPage" URL of the wiki.

Returns:
the base

getCharacterCase

public java.lang.String getCharacterCase()
Get the character case of the wiki. For example first-letter is set, if the first letter of a wiki title is converted to an upper case letter.

Returns:
the characterCase

getGenerator

public java.lang.String getGenerator()
Get the generator signature of the wiki (i.e. MediaWiki 1.xx.....).

Returns:
the generator

getSitename

public java.lang.String getSitename()
Get the site name of the wiki.

Returns:
the sitename

setBase

public void setBase(java.lang.String base)
Parameters:
base - the base to set

setCharacterCase

public void setCharacterCase(java.lang.String characterCase)
Parameters:
characterCase - the characterCase to set

setGenerator

public void setGenerator(java.lang.String generator)
Parameters:
generator - the generator to set

setSitename

public void setSitename(java.lang.String sitename)
Parameters:
sitename - the sitename to set


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.