org.speakright.sro
Class SROGen

java.lang.Object
  extended by org.speakright.sro.SROGen

public class SROGen
extends java.lang.Object

Generates the generated code for SROs in SpeakRight. To aid code consistency we use code-generation to create a base class for each SRO. The base class handles its prompts, where each prompt has a field (m_outOfRangePrompt), a set method (set_outOfRangePrompt), and a prompt id ("id:outOfRange"). A prompt xml file ({sroname}_prompts.xml) file is created with the prompt text for each id. You must copy these xml files into your project (see copy_sro_files.cmd in SampleServlet). Once the base class is generated (in a 'gen' sub-package), the real SRO class (such as SRONumber) is created by hand in the main sro package. The real class handles everything that the generated code doesn't, such as validation.

Author:
IanRaeLaptop

Constructor Summary
SROGen()
           
 
Method Summary
static void main(java.lang.String[] args)
          Generates the sro *.java file from sro\sronumber_definition.xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SROGen

public SROGen()
Method Detail

main

public static void main(java.lang.String[] args)
Generates the sro *.java file from sro\sronumber_definition.xml. You MUST run this class manually whenever you change the model.

Parameters:
args -