fipaos.parser.datamapping.script
Class BATBinder

java.lang.Object
  |
  +--fipaos.parser.datamapping.script.AbstractScriptBinder
        |
        +--fipaos.parser.datamapping.script.BATBinder

public class BATBinder
extends AbstractScriptBinder

Class to enable binding between the Java properties file format & objects


Constructor Summary
BATBinder()
           
 
Method Summary
protected  boolean canDealWith(java.lang.String filename)
          Return true if an instance of this can deal with the contents of the given filename
protected  java.lang.String convertFromScriptToName(java.lang.String line)
          Returns the name of the varible being set on the given line - returns null if no variable is defined on this line
protected  java.lang.String convertFromScriptToValue(java.lang.String line)
          Returns the value of the varible being set on the given line - returns null if no variable is defined on this line
protected  java.lang.String convertToScript(java.lang.String variable, java.lang.String value)
          Returns a line of script that will set the given variable to the given value
protected  java.lang.String getTypeOf(java.lang.String filename)
          Return the type of class to populate for the given filename
 
Methods inherited from class fipaos.parser.datamapping.script.AbstractScriptBinder
loadBindings, registerWithDataMapperFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BATBinder

public BATBinder()
Method Detail

convertFromScriptToValue

protected java.lang.String convertFromScriptToValue(java.lang.String line)
Returns the value of the varible being set on the given line - returns null if no variable is defined on this line
Overrides:
convertFromScriptToValue in class AbstractScriptBinder

convertFromScriptToName

protected java.lang.String convertFromScriptToName(java.lang.String line)
Returns the name of the varible being set on the given line - returns null if no variable is defined on this line
Overrides:
convertFromScriptToName in class AbstractScriptBinder

getTypeOf

protected java.lang.String getTypeOf(java.lang.String filename)
Return the type of class to populate for the given filename
Overrides:
getTypeOf in class AbstractScriptBinder

convertToScript

protected java.lang.String convertToScript(java.lang.String variable,
                                           java.lang.String value)
Returns a line of script that will set the given variable to the given value
Overrides:
convertToScript in class AbstractScriptBinder

canDealWith

protected boolean canDealWith(java.lang.String filename)
Return true if an instance of this can deal with the contents of the given filename
Overrides:
canDealWith in class AbstractScriptBinder