Class FileEnhMethodHandler
java.lang.Object
com.nt.udc.processor.FileEnhancer.FileEnhMethodHandler
- All Implemented Interfaces:
IDCMethodHandler
,FileEnhMethodHandlerIfc
,LookupIfc
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.FileEnhMethodHandler
(Hashtable lt, String subValueSeparator) Constructor for the FileEnhMethodHandler. -
Method Summary
Modifier and TypeMethodDescriptionGets the entire lookup table that is being used in the NPL java-hook lookup call.getLookupTable
(String key) getSubValue
(StringField lookup, StringField key) lookup
(StringField tableName, StringField key) Method intended to be call from NPL as a "java-hook".void
setLookupTable
(String key, Hashtable lt) void
Method for setting the lookup table that will be used by the NPL program.
-
Constructor Details
-
FileEnhMethodHandler
public FileEnhMethodHandler()Default Constructor. -
FileEnhMethodHandler
Constructor for the FileEnhMethodHandler. Sets up an NPLFieldProcessor and sets the DCFieldContainer to be a NAR. At the end of the constructor the node is started.- Parameters:
lt
- the lookup table that will be used for lookup call
It is expected this will be a Hashtable of Hashtables.
-
-
Method Details
-
setLookupTable
Method for setting the lookup table that will be used by the NPL program.- Parameters:
lt
- the lookup table that will be used for lookup call
It is expected this will be a Hashtable of Hashtables.
-
setLookupTable
- Specified by:
setLookupTable
in interfaceLookupIfc
-
getLookupTable
Gets the entire lookup table that is being used in the NPL java-hook lookup call. This table should be a Hashtable of Hashtables- Returns:
- Returns the Hashtable representing the lookup table.
-
getLookupTable
- Specified by:
getLookupTable
in interfaceLookupIfc
-
lookup
Method intended to be call from NPL as a "java-hook". This is specifically used for the purpose of table lookup. The structure of the object from which this lookup is being done is a Hashtable of Hashtables. Therefore, the call is made with a "tableName" parameter to select the sub-table to use, and then a "key" parameter to extract a specific field from that sub-table. Parameters and return values are all StringField, as NPL only allows java-hooks with DCField sub-classes.- Specified by:
lookup
in interfaceFileEnhMethodHandlerIfc
- Parameters:
tableName
- the specific sub-table to look inkey
- the specific element in the sub-table- Returns:
- Returns the StringField representing the element value.
-
getSubValue
- Specified by:
getSubValue
in interfaceFileEnhMethodHandlerIfc
-