org.melati.poem.prepro
Class DSD

Package class diagram package DSD
java.lang.Object
  extended by org.melati.poem.prepro.DSD

public class DSD
extends Object

The DSD class is an application which parses a DSD (Data Structure Definition) file and outputs Java code, creating a POEM view of a database.

The generated files are placed in the current directory, which is assumed to be similar to org/paneris/myapp/model/ and also in a new directory below it called generated.

Author:
William Chesters

Constructor Summary
DSD(String file)
          Constructor.
DSD(String file, TableNamingStore names, boolean includePoem)
          Constructor.
 
Method Summary
 String getProjectName()
           
 String getProjectTableClassName()
           
static void main(String[] args)
          Run me.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSD

public DSD(String file)
    throws IOException,
           org.melati.poem.prepro.ParsingDSDException,
           org.melati.poem.prepro.IllegalityException,
           org.melati.poem.prepro.ResourceNotFoundException
Constructor.

Parameters:
file - the name of the DSD file to open
Throws:
ResourceNotFoundException - if a DSD file cannot be found
ParsingDSDException - if an unexpected token is encountered
IllegalityException - if a semantic incoherence is detected
IOException - if a problem with the file system is encountered

DSD

public DSD(String file,
           TableNamingStore names,
           boolean includePoem)
    throws org.melati.poem.prepro.ResourceNotFoundException,
           org.melati.poem.prepro.ParsingDSDException,
           org.melati.poem.prepro.IllegalityException,
           IOException
Constructor.

Parameters:
file - the name of the DSD file to open
names - a TableNamingStore containing names encountered so far
includePoem - whether to include the Poem tables
Throws:
ResourceNotFoundException - if a DSD file cannot be found
ParsingDSDException - if an unexpected token is encountered
IllegalityException - if a semantic incoherence is detected
IOException - if a problem with the file system is encountered
Method Detail

main

public static void main(String[] args)
                 throws Exception
Run me.

Parameters:
args - the arument array
Throws:
Exception - if an exception occurs

getProjectTableClassName

public String getProjectTableClassName()
Returns:
the name of the class from which all project tables inherit

getProjectName

public String getProjectName()
Returns:
the project name


Copyright © 2000-2010 PanEris. All Rights Reserved.