|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.virgil.help.FAQ
public class FAQ
The purpose of this class is to represent the Scheherazade FAQ data structure. This structure consists of an ID (name), a question, and an answer.
Field Summary | |
---|---|
static java.lang.String |
ANSWER
|
static java.lang.String |
F_ID
|
static java.lang.String |
QUESTION
|
Constructor Summary | |
---|---|
FAQ(org.w3c.dom.Node node)
Constructor for creation of an FAQ object from a node |
|
FAQ(java.lang.String ID,
java.lang.String question,
java.lang.String answer)
Constructor for explicit creation of an FAQ object |
Method Summary | |
---|---|
java.lang.String |
getAnswer()
Returns the ANSWER of the FAQ |
java.lang.String |
getID()
Returns the ID of the FAQ |
java.lang.String |
getQuestion()
Returns the QUESTION of the FAQ |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String F_ID
public static final java.lang.String QUESTION
public static final java.lang.String ANSWER
Constructor Detail |
---|
public FAQ(java.lang.String ID, java.lang.String question, java.lang.String answer)
ID
- the ID of the FAQquestion
- the question of the FAQanswer
- the answer to the questionpublic FAQ(org.w3c.dom.Node node) throws java.lang.Exception
node
- an FAQ represented as a Node data structure that has children
in the form of a Question and an Answer
java.lang.Exception
Method Detail |
---|
public java.lang.String getID()
public java.lang.String getQuestion()
public java.lang.String getAnswer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |