|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.cobble.XMLGenerator
public final class XMLGenerator
Generates the documentation from code comments in XML-based languages (XSLT, Schematron)
Constructor Summary | |
---|---|
XMLGenerator(File code)
Sole constructor. |
Method Summary | |
---|---|
void |
generate(File target)
Generates the documentation to the specified file. |
void |
generate(OutputStream out)
Generates the documentation onto an output stream. |
void |
generate(Result result)
Generates the documentation. |
void |
generate(Writer out)
Generates the documentation onto a writer. |
void |
generateSilent(File target)
Generates the documentation to the specified file swallowing any occurring exception. |
void |
generateSilent(OutputStream out)
Generates the documentation onto an output stream swallowing any occurring exception. |
void |
generateSilent(Writer out)
Generates the documentation onto a writer swallowing any occurring exception. |
void |
includeXMLDeclaration(boolean yes)
|
static boolean |
isSupported(String path)
Indicates whether documentation can be generated from the code denoted by the given file path. |
void |
setEncoding(String encoding)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLGenerator(File code)
code
- The file to the code to document.Method Detail |
---|
public void setEncoding(String encoding)
encoding
- the character encoding of the output XML.public void includeXMLDeclaration(boolean yes)
yes
- true
to include the XML declaration in the output
false
otherwise.public void generate(Result result) throws CobbleException
result
- Where the results go.
CobbleException
public void generate(OutputStream out) throws CobbleException
out
- The output where the documentation should be generated.
CobbleException
public void generate(Writer out) throws CobbleException
out
- The writer where the documentation should be generated.
CobbleException
- Wraps any transform or I/O exception.public void generate(File target) throws CobbleException
target
- The target file where the XML documentation should go.
CobbleException
- Wraps any transform or I/O exception.public void generateSilent(OutputStream out)
out
- The output where the documentation should be generated.public void generateSilent(Writer out)
out
- The writer where the documentation should be generated.
CobbleException
- Wraps any transform or I/O exception.public void generateSilent(File target)
target
- The target file where the XML documentation should go.public static final boolean isSupported(String path)
path
- The path within the model to the file containing the code to document.
true
is the file extension is ".xsl", ".xslt" or ".sch";
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |