net.jot.web
Class JOTFlowConfigParser

java.lang.Object
  extended by net.jot.web.JOTFlowConfigParser

public class JOTFlowConfigParser
extends java.lang.Object

This parses flow.conf into a JOTFlowConfig objects It makes extensive use of Regular Expression to do this.

Author:
thibautc

Constructor Summary
JOTFlowConfigParser()
           
 
Method Summary
static void main(java.lang.String[] args)
          Calls validateFlowConfig(arg[0],true) to validate your flow.conf file
static JOTFlowConfig parseFlowFile(java.io.File flowFile)
          Parses floe.conf into a JOTFlowConfig object
static boolean validateFlowConfig(java.lang.String confFileFolder, boolean verbose)
          Runs a validation of the conf file using the actual parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOTFlowConfigParser

public JOTFlowConfigParser()
Method Detail

parseFlowFile

public static JOTFlowConfig parseFlowFile(java.io.File flowFile)
Parses floe.conf into a JOTFlowConfig object

Parameters:
flowFile -
Returns:

validateFlowConfig

public static boolean validateFlowConfig(java.lang.String confFileFolder,
                                         boolean verbose)
Runs a validation of the conf file using the actual parser. This allows to test your conf file before runtime in the app server. You could call this from ant to verify your file automatically.

Parameters:
confFileFolder - : the folder where flow.conf is located.
verbose - : Wether or not to display full debug infos.
Returns:
true if parsed ok, false otherwise

main

public static void main(java.lang.String[] args)
Calls validateFlowConfig(arg[0],true) to validate your flow.conf file

Parameters:
args -