public class Article extends Object implements ArticleMeta, ContentSetable
| Constructor and Description |
|---|
Article(WikiBot bot,
SimpleArticle sa) |
Article(WikiBot bot,
String title) |
Article(WikiBot bot,
String text,
String title)
Deprecated.
use
#Article(String) and setText(String) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(String text) |
void |
addTextnl(String text) |
void |
clear()
clear content.
|
void |
delete()
Deletes this article, if the user has the required rights.
|
WikiBot |
getBot()
Deprecated.
do not use this
|
String |
getEditor() |
String |
getEditSummary() |
Date |
getEditTimestamp() |
String |
getRevisionId() |
SimpleArticle |
getSimpleArticle() |
String |
getText() |
String |
getTitle() |
boolean |
isEmpty()
Deprecated.
do not use this TODO why?
|
boolean |
isMinorEdit() |
boolean |
isRedirect()
Deprecated.
see inheritDoc
|
void |
save()
Save this article.
|
void |
save(String summary)
Saves with a given comment.
|
void |
setEditor(String editor) |
void |
setEditSummary(String s) |
void |
setMinorEdit(boolean minor) |
void |
setText(String text) |
void |
setTitle(String title) |
public Article(WikiBot bot, SimpleArticle sa)
bot - thesa - the@Deprecated public Article(WikiBot bot, String text, String title)
public String getText()
getText in interface ContentAccessablepublic void setText(String text)
setText in interface ContentSetabletext - the content of the articlepublic String getRevisionId()
getRevisionId in interface ArticleMetapublic String getEditor()
getEditor in interface ContentAccessablepublic void setEditor(String editor)
setEditor in interface ContentSetableeditor - thepublic String getEditSummary()
getEditSummary in interface ContentAccessablepublic void setEditSummary(String s)
setEditSummary in interface ContentSetables - thepublic boolean isMinorEdit()
isMinorEdit in interface ContentAccessablepublic void save()
public void save(String summary)
public void clear()
public void delete()
@Deprecated public boolean isEmpty()
@Deprecated public WikiBot getBot()
public String getTitle()
getTitle in interface ContentAccessablepublic Date getEditTimestamp()
getEditTimestamp in interface ArticleMeta@Deprecated public boolean isRedirect()
isRedirect in interface ArticleMetapublic void addText(String text)
addText in interface ContentSetabletext - to add to content of the articlepublic void addTextnl(String text)
addTextnl in interface ContentSetabletext - to add to content of the articlepublic void setMinorEdit(boolean minor)
setMinorEdit in interface ContentSetableminor - thepublic void setTitle(String title)
setTitle in interface ContentSetabletitle - the label, like "Main Page"public SimpleArticle getSimpleArticle()
Copyright © 2013. All Rights Reserved.