<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Input data file</title>
</head>
<body>
<h1>Input data file</h1>
<p>The input data file is optional and only needed if specify the input to be <a href="input.htm#wdb">Without DB</a>
or <a href="input.htm#dbwif">DB with input file</a>.<br/>
<image src="../pic/inputFile.png"/><br/></p>
<p>From the input file a data model is generated on which the code creation is based. The input file
is the point where the individuality of the generated classes comes in. You can leave all other settings
the same and just change the input file and you become a different class, ie. a Bean for a database table
A and a bean for the XML-table definition B.</p>
<p>There are two extension points that provide a facillity to influence the generation process of
an input file:</p>
<ul>
<li>ch.sahits.codegen.java.inputparser: Parser for input files specified by file extension</li>
<li>ch.sahits.codegen.inputxmlparser: XML Parser for an XML input file. XML files must provide an
element 'modelgenerator' under the root element to denote the parser that can generate the model from
the XML file: ie. <a href="oracle_user_table.xml">Oracle user table</a></li>
</ul>
<p>If the input file is an SQL create script the SQL dialect for this vendor must be supported. This is
done through ch.sahits.codegen.java.inputdbparser. An overview of the implementations can be found
with <a href="../samples/extensions.html">Samples</a> and
<a href="../gettingstarted/feat_javacodegen.html#overview">Features</a>.</p>
</body>
</html>