|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.user.BookData
public final class BookData
Encapsulates a users responses to all questions in a book.
Book
,
ChapterData
,
QuestionData
Constructor Summary | |
---|---|
BookData()
Creates a new BookData entitled "Untitled". |
|
BookData(String title)
Creates a new BookData with the given title |
Method Summary | |
---|---|
void |
addChapter(ChapterData chap)
Adds the given ChapterData to this book, keyed on ChapterData.getTitle(). |
ChapterData |
getChapter(String chapterName)
Returns the named ChapterData, or null if it doesn't exist. |
QuestionData |
getQuestionData(String chapterName,
String questionID)
Returns the named ChapterData, or null if it doesn't exist. |
String |
getTitle()
Returns the Book's title. |
void |
setLast(String date)
Deprecated. |
void |
setTitle(String title)
Sets the Book's title. |
void |
toXML(Writer writer)
Dumps the BookData in XML format to the given writer. |
void |
validate(AbstractBook book)
Describe validate method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BookData(String title)
title
- a String
valuepublic BookData()
Method Detail |
---|
public String getTitle()
String
valuepublic void setTitle(String title)
title
- a String
valuepublic ChapterData getChapter(String chapterName)
chapterName
- a String
value
ChapterData
valuepublic QuestionData getQuestionData(String chapterName, String questionID)
chapterName
- a String
valuequestionID
- a String
value
QuestionData
valuepublic void addChapter(ChapterData chap)
c
- a ChapterData
value@Deprecated public void setLast(String date)
t
- a String
valuepublic void validate(AbstractBook book)
validate
method here.
book
- an AbstractBook
valuepublic void toXML(Writer writer) throws IOException
writer
- a java.io.Writer
value
IOException
- if an error occurs
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |