|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FAQ
This type represents a chunk of text containing a question and answer section, known as an faq. The text is not 'marked up' particularly, or at least only in a minimalistic way.
FaqItem, Question, Answer
Field Summary | |
static java.lang.String |
INDICATOR
|
static java.lang.String |
TERMINATOR
|
Constructor Summary | |
FAQ()
|
|
FAQ(java.lang.String sText)
|
Method Summary | |
int |
countAnswers()
how many answers are there |
int |
countItems()
how many question and answers are there |
long |
getLoadDuration()
return the number of milliseconds taken to load. |
java.lang.String |
getTitle()
|
boolean |
isEmpty()
is there any data |
static boolean |
isFAQ(java.lang.String sText)
checks if this looks like an FAQ |
void |
loadData(java.lang.String sText)
|
static void |
main(java.lang.String[] args)
a main method for testing |
java.lang.String |
print()
|
java.lang.String |
printDocBook()
|
java.lang.String |
printHtml()
|
java.lang.String |
printHtml(boolean bIncludeIndex)
|
java.lang.String |
printReport()
|
static boolean |
recognize(java.lang.String sText)
|
void |
setTitle(java.lang.String sTitle)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String INDICATOR
public static java.lang.String TERMINATOR
Constructor Detail |
public FAQ()
public FAQ(java.lang.String sText)
Method Detail |
public long getLoadDuration()
public void setTitle(java.lang.String sTitle)
public java.lang.String getTitle()
public static boolean recognize(java.lang.String sText)
public void loadData(java.lang.String sText)
public static boolean isFAQ(java.lang.String sText)
public boolean isEmpty()
public int countItems()
public int countAnswers()
public java.lang.String toString()
public java.lang.String printHtml()
public java.lang.String printHtml(boolean bIncludeIndex)
public java.lang.String printDocBook()
public java.lang.String printReport()
public java.lang.String print()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |