public class Article extends Object implements Threadable<Article>
| Constructor and Description |
|---|
Article()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaderField(String name,
String val)
Deprecated.
|
void |
addReference(String msgId)
Adds a message-id to the list of messages that this message references (i.e.
|
String |
getArticleId()
Gets the article ID.
|
int |
getArticleNumber()
Deprecated.
|
long |
getArticleNumberLong()
Gets the article number.
|
Article |
getChild()
Gets the child article.
|
String |
getDate()
Gets the article date header.
|
String |
getFrom()
Gets the article from header.
|
Article |
getNext()
Gets the next article.
|
String[] |
getReferences()
Returns the MessageId references as an array of Strings
|
String |
getSubject()
Gets the article subject.
|
boolean |
isDummy()
Tests whether this is a dummy instance.
|
Article |
makeDummy()
Creates a dummy instance.
|
String |
messageThreadId()
Gets an ID.
|
String[] |
messageThreadReferences()
Gets reference strings.
|
static void |
printThread(Article article)
Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.
|
static void |
printThread(Article article,
int depth)
Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.
|
static void |
printThread(Article article,
int depth,
PrintStream ps)
Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.
|
static void |
printThread(Article article,
PrintStream ps)
Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out.
|
void |
setArticleId(String string)
Sets the article ID.
|
void |
setArticleNumber(int articleNumber)
Deprecated.
|
void |
setArticleNumber(long articleNumber)
Sets the article number.
|
void |
setChild(Article child)
Sets the child instance.
|
void |
setDate(String date)
Sets the article date header.
|
void |
setFrom(String from)
Sets the article from header.
|
void |
setNext(Article next)
Sets the next instance.
|
void |
setSubject(String subject)
Sets the article subject.
|
String |
simplifiedSubject()
Gets the simplified subject.
|
boolean |
subjectIsReply()
Tests whether this is a reply.
|
String |
toString() |
@Deprecated public void addHeaderField(String name, String val)
name - Ignored.val - Ignored.public void addReference(String msgId)
msgId - the message id to addpublic String getArticleId()
@Deprecated public int getArticleNumber()
public long getArticleNumberLong()
public Article getChild()
public String getDate()
public String getFrom()
public Article getNext()
public String[] getReferences()
public String getSubject()
public boolean isDummy()
ThreadableisDummy in interface Threadable<Article>public Article makeDummy()
ThreadablemakeDummy in interface Threadable<Article>public String messageThreadId()
ThreadablemessageThreadId in interface Threadable<Article>public String[] messageThreadReferences()
ThreadablemessageThreadReferences in interface Threadable<Article>public static void printThread(Article article)
article - the root of the article 'tree'public static void printThread(Article article, int depth)
article - the root of the article 'tree'depth - the current tree depthpublic static void printThread(Article article, int depth, PrintStream ps)
article - the root of the article 'tree'depth - the current tree depthps - the PrintStream to usepublic static void printThread(Article article, PrintStream ps)
article - the root of the article 'tree'ps - the PrintStream to usepublic void setArticleId(String string)
string - the article ID.@Deprecated public void setArticleNumber(int articleNumber)
articleNumber - the article number.public void setArticleNumber(long articleNumber)
articleNumber - the article number.public void setChild(Article child)
ThreadablesetChild in interface Threadable<Article>child - the child instance.public void setDate(String date)
date - the article date header.public void setFrom(String from)
from - the article from header.public void setNext(Article next)
ThreadablesetNext in interface Threadable<Article>next - the next instance.public void setSubject(String subject)
subject - the article subject.public String simplifiedSubject()
ThreadablesimplifiedSubject in interface Threadable<Article>public boolean subjectIsReply()
ThreadablesubjectIsReply in interface Threadable<Article>