|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ondelette.servlet.webannonces.Annonce
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 |
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)
Title
- Author
- Email
- PhoneNumber
- Address
- Message
- URL
- Method Detail |
public static Annonce read(java.io.InputStream in) throws java.io.IOException
in
-
java.io.IOException
- if couldn't read the Annoncepublic void setID(int id)
id
- The new iD valuepublic java.lang.String getContent()
public java.lang.String getTitle()
public java.lang.String getAuthor()
public java.lang.String getEmail()
public java.lang.String getPhoneNumber()
public java.lang.String getAddress()
public java.util.Date getDate()
public int getID()
public java.lang.String getURL()
public void write(java.io.OutputStream out) throws java.io.IOException
out
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |