|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mcdermottroe.exemplar.output.XMLParserGenerator<T>
com.mcdermottroe.exemplar.output.XMLParserSourceGenerator<Generator>
com.mcdermottroe.exemplar.output.xslt.Generator
public class Generator
A class which generates skeleton XSLT for this XML vocabulary.
| Field Summary |
|---|
| Fields inherited from class com.mcdermottroe.exemplar.output.XMLParserSourceGenerator |
|---|
codeFragments, timestamp |
| Constructor Summary | |
|---|---|
|
Generator()
Override the default constructor to add throws clause. |
protected |
Generator(Map<String,String> code,
String time)
Copy constructor, see XMLParserSourceGenerator.XMLParserSourceGenerator(Map, String) for
details. |
| Method Summary | |
|---|---|
String |
describeAPI()
Describe the API that the generated code implements/conforms to. |
String |
describeLanguage()
Describe the language that this generator outputs in. |
void |
generateParser(XMLDocumentType doctype,
File targetDirectory)
Generates the XSLT and places it in the given file. |
Generator |
getCopy()
Creates a deep copy of the current object and returns it. |
| Methods inherited from class com.mcdermottroe.exemplar.output.XMLParserSourceGenerator |
|---|
compareTo, create, getCodeFragments, getSourceDirectory, getTimestamp, loadCodeFragment |
| Methods inherited from class com.mcdermottroe.exemplar.output.XMLParserGenerator |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Generator()
throws XMLParserGeneratorException
XMLParserGeneratorException - if the superclass constructor throws
it.
protected Generator(Map<String,String> code,
String time)
XMLParserSourceGenerator.XMLParserSourceGenerator(Map, String) for
details.
code - The code fragments.time - The timestamp.| Method Detail |
|---|
public void generateParser(XMLDocumentType doctype,
File targetDirectory)
throws XMLParserGeneratorException
generateParser in class XMLParserSourceGenerator<Generator>doctype - The description of the vocabulary
of XML to generate a parser for.targetDirectory - The directory in which to place the
generated source.
XMLParserGeneratorException - if the code fragments cannot be
loaded from the backing store, or
if the output file cannot be
written to.public String describeLanguage()
describeLanguage in class XMLParserGenerator<Generator>String that can be used in help messages and in
documentation to describe the language that this generator
outputs.public String describeAPI()
describeAPI in class XMLParserGenerator<Generator>String that can be used in help messages and in
documentation to describe the API that the generated code
implements.
public Generator getCopy()
throws CopyException
CopyException - if the copying encountered an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||