wt.load
Class DataMap

java.lang.Object
  extended bywt.load.DataMap

public class DataMap
extends Object

Used in processing the data and map files to retrieve attributes for input into the load methods.

Supported API: false


Field Summary
(package private)  Hashtable attribMap
           
(package private)  Hashtable callMap
           
private static String SERVICE_NAME
           
private static boolean VERBOSE
           
 
Constructor Summary
(package private) DataMap(String mapFilename, String token)
          Parse the map file.
 
Method Summary
(package private)  String getCallMap(String classname, String method)
          Returns real method to call on this data given the key of class and method from the data file and command line.
(package private)  Vector getDataMap(String classname, String method)
          Returns ordering of fields for data file given the key of class and method from the data file and command line.
(package private)  Hashtable makeNvHash(String classname, String method, Vector valuelist)
          Make the name/value pairs to pass to the load method.
(package private)  void printCallMap()
          Used in debugging of method call information.
(package private)  void printDataMap()
          Used in debugging of data fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attribMap

Hashtable attribMap

callMap

Hashtable callMap

VERBOSE

private static final boolean VERBOSE

SERVICE_NAME

private static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

DataMap

DataMap(String mapFilename,
        String token)
Parse the map file.

Parameters:
mapFilename - Full pathname of the map file.
token - Separator for the data in the map file.

Supported API: false
Method Detail

printDataMap

void printDataMap()
Used in debugging of data fields.

Supported API: false


printCallMap

void printCallMap()
Used in debugging of method call information.

Supported API: false


getDataMap

Vector getDataMap(String classname,
                  String method)
Returns ordering of fields for data file given the key of class and method from the data file and command line.

Parameters:
classname - Generic class from map and data files. Doesn't have to be the real wt...class.
method - Generic method string from command line and map file. Usually isn't the real wt...method.

Supported API: false

getCallMap

String getCallMap(String classname,
                  String method)
Returns real method to call on this data given the key of class and method from the data file and command line.

Parameters:
classname - Generic class from map and data files. Doesn't have to be the real wt...class.
method - Generic method string from command line and map file. Usually isn't the real wt...method.

Supported API: false

makeNvHash

Hashtable makeNvHash(String classname,
                     String method,
                     Vector valuelist)
Make the name/value pairs to pass to the load method.

Parameters:
classname - Generic class from map and data files. Doesn't have to be the real wt...class.
method - Generic method string from command line and map file. Usually isn't the real wt...method.
valuelist - Values from data file to be matched with the names from the map file.

Supported API: false