public class FileEnhMethodHandler extends java.lang.Object implements FileEnhMethodHandlerIfc, LookupIfc
Constructor and Description |
---|
FileEnhMethodHandler()
Default Constructor.
|
FileEnhMethodHandler(java.util.Hashtable lt,
java.lang.String subValueSeparator)
Constructor for the FileEnhMethodHandler.
|
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable |
getLookupTable()
Gets the entire lookup table that is being used in the
NPL java-hook lookup call.
|
java.util.Hashtable |
getLookupTable(java.lang.String key) |
StringField |
getSubValue(StringField lookup,
StringField key) |
StringField |
lookup(StringField tableName,
StringField key)
Method intended to be call from NPL as a "java-hook".
|
void |
setLookupTable(java.util.Hashtable lt)
Method for setting the lookup table that will be used by the NPL
program.
|
void |
setLookupTable(java.lang.String key,
java.util.Hashtable lt) |
public FileEnhMethodHandler()
public FileEnhMethodHandler(java.util.Hashtable lt, java.lang.String subValueSeparator)
lt
- the lookup table that will be used for lookup callpublic void setLookupTable(java.util.Hashtable lt)
lt
- the lookup table that will be used for lookup callpublic void setLookupTable(java.lang.String key, java.util.Hashtable lt)
setLookupTable
in interface LookupIfc
public java.util.Hashtable getLookupTable()
public java.util.Hashtable getLookupTable(java.lang.String key)
getLookupTable
in interface LookupIfc
public StringField lookup(StringField tableName, StringField key)
lookup
in interface FileEnhMethodHandlerIfc
tableName
- the specific sub-table to look inkey
- the specific element in the sub-tablepublic StringField getSubValue(StringField lookup, StringField key)
getSubValue
in interface FileEnhMethodHandlerIfc