* We will initialize file contents with a sample text.
*/
private InputStream openContentStream() {
Document document = new Document(XmlConstants.MYBATIS_GENERATOR_CONFIG_PUBLIC_ID,
XmlConstants.MYBATIS_GENERATOR_CONFIG_SYSTEM_ID);
XmlElement generatorConfiguration = new XmlElement("generatorConfiguration"); //$NON-NLS-1$
document.setRootElement(generatorConfiguration);
XmlElement context = new XmlElement("context"); //$NON-NLS-1$
context.addAttribute(new Attribute("id", "context1")); //$NON-NLS-1$ //$NON-NLS-2$
generatorConfiguration.addElement(context);
XmlElement jdbcConnection = new XmlElement("jdbcConnection"); //$NON-NLS-1$
jdbcConnection.addAttribute(new Attribute("driverClass", "???")); //$NON-NLS-1$ //$NON-NLS-2$
jdbcConnection.addAttribute(new Attribute("connectionURL", "???")); //$NON-NLS-1$ //$NON-NLS-2$
jdbcConnection.addAttribute(new Attribute("userId", "???")); //$NON-NLS-1$ //$NON-NLS-2$
jdbcConnection.addAttribute(new Attribute("password", "???")); //$NON-NLS-1$ //$NON-NLS-2$
context.addElement(jdbcConnection);
XmlElement javaModelGenerator = new XmlElement("javaModelGenerator"); //$NON-NLS-1$
javaModelGenerator.addAttribute(new Attribute("targetPackage", "???")); //$NON-NLS-1$ //$NON-NLS-2$
javaModelGenerator.addAttribute(new Attribute("targetProject", "???")); //$NON-NLS-1$ //$NON-NLS-2$
context.addElement(javaModelGenerator);
XmlElement sqlMapGenerator = new XmlElement("sqlMapGenerator"); //$NON-NLS-1$
sqlMapGenerator.addAttribute(new Attribute("targetPackage", "???")); //$NON-NLS-1$ //$NON-NLS-2$
sqlMapGenerator.addAttribute(new Attribute("targetProject", "???")); //$NON-NLS-1$ //$NON-NLS-2$
context.addElement(sqlMapGenerator);
XmlElement javaClientGenerator = new XmlElement("javaClientGenerator"); //$NON-NLS-1$
javaClientGenerator.addAttribute(new Attribute("targetPackage", "???")); //$NON-NLS-1$ //$NON-NLS-2$
javaClientGenerator.addAttribute(new Attribute("targetProject", "???")); //$NON-NLS-1$ //$NON-NLS-2$
javaClientGenerator.addAttribute(new Attribute("type", "XMLMAPPER")); //$NON-NLS-1$ //$NON-NLS-2$
context.addElement(javaClientGenerator);
XmlElement table = new XmlElement("table"); //$NON-NLS-1$
table.addAttribute(new Attribute("schema", "???")); //$NON-NLS-1$ //$NON-NLS-2$
table.addAttribute(new Attribute("tableName", "???")); //$NON-NLS-1$ //$NON-NLS-2$
XmlElement columnOverride = new XmlElement("columnOverride"); //$NON-NLS-1$
columnOverride.addAttribute(new Attribute("column", "???")); //$NON-NLS-1$ //$NON-NLS-2$
columnOverride.addAttribute(new Attribute("property", "???")); //$NON-NLS-1$ //$NON-NLS-2$
table.addElement(columnOverride);
context.addElement(table);
return new ByteArrayInputStream(document.getFormattedContent()
.getBytes());
}