|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MTestElement
This interface describes anything that might be included on a math test. Questions are MTestElements, obviously, but most tests also contain such things as titles, class name/number, section number, etc. This interface makes provision for all of that, or for anything else that a test might need. Four formatting methods are specified plus XML: three for the MTestElement's internal format and one that accepts a String parameter. The 'internal format' methods make no assumptions about the internal formulas, merely that they exist.
Method Summary | |
---|---|
MTestElement |
copyOf()
This method is used in adding elements to a MTest . |
java.lang.String |
format()
Format MTestElement content. |
java.lang.String |
format(java.lang.String pFormat)
Format MTestElement content according to the format specified. |
java.lang.String |
formatAnswer()
Format the Answer content according to the internal Answer format. |
java.lang.String |
formatProblem()
Format MTestElement Problems according to their internal Problem format. |
java.lang.String |
toXML()
Output the MTestElement as XML of some description. |
Method Detail |
---|
java.lang.String format()
java.lang.String format(java.lang.String pFormat)
java.lang.String formatProblem()
java.lang.String formatAnswer()
java.lang.String toXML()
MTestElement copyOf()
MTest
. This is done so that changes to the original object do not affect elements already added.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |