Class FaqDocument

java.lang.Object
  extended byFaqDocument

public class FaqDocument
extends java.lang.Object

This type represents a document containing an FAQ or 'frequently asked questions' section although the questions and answers are usually written by a programmer. The document may also contain the listing of the contents of a directory or a 'webdirectory'. A webdirectory is all the links from some other web-page reproduces as a list in the current page. The faq section is indicated by [faq] and [/faq] tags

See Also:
LinkFolder, FAQ, FaqItem, Question, Answer

Constructor Summary
FaqDocument()
           
FaqDocument(java.lang.String sText)
           
 
Method Summary
 long getLoadDuration()
          return the number of milliseconds taken to load.
 boolean hasFAQ()
          is there an faq
static boolean isFaqDocument(java.lang.String sText)
          checks if this looks like an FaqDocument but no structure checks will be made now.
 void loadData(java.lang.String sText)
          parse the document and try to find the component objects in their text representation.
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 printReport()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaqDocument

public FaqDocument()

FaqDocument

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

getLoadDuration

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


loadData

public void loadData(java.lang.String sText)
parse the document and try to find the component objects in their text representation.


isFaqDocument

public static boolean isFaqDocument(java.lang.String sText)
checks if this looks like an FaqDocument but no structure checks will be made now.


hasFAQ

public boolean hasFAQ()
is there an faq


toString

public java.lang.String toString()

printHtml

public java.lang.String printHtml()

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