<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Sat Dec 04 05:26:47 UTC 2010 --> <TITLE> Generator </TITLE> <META NAME="date" CONTENT="2010-12-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Generator"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../../org/apache/ws/jaxme/generator/Main.html" title="class in org.apache.ws.jaxme.generator"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/ws/jaxme/generator/Generator.html" target="_top"><B>FRAMES</B></A> <A HREF="Generator.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> org.apache.ws.jaxme.generator</FONT> <BR> Interface Generator</H2> <DL> <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html" title="interface in org.apache.ws.jaxme.generator">PropertySource</A></DD> </DL> <DL> <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/ws/jaxme/generator/impl/GeneratorImpl.html" title="class in org.apache.ws.jaxme.generator.impl">GeneratorImpl</A></DD> </DL> <HR> <DL> <DT><PRE>public interface <B>Generator</B><DT>extends <A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html" title="interface in org.apache.ws.jaxme.generator">PropertySource</A></DL> </PRE> <P> <p>The Generator is a frontend for working with the SchemaReaders, SourceWriters and whatever else.</p> <p> <strong>Usage:</strong> Generates java source definitions from various inputs: </p> <ul> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(java.net.URL)"><CODE>generate(java.net.URL)</CODE></A></li> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(java.io.File)"><CODE>generate(java.io.File)</CODE></A></li> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(org.xml.sax.InputSource)"><CODE>generate(org.xml.sax.InputSource)</CODE></A></li> </ul> <p> The inputs are interpreted into schema definitions by the <A HREF="../../../../../org/apache/ws/jaxme/generator/SchemaReader.html" title="interface in org.apache.ws.jaxme.generator"><CODE>SchemaReader</CODE></A> set by calling <A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setSchemaReader(org.apache.ws.jaxme.generator.SchemaReader)"><CODE>setSchemaReader(org.apache.ws.jaxme.generator.SchemaReader)</CODE></A>. </p> <p> Other properties give fine grained control over various aspects of the file generation: </p> <ul> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setForcingOverwrite(boolean)"><CODE>setForcingOverwrite(boolean)</CODE></A></li> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setSettingReadOnly(boolean)"><CODE>setSettingReadOnly(boolean)</CODE></A></li> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setTargetDirectory(java.io.File)"><CODE>setTargetDirectory(java.io.File)</CODE></A></li> </ul> <p> and the processing of the schema: </p> <ul> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setValidating(boolean)"><CODE>setValidating(boolean)</CODE></A></li> </li><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setEntityResolver(org.xml.sax.EntityResolver)"><CODE>setEntityResolver(org.xml.sax.EntityResolver)</CODE></A>)</li> </ul> </p> <p><em>Implementation note</em>: If you update this interface, you should consider updating the following files and classes as well: <ul> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/Main.html" title="class in org.apache.ws.jaxme.generator"><CODE>Main</CODE></A></li> <li><A HREF="../../../../../org/apache/ws/jaxme/generator/XJCTask.html" title="class in org.apache.ws.jaxme.generator"><CODE>XJCTask</CODE></A></li> <li>docs/Reference.html</li> </ul></p> <P> <P> <DL> <DT><B>Version:</B></DT> <DD>$Id: Generator.java 358956 2005-12-25 00:43:38Z jochen $</DD> <DT><B>Author:</B></DT> <DD><a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a></DD> </DL> <HR> <P> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#addBindings(org.xml.sax.InputSource)">addBindings</A></B>(org.xml.sax.InputSource pSource)</CODE> <BR> Sets the external schema bindings.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(java.io.File)">generate</A></B>(java.io.File pFile)</CODE> <BR> Generates java source from the given <code>File</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(org.xml.sax.InputSource)">generate</A></B>(org.xml.sax.InputSource pSource)</CODE> <BR> Generates java source from the given <code>URL</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#generate(java.net.URL)">generate</A></B>(java.net.URL pURL)</CODE> <BR> Generates java source from the given <code>URL</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> org.w3c.dom.Document[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getBindings()">getBindings</A></B>()</CODE> <BR> Returns the external schema bindings, if any, or null.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> org.xml.sax.EntityResolver</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getEntityResolver()">getEntityResolver</A></B>()</CODE> <BR> Returns the <CODE>EntityResolver</CODE> being used to import external schemata.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getKey()">getKey</A></B>()</CODE> <BR> Returns a key for getting and setting custom data.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.io.File</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getResourceTargetDirectory()">getResourceTargetDirectory</A></B>()</CODE> <BR> Sets the directory where resource files are being created.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/generator/SchemaReader.html" title="interface in org.apache.ws.jaxme.generator">SchemaReader</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getSchemaReader()">getSchemaReader</A></B>()</CODE> <BR> Returns the SchemaReader being used.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.io.File</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#getTargetDirectory()">getTargetDirectory</A></B>()</CODE> <BR> Returns the directory where Java source files are being created.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#isForcingOverwrite()">isForcingOverwrite</A></B>()</CODE> <BR> Returns whether the generator is forcing an overwrite of files.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#isSettingReadOnly()">isSettingReadOnly</A></B>()</CODE> <BR> Returns whether the generator will create files in read-only mode.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#isValidating()">isValidating</A></B>()</CODE> <BR> Returns whether the generator is using a validating XML schema parser.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setEntityResolver(org.xml.sax.EntityResolver)">setEntityResolver</A></B>(org.xml.sax.EntityResolver pEntityResolver)</CODE> <BR> Sets the <CODE>EntityResolver</CODE> being used to import external schemata.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setForcingOverwrite(boolean)">setForcingOverwrite</A></B>(boolean pIsForcingOverwrite)</CODE> <BR> Sets whether the generator is forcing an overwrite of files.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setResourceTargetDirectory(java.io.File)">setResourceTargetDirectory</A></B>(java.io.File pDirectory)</CODE> <BR> Sets the directory where resource files are being created.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setSchemaReader(org.apache.ws.jaxme.generator.SchemaReader)">setSchemaReader</A></B>(<A HREF="../../../../../org/apache/ws/jaxme/generator/SchemaReader.html" title="interface in org.apache.ws.jaxme.generator">SchemaReader</A> pSchemaReader)</CODE> <BR> Sets the SchemaReader to use.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setSettingReadOnly(boolean)">setSettingReadOnly</A></B>(boolean pIsSettingReadOnly)</CODE> <BR> Sets whether the generator will create files in read-only mode.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setTargetDirectory(java.io.File)">setTargetDirectory</A></B>(java.io.File pDirectory)</CODE> <BR> Sets the directory where Java source files are being created.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/generator/Generator.html#setValidating(boolean)">setValidating</A></B>(boolean pValidating)</CODE> <BR> Sets whether the generator is using a validating XML schema parser.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.apache.ws.jaxme.generator.PropertySource"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface org.apache.ws.jaxme.generator.<A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html" title="interface in org.apache.ws.jaxme.generator">PropertySource</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html#getProperty(java.lang.String)">getProperty</A>, <A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html#getProperty(java.lang.String, java.lang.String)">getProperty</A>, <A HREF="../../../../../org/apache/ws/jaxme/generator/PropertySource.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="setSchemaReader(org.apache.ws.jaxme.generator.SchemaReader)"><!-- --></A><H3> setSchemaReader</H3> <PRE> void <B>setSchemaReader</B>(<A HREF="../../../../../org/apache/ws/jaxme/generator/SchemaReader.html" title="interface in org.apache.ws.jaxme.generator">SchemaReader</A> pSchemaReader)</PRE> <DL> <DD><p>Sets the SchemaReader to use.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSchemaReader()"><!-- --></A><H3> getSchemaReader</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/generator/SchemaReader.html" title="interface in org.apache.ws.jaxme.generator">SchemaReader</A> <B>getSchemaReader</B>()</PRE> <DL> <DD><p>Returns the SchemaReader being used.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setTargetDirectory(java.io.File)"><!-- --></A><H3> setTargetDirectory</H3> <PRE> void <B>setTargetDirectory</B>(java.io.File pDirectory)</PRE> <DL> <DD>Sets the directory where Java source files are being created. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getTargetDirectory()"><!-- --></A><H3> getTargetDirectory</H3> <PRE> java.io.File <B>getTargetDirectory</B>()</PRE> <DL> <DD>Returns the directory where Java source files are being created. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setResourceTargetDirectory(java.io.File)"><!-- --></A><H3> setResourceTargetDirectory</H3> <PRE> void <B>setResourceTargetDirectory</B>(java.io.File pDirectory)</PRE> <DL> <DD>Sets the directory where resource files are being created. By default, this is the Java source directory. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getResourceTargetDirectory()"><!-- --></A><H3> getResourceTargetDirectory</H3> <PRE> java.io.File <B>getResourceTargetDirectory</B>()</PRE> <DL> <DD>Sets the directory where resource files are being created. By default, this is the Java source directory. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setValidating(boolean)"><!-- --></A><H3> setValidating</H3> <PRE> void <B>setValidating</B>(boolean pValidating)</PRE> <DL> <DD><p>Sets whether the generator is using a validating XML schema parser. Defaults to false.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isValidating()"><!-- --></A><H3> isValidating</H3> <PRE> boolean <B>isValidating</B>()</PRE> <DL> <DD><p>Returns whether the generator is using a validating XML schema parser. Defaults to false.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isForcingOverwrite()"><!-- --></A><H3> isForcingOverwrite</H3> <PRE> boolean <B>isForcingOverwrite</B>()</PRE> <DL> <DD><p>Returns whether the generator is forcing an overwrite of files.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setForcingOverwrite(boolean)"><!-- --></A><H3> setForcingOverwrite</H3> <PRE> void <B>setForcingOverwrite</B>(boolean pIsForcingOverwrite)</PRE> <DL> <DD><p>Sets whether the generator is forcing an overwrite of files.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isSettingReadOnly()"><!-- --></A><H3> isSettingReadOnly</H3> <PRE> boolean <B>isSettingReadOnly</B>()</PRE> <DL> <DD><p>Returns whether the generator will create files in read-only mode.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSettingReadOnly(boolean)"><!-- --></A><H3> setSettingReadOnly</H3> <PRE> void <B>setSettingReadOnly</B>(boolean pIsSettingReadOnly)</PRE> <DL> <DD><p>Sets whether the generator will create files in read-only mode.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="generate(java.io.File)"><!-- --></A><H3> generate</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A> <B>generate</B>(java.io.File pFile) throws java.lang.Exception</PRE> <DL> <DD><p> Generates java source from the given <code>File</code>. </p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pFile</CODE> - reads the schema (from which the source is to be generated) from the given file. <DT><B>Returns:</B><DD><code>SchemaSG</code> describing the source generated <DT><B>Throws:</B> <DD><CODE>java.lang.Exception</CODE></DL> </DD> </DL> <HR> <A NAME="generate(java.net.URL)"><!-- --></A><H3> generate</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A> <B>generate</B>(java.net.URL pURL) throws java.lang.Exception</PRE> <DL> <DD><p> Generates java source from the given <code>URL</code>. </p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pURL</CODE> - reads the schema (from which the source is to be generated) from the given URL. <DT><B>Returns:</B><DD><code>SchemaSG</code> describing the source generated <DT><B>Throws:</B> <DD><CODE>java.lang.Exception</CODE></DL> </DD> </DL> <HR> <A NAME="generate(org.xml.sax.InputSource)"><!-- --></A><H3> generate</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/generator/sg/SchemaSG.html" title="interface in org.apache.ws.jaxme.generator.sg">SchemaSG</A> <B>generate</B>(org.xml.sax.InputSource pSource) throws java.lang.Exception</PRE> <DL> <DD><p> Generates java source from the given <code>URL</code>. </p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pSource</CODE> - reads the schema (from which the source is to be generated) from the SAX Input Source. The System ID should be (if possible) set. <DT><B>Returns:</B><DD><code>SchemaSG</code> describing the source generated <DT><B>Throws:</B> <DD><CODE>java.lang.Exception</CODE></DL> </DD> </DL> <HR> <A NAME="getKey()"><!-- --></A><H3> getKey</H3> <PRE> java.lang.String <B>getKey</B>()</PRE> <DL> <DD><p>Returns a key for getting and setting custom data.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setEntityResolver(org.xml.sax.EntityResolver)"><!-- --></A><H3> setEntityResolver</H3> <PRE> void <B>setEntityResolver</B>(org.xml.sax.EntityResolver pEntityResolver)</PRE> <DL> <DD><p>Sets the <CODE>EntityResolver</CODE> being used to import external schemata.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getEntityResolver()"><!-- --></A><H3> getEntityResolver</H3> <PRE> org.xml.sax.EntityResolver <B>getEntityResolver</B>()</PRE> <DL> <DD><p>Returns the <CODE>EntityResolver</CODE> being used to import external schemata.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="addBindings(org.xml.sax.InputSource)"><!-- --></A><H3> addBindings</H3> <PRE> void <B>addBindings</B>(org.xml.sax.InputSource pSource) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException</PRE> <DL> <DD>Sets the external schema bindings. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> <DD><CODE>org.xml.sax.SAXException</CODE> <DD><CODE>java.io.IOException</CODE></DL> </DD> </DL> <HR> <A NAME="getBindings()"><!-- --></A><H3> getBindings</H3> <PRE> org.w3c.dom.Document[] <B>getBindings</B>()</PRE> <DL> <DD>Returns the external schema bindings, if any, or null. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../../org/apache/ws/jaxme/generator/Main.html" title="class in org.apache.ws.jaxme.generator"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/ws/jaxme/generator/Generator.html" target="_top"><B>FRAMES</B></A> <A HREF="Generator.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>