com.ondelette.servlet.webannonces
Class Annonce

java.lang.Object
  |
  +--com.ondelette.servlet.webannonces.Annonce

public class Annonce
extends java.lang.Object

Object modelling an "annonce" (classified ad in French)


Constructor Summary
Annonce(java.lang.String Title, java.lang.String Author, java.lang.String Email, java.lang.String PhoneNumber, java.lang.String Address, java.lang.String Message, java.lang.String URL)
          Constructor for the Annonce object
 
Method Summary
 java.lang.String getAddress()
          Gets the address attribute of the Annonce object
 java.lang.String getAuthor()
          Gets the author attribute of the Annonce object
 java.lang.String getContent()
          Gets the content attribute of the Annonce object
 java.util.Date getDate()
          Gets the date attribute of the Annonce object
 java.lang.String getEmail()
          Gets the email attribute of the Annonce object
 int getID()
          Gets the iD attribute of the Annonce object
 java.lang.String getPhoneNumber()
          Gets the phoneNumber attribute of the Annonce object
 java.lang.String getTitle()
          Gets the title attribute of the Annonce object
 java.lang.String getURL()
          Gets the uRL attribute of the Annonce object
static Annonce read(java.io.InputStream in)
          Reads an "Annonce" from a file
 void setID(int id)
          Sets the iD attribute of the Annonce object
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annonce

public Annonce(java.lang.String Title,
               java.lang.String Author,
               java.lang.String Email,
               java.lang.String PhoneNumber,
               java.lang.String Address,
               java.lang.String Message,
               java.lang.String URL)
Constructor for the Annonce object

Parameters:
Title -
Author -
Email -
PhoneNumber -
Address -
Message -
URL -
Since:
Method Detail

read

public static Annonce read(java.io.InputStream in)
                    throws java.io.IOException
Reads an "Annonce" from a file

Parameters:
in -
Returns:
the Annonce read
Throws:
java.io.IOException - if couldn't read the Annonce
Since:
0.30

setID

public void setID(int id)
Sets the iD attribute of the Annonce object

Parameters:
id - The new iD value
Since:
0.30

getContent

public java.lang.String getContent()
Gets the content attribute of the Annonce object

Returns:
The content value
Since:
0.30

getTitle

public java.lang.String getTitle()
Gets the title attribute of the Annonce object

Returns:
The title value
Since:
0.30

getAuthor

public java.lang.String getAuthor()
Gets the author attribute of the Annonce object

Returns:
The author value
Since:
0.30

getEmail

public java.lang.String getEmail()
Gets the email attribute of the Annonce object

Returns:
The email value
Since:
0.30

getPhoneNumber

public java.lang.String getPhoneNumber()
Gets the phoneNumber attribute of the Annonce object

Returns:
The phoneNumber value
Since:
0.30

getAddress

public java.lang.String getAddress()
Gets the address attribute of the Annonce object

Returns:
The address value
Since:
0.30

getDate

public java.util.Date getDate()
Gets the date attribute of the Annonce object

Returns:
The date value
Since:
0.30

getID

public int getID()
Gets the iD attribute of the Annonce object

Returns:
The iD value
Since:
0.30

getURL

public java.lang.String getURL()
Gets the uRL attribute of the Annonce object

Returns:
The uRL value
Since:
0.30

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Parameters:
out -
Throws:
java.io.IOException
Since:
0.30