Class Question

java.lang.Object
  extended byQuestion

public class Question
extends java.lang.Object

This type represents a question from an faq style chunk of text. The question does not include the answer


Field Summary
static java.lang.String INDICATOR
           
static java.lang.String TERMINATOR
           
 
Constructor Summary
Question()
           
Question(java.lang.String sText)
          construct with some text
 
Method Summary
 java.lang.String getContents()
           
static boolean isQuestion(java.lang.String sText)
          checks if this looks like a Question
 void loadData(java.lang.String sText)
          load data from text
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 printIndexedHtml(int iIndex)
           
 java.lang.String printReport()
           
 void setContents(java.lang.String sContents)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TERMINATOR

public static java.lang.String TERMINATOR

INDICATOR

public static java.lang.String INDICATOR
Constructor Detail

Question

public Question()

Question

public Question(java.lang.String sText)
construct with some text

Method Detail

loadData

public void loadData(java.lang.String sText)
load data from text


getContents

public java.lang.String getContents()

setContents

public void setContents(java.lang.String sContents)

isQuestion

public static boolean isQuestion(java.lang.String sText)
checks if this looks like a Question


toString

public java.lang.String toString()

printReport

public java.lang.String printReport()

printHtml

public java.lang.String printHtml()

printIndexedHtml

public java.lang.String printIndexedHtml(int iIndex)

printDocBook

public java.lang.String printDocBook()

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