org.semanticdesktop.aperture.util
Class DataSourceClassGenerator

java.lang.Object
  extended by org.semanticdesktop.aperture.util.DataSourceClassGenerator

public class DataSourceClassGenerator
extends Object

A simple generator for the DataSource convenience classes


Field Summary
static String[] JAVA_RESERVED_WORDS
          Array of java reserved words
static Set<String> JAVA_RESERVED_WORDS_SET
          Set of java reserved words
 
Constructor Summary
DataSourceClassGenerator()
          constructor
 
Method Summary
protected  String asLegalJavaID(String s, boolean cap)
          Convert s to a legal Java identifier; capitalise first char if cap is true this method is copied from jena code.
 void go(String[] args)
          Does the job.
static void main(String[] args)
          documentation see class, above.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_RESERVED_WORDS

public static final String[] JAVA_RESERVED_WORDS
Array of java reserved words


JAVA_RESERVED_WORDS_SET

public static final Set<String> JAVA_RESERVED_WORDS_SET
Set of java reserved words

Constructor Detail

DataSourceClassGenerator

public DataSourceClassGenerator()
constructor

Method Detail

go

public void go(String[] args)
        throws Exception
Does the job.

Parameters:
args - command line arguments
Throws:
Exception - if something goes wrong

main

public static void main(String[] args)
                 throws Exception
documentation see class, above.

Parameters:
args - command line arguments
Throws:
Exception - if something goes wrong

asLegalJavaID

protected String asLegalJavaID(String s,
                               boolean cap)
Convert s to a legal Java identifier; capitalise first char if cap is true this method is copied from jena code.