|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.meyling.principia.html.Module2Html
This class converts an module into an html file.
| Field Summary | |
private Module |
module
for converting a String into an
(Argument) |
private String |
moduleAddress
address of module to convert |
| Constructor Summary | |
Module2Html(String moduleAddress)
Constructor. |
|
| Method Summary | |
static String |
createRelativeAddress(String orgin,
String next)
Create relative address from orgin to next.
|
static String |
createRelativeHtmlAddress(String orgin,
String next)
Create relative html address from orgin to next. |
static String |
stripTags(String text)
Strip html tags out of text. |
static String |
toHtml(String text)
Escape certain control seqences: ", &. |
void |
writeFormula(Argument argument,
Output output)
Convert a Formula or its sub arguments into html. |
void |
writeModule()
Convert a Module (referenced by module address
in constructor) into html. |
private void |
writeParagraphList(ParagraphList paragraphs,
Output output)
Convert a ParagraphList into html. |
void |
writeProofLine(ProofLine line,
Output output,
String label)
Convert a ProofLine into html. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Module module
String into an
(Argument) private final String moduleAddress
| Constructor Detail |
public Module2Html(String moduleAddress)
moduleAddress - convert module at this address| Method Detail |
public final void writeModule()
throws ParsingException,
IOException
Module (referenced by module address
in constructor) into html.ParsingException - if any parsing error occursIOException - if any file problem occurs
private final void writeParagraphList(ParagraphList paragraphs,
Output output)
ParagraphList into html.paragraphs - convert thisoutput - destination for resulting html code
public final void writeProofLine(ProofLine line,
Output output,
String label)
ProofLine into html.line - convert thisoutput - destination for resulting html codelabel - for proof line references
public final void writeFormula(Argument argument,
Output output)
Formula or its sub arguments into html.argument - convert thisoutput - destination for resulting html codepublic static final String toHtml(String text)
text - excape this textpublic static final String stripTags(String text)
text - strip this text
public static final String createRelativeAddress(String orgin,
String next)
orgin to next.
// TODO: correct for complicated relative addresses...orgin - this is the original location (URL!)next - this should be the next location (URL!)
public static final String createRelativeHtmlAddress(String orgin,
String next)
orgin to next.orgin - this is the original location of the module(URL!)next - this should be the next location of a module(URL!)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||