public class SimpleArticle extends Object implements ArticleMeta, Serializable, Cloneable, ContentSetable
| Constructor and Description |
|---|
SimpleArticle() |
SimpleArticle(ArticleMeta sa) |
SimpleArticle(ContentAccessable ca) |
SimpleArticle(String title) |
SimpleArticle(String text,
String title)
Deprecated.
use
SimpleArticle(String) and setText(String) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(String text) |
void |
addTextnl(String text) |
Object |
clone() |
boolean |
equals(Object obj) |
String |
getEditor() |
String |
getEditSummary() |
Date |
getEditTimestamp() |
String |
getLabel()
Deprecated.
use
getTitle() instead |
String |
getRevisionId() |
String |
getText() |
String |
getTitle() |
int |
hashCode() |
boolean |
isMinorEdit() |
boolean |
isRedirect()
Deprecated.
see inheritDoc
|
void |
setEditor(String editor) |
void |
setEditSummary(String s) |
void |
setEditTimestamp(Date d) |
void |
setEditTimestamp(String editTimestamp) |
void |
setLabel(String label)
Deprecated.
use
setTitle(String) instead |
void |
setMinorEdit(boolean minor) |
void |
setRevisionId(String revId) |
void |
setText(String text) |
void |
setTitle(String title) |
public static final Date INIT_DATE
public SimpleArticle()
public SimpleArticle(ContentAccessable ca)
public SimpleArticle(ArticleMeta sa)
@Deprecated public SimpleArticle(String text, String title)
text - of articletitle - of articlepublic SimpleArticle(String title)
title - of articlepublic final Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getEditSummary()
getEditSummary in interface ContentAccessablepublic void setEditSummary(String s)
setEditSummary in interface ContentSetables - thepublic boolean isMinorEdit()
isMinorEdit in interface ContentAccessablepublic void setMinorEdit(boolean minor)
setMinorEdit in interface ContentSetableminor - the@Deprecated public String getLabel()
getTitle() insteadpublic String getTitle()
getTitle in interface ContentAccessable@Deprecated public void setLabel(String label)
setTitle(String) insteadlabel - the label, like "Main Page"public void setTitle(String title)
setTitle in interface ContentSetabletitle - the label, like "Main Page"public String getText()
getText in interface ContentAccessablepublic void setText(String text)
setText in interface ContentSetabletext - the content of the articlepublic 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 String getEditor()
getEditor in interface ContentAccessablepublic void setEditor(String editor)
setEditor in interface ContentSetableeditor - the@Deprecated public boolean isRedirect()
isRedirect in interface ArticleMetapublic Date getEditTimestamp()
getEditTimestamp in interface ArticleMetapublic void setEditTimestamp(String editTimestamp) throws ParseException
editTimestamp - setParseException - if date unparseablepublic void setEditTimestamp(Date d)
d - thepublic String getRevisionId()
getRevisionId in interface ArticleMetapublic void setRevisionId(String revId)
revId - theCopyright © 2013. All Rights Reserved.