public class Article extends Object implements Threadable
| Constructor and Description |
|---|
Article() |
| 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() |
int |
getArticleNumber()
Deprecated.
|
long |
getArticleNumberLong() |
String |
getDate() |
String |
getFrom() |
String[] |
getReferences()
Returns the MessageId references as an array of Strings
|
String |
getSubject() |
boolean |
isDummy() |
Threadable |
makeDummy() |
String |
messageThreadId() |
String[] |
messageThreadReferences() |
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) |
void |
setArticleNumber(int a)
Deprecated.
|
void |
setArticleNumber(long l) |
void |
setChild(Threadable child) |
void |
setDate(String string) |
void |
setFrom(String string) |
void |
setNext(Threadable next) |
void |
setSubject(String string) |
String |
simplifiedSubject() |
boolean |
subjectIsReply() |
String |
toString() |
public Article()
public void addReference(String msgId)
msgId - the message id to addpublic String[] getReferences()
public static void printThread(Article article)
article - the root of the article 'tree'public static void printThread(Article article, PrintStream ps)
article - the root of the article 'tree'ps - the PrintStream to usepublic 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 String getArticleId()
public long getArticleNumberLong()
public String getSubject()
public void setArticleId(String string)
public void setArticleNumber(long l)
public void setSubject(String string)
public boolean isDummy()
isDummy in interface Threadablepublic String messageThreadId()
messageThreadId in interface Threadablepublic String[] messageThreadReferences()
messageThreadReferences in interface Threadablepublic String simplifiedSubject()
simplifiedSubject in interface Threadablepublic boolean subjectIsReply()
subjectIsReply in interface Threadablepublic void setChild(Threadable child)
setChild in interface Threadablepublic void setNext(Threadable next)
setNext in interface Threadablepublic Threadable makeDummy()
makeDummy in interface Threadable@Deprecated public int getArticleNumber()
@Deprecated public void setArticleNumber(int a)
@Deprecated public void addHeaderField(String name, String val)
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.