FileDocCategorySizeDatePackage
NewsArticle.javaAPI DocExample1514Sat Dec 02 19:43:56 GMT 2000jabadot

NewsArticle

public class NewsArticle extends Object
One article to/from the Articles database

Fields Summary
String
fileName
the filename
String
from
the sender
String
subject
the subject (DOH!)
String
date
Date of submission
String
theURL
Optional URL
String
message
The message body
Constructors Summary
Methods Summary
public booleancontains(java.lang.String s)

		return
			subject.indexOf(s) != -1 ||
			message.indexOf(s) != -1;
	
public java.lang.StringgetDate()
Get Date

		return date;
	
public java.lang.StringgetFilename()
Get Filename (aka title)

		return fileName;
	
public java.lang.StringgetFrom()
Get From

		return from;
	
public java.lang.StringgetMessage()
Get Message

		return message;
	
public java.lang.StringgetSubject()
Get Subject

		return subject;
	
public java.lang.StringgetURL()
Get URL

		return theURL;
	
public voidsetDate(java.lang.String date)
Set Date

		this.date = date;
	
public voidsetFileName(java.lang.String fileName)
Set Filename

		this.fileName = fileName;
	
public voidsetFrom(java.lang.String from)
Set From

		this.from = from;
	
public voidsetMessage(java.lang.String message)
Set Message

		this.message = message;
	
public voidsetSubject(java.lang.String subject)
Set Subject

		this.subject = subject;
	
public voidsetURL(java.lang.String aURL)
Set URL

		this.theURL = aURL;
	
public java.lang.StringtoString()

		return new StringBuffer("NewsArticle[").append(from).append('/").append(subject).append(']").toString();