Class FAQ

java.lang.Object
  extended byFAQ

public class FAQ
extends java.lang.Object

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.

See Also:
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

INDICATOR

public static java.lang.String INDICATOR

TERMINATOR

public static java.lang.String TERMINATOR
Constructor Detail

FAQ

public FAQ()

FAQ

public FAQ(java.lang.String sText)
Method Detail

getLoadDuration

public long getLoadDuration()
return the number of milliseconds taken to load.


setTitle

public void setTitle(java.lang.String sTitle)

getTitle

public java.lang.String getTitle()

recognize

public static boolean recognize(java.lang.String sText)

loadData

public void loadData(java.lang.String sText)

isFAQ

public static boolean isFAQ(java.lang.String sText)
checks if this looks like an FAQ


isEmpty

public boolean isEmpty()
is there any data


countItems

public int countItems()
how many question and answers are there


countAnswers

public int countAnswers()
how many answers are there


toString

public java.lang.String toString()

printHtml

public java.lang.String printHtml()

printHtml

public java.lang.String printHtml(boolean bIncludeIndex)

printDocBook

public java.lang.String printDocBook()

printReport

public java.lang.String printReport()

print

public java.lang.String print()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
a main method for testing

Throws:
java.lang.Exception