|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdoc.com.mcdermottroe.exemplar.manual.CreateManual
public class CreateManual
Creates the manual for Exemplar from the skeleton, human-readable(ish) DocBook sources. The majority of the content in the manual is generated from here. This class actually generates an XSLT stylesheet which transforms the non-generated sources into the final DocBook sources which are then transformed by yet more XSLT into the man(1) and XHTML formats.
| Nested Class Summary | |
|---|---|
private static class |
CreateManual.CreateManualException
The "error handling" in this mini-program is done by throwing one of these. |
| Constructor Summary | |
|---|---|
private |
CreateManual()
Prevent this class from being instantiated. |
| Method Summary | |
|---|---|
private static String |
cmdsynopsisXSLT()
Create the synopsis section of the manual. |
private static String |
dateXSLT()
Create the date section of the manual. |
private static String |
escapeBasicXMLStuff(String unescaped)
Escape characters that could cause trouble in XML, the characters escaped are ampersand, less-than and greater-than characters. |
private static String |
exitcodesXSLT()
Describe all of the exit codes used by the program. |
static void |
main(String[] args)
Create the manual. |
private static String |
messagesXSLT()
Describe all of the messages that can be output by the program. |
private static String |
optionsdescriptionXSLT()
Create the detailed description of every option that the program accepts. |
private static String |
refmiscinfoXSLT()
Create the refmiscinfo section of the manual. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private CreateManual()
| Method Detail |
|---|
public static void main(String[] args)
args - It's a main(), here are the args.private static String dateXSLT()
String containing XSLT to transform the element with
the id "date" into a valid date section.private static String refmiscinfoXSLT()
String containing XSLT to transform the element with
the id "refmiscinfo" into a valid refmiscinfo
section.private static String cmdsynopsisXSLT()
String containing XSLT to transform the element with
the id "cmdsynopsis" into the DocBook XML form of the
synopsis line in the manual.
private static String optionsdescriptionXSLT()
throws ParseException
String containing the XSLT to
transform the element with the id
"optionsdescription" into the
detailed description of every option that the
program accepts.
ParseException - if any malformed XML references have been found.private static String exitcodesXSLT()
String containing the XSLT to transform the element
with the id "exitcodes" into the description of the
exit codes used by the program.private static String messagesXSLT()
String containing the XSLT to transform the element
with the id "messages" into the description of the
messages that.private static String escapeBasicXMLStuff(String unescaped)
unescaped - The String to be escaped.
String unescaped with all
ampersand, less-than and greater-than characters
escaped to their XML entity forms.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||