info.bliki.wiki.dump
Class WikiArticle

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

public class WikiArticle
extends java.lang.Object

Represents a single wiki page from a Mediawiki dump.


Constructor Summary
WikiArticle()
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.Integer getIntegerNamespace()
          Get the integer key of the namespace or 0 if no namespace is associated.
 java.lang.String getNamespace()
           
 java.lang.String getRevisionId()
           
 java.lang.String getText()
           
 java.lang.String getTimeStamp()
           
 java.lang.String getTitle()
           
 boolean isCategory()
          Does the title belong to the Category namespace?
 boolean isFile()
           
 boolean isMain()
          "Real" content articles (i.e. the title has no namespace prefix)?
 boolean isProject()
           
 boolean isTemplate()
          Does the title belong to the Template namespace?
 void setId(java.lang.String id)
          The ID of the wiki article to set.
 void setIntegerNamespace(java.lang.Integer integerNamespace)
           
 void setNamespace(java.lang.String namespace)
           
 void setRevisionId(java.lang.String revisionId)
          The ID of the revision of the wiki article to set.
 void setText(java.lang.String newText)
           
 void setTimeStamp(java.lang.String timeStamp)
           
 void setTitle(java.lang.String newTitle)
          Deprecated.  
 void setTitle(java.lang.String newTitle, Siteinfo siteinfo)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WikiArticle

public WikiArticle()
Method Detail

getId

public java.lang.String getId()
Returns:
the id

getIntegerNamespace

public java.lang.Integer getIntegerNamespace()
Get the integer key of the namespace or 0 if no namespace is associated. For example in an english Mediawiki installation 10 is typically the Template namespace and 14 is typically the Category namespace.

Returns:
the integerNamespace

getNamespace

public java.lang.String getNamespace()
Returns:
the namespace.

getRevisionId

public java.lang.String getRevisionId()
Returns:
the revisionId

getText

public java.lang.String getText()

getTimeStamp

public java.lang.String getTimeStamp()

getTitle

public java.lang.String getTitle()

isCategory

public boolean isCategory()
Does the title belong to the Category namespace?

Returns:

isFile

public boolean isFile()

isMain

public boolean isMain()
"Real" content articles (i.e. the title has no namespace prefix)?

Returns:

isProject

public boolean isProject()

isTemplate

public boolean isTemplate()
Does the title belong to the Template namespace?

Returns:

setId

public void setId(java.lang.String id)
The ID of the wiki article to set.

Parameters:
id - the id to set

setIntegerNamespace

public void setIntegerNamespace(java.lang.Integer integerNamespace)
Parameters:
integerNamespace - the integerNamespace to set

setNamespace

public void setNamespace(java.lang.String namespace)
Parameters:
namespace - the namespace to set

setRevisionId

public void setRevisionId(java.lang.String revisionId)
The ID of the revision of the wiki article to set.

Parameters:
revisionId - the revisisonId to set

setText

public void setText(java.lang.String newText)

setTimeStamp

public void setTimeStamp(java.lang.String timeStamp)

setTitle

public void setTitle(java.lang.String newTitle)
Deprecated. 

Parameters:
newTitle -

setTitle

public void setTitle(java.lang.String newTitle,
                     Siteinfo siteinfo)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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