public class WikiArticle extends Object
| Constructor and Description |
|---|
WikiArticle() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
Integer |
getIntegerNamespace()
Get the integer key of the namespace or
0 if no namespace is
associated. |
String |
getNamespace() |
String |
getRevisionId() |
String |
getText() |
String |
getTimeStamp() |
String |
getTitle() |
boolean |
isCategory()
Does the title belong to the Category namespace?
|
boolean |
isFile() |
boolean |
isMain()
"Real" content articles (i.e.
|
boolean |
isModule() |
boolean |
isProject() |
boolean |
isTemplate()
Does the title belong to the Template namespace?
|
void |
setId(String id)
The ID of the wiki article to set.
|
void |
setIntegerNamespace(Integer integerNamespace) |
void |
setNamespace(String namespace) |
void |
setRevisionId(String revisionId)
The ID of the revision of the wiki article to set.
|
void |
setText(String newText) |
void |
setTimeStamp(String timeStamp) |
void |
setTitle(String newTitle,
Siteinfo siteinfo) |
String |
toString() |
public String getId()
public Integer getIntegerNamespace()
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.public String getNamespace()
public String getRevisionId()
public String getText()
public String getTimeStamp()
public String getTitle()
public boolean isCategory()
public boolean isFile()
public boolean isMain()
public boolean isProject()
public boolean isTemplate()
public boolean isModule()
public void setId(String id)
id - the id to setpublic void setIntegerNamespace(Integer integerNamespace)
integerNamespace - the integerNamespace to setpublic void setNamespace(String namespace)
namespace - the namespace to setpublic void setRevisionId(String revisionId)
revisionId - the revisisonId to setpublic void setText(String newText)
public void setTimeStamp(String timeStamp)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.