|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.xom.MetaGenerator
public class MetaGenerator
MetaGenerator
is a utility class which reads a XOM Meta
Model description in XML and generates the corresponding .dtd and .java
definition files. MetaGenerator is invoked during the build process to help
generate files for the build.
Constructor Summary | |
---|---|
|
MetaGenerator(String xmlFile,
boolean testMode)
Construct a MetaGenerator from an XML file. |
protected |
MetaGenerator(String xmlFile,
boolean testMode,
String className)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaGenerator(String xmlFile, boolean testMode) throws XOMException, IOException
XOMException
IOException
xmlFile
- a filename for the xml description of the model to be
processed.protected MetaGenerator(String xmlFile, boolean testMode, String className) throws XOMException, IOException
XOMException
IOException
Method Detail |
---|
public org.eigenbase.xom.MetaGenerator.TypeInfo getTypeInfo(String name, boolean fail) throws XOMException
XOMException
- if the type has not been definedpublic void writeFiles(String outputDirName, String dtdFileName) throws XOMException, IOException
XOMException
IOException
outputDirName
- the output directory in which to generate the files.public void writeDtd(PrintWriter out) throws XOMException
XOMException
public void writeJava(PrintWriter out) throws XOMException
XOMException
public void writeJavaGetAttribute(PrintWriter out, MetaDef.Attribute attr) throws XOMException
XOMException
public void writeJavaDeclareAttribute(PrintWriter out, MetaDef.Attribute attr) throws XOMException
XOMException
public void writeJavaDisplayAttribute(PrintWriter out, MetaDef.Attribute attr) throws XOMException
XOMException
public void writeJavaDisplayXMLAttribute(PrintWriter out, MetaDef.Attribute attr) throws XOMException
XOMException
public void writeJavaDisplayDiffAttribute(PrintWriter out, int[] diffCount, MetaDef.Attribute attr) throws XOMException
XOMException
public void writeJavaGetContent(PrintWriter out, MetaDef.Content content) throws XOMException
XOMException
public void writeJavaGetAnyContent(PrintWriter out, boolean mixed)
public void writeJavaGetCDataContent(PrintWriter out)
public void writeJavaDeclareContent(PrintWriter out, MetaDef.Content content) throws XOMException
XOMException
public void writeJavaDeclareAnyContent(PrintWriter out, boolean mixed)
public void writeJavaDeclareCDataContent(PrintWriter out)
public void writeJavaDisplayContent(PrintWriter out, MetaDef.Content content) throws XOMException
XOMException
public void writeJavaDisplayAnyContent(PrintWriter out)
public void writeJavaDisplayCDataContent(PrintWriter out)
public void writeJavaDisplayXMLContent(PrintWriter out, MetaDef.Content content) throws XOMException
XOMException
public void writeJavaDisplayXMLAnyContent(PrintWriter out)
public void writeJavaDisplayXMLCDataContent(PrintWriter out)
public void writeJavaDisplayDiffContent(PrintWriter out, int[] diffCount, MetaDef.Content content) throws XOMException
XOMException
public void writeJavaDisplayDiffAnyContent(PrintWriter out, int[] diffCount)
public void writeJavaDisplayDiffCDataContent(PrintWriter out, int[] diffCount)
public void writeJavaDeclarePluginAttributes(PrintWriter out)
public void writeJavaDisplayPluginAttributes(PrintWriter out)
public void writeJavaDisplayXMLPluginAttributes(PrintWriter out)
public void writeJavaDisplayDiffPluginAttributes(PrintWriter out, int[] diffCount)
public void writeJavaGetPluginContent(PrintWriter out, boolean mixed)
public void writeJavaDeclarePluginContent(PrintWriter out, boolean mixed)
public void writeJavaDisplayPluginContent(PrintWriter out)
public void writeJavaDisplayXMLPluginContent(PrintWriter out)
public void writeJavaDisplayDiffPluginContent(PrintWriter out, int[] diffCount)
public void writeOutputs()
public static void main(String[] args)
public void debugDisplay()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |