public interface NPLProgramIfc
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IMPORTED_JAVA_HANDLER_NAME |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfigValue(java.lang.String key)
Gets the value of a configuration attribute.
|
DataReceiverIfc |
getDataReceiver() |
java.util.ArrayList |
getExposedFields(java.lang.String reason)
Gets a list of the fields defined in the expose clause for the
reason provided.
|
java.util.ArrayList |
getInputFields()
Gets a list of the input fields defined in the input records.
|
LoggerIfc |
getLogger() |
IDCMethodHandler |
getMethodHandler()
Returns the method handler imported by the NPL program and set
using
setMethodHandler(IDCMethodHandler mh). |
IDCMethodHandler |
getMethodHandler(java.lang.String name)
Returns the method handler with the specified name.
|
java.util.ArrayList |
getOutputFields()
Gets a list of the output fields defined in the output records.
|
DCFieldContainer[] |
processData(DCFieldContainer input,
java.lang.Class out_type)
Process the given input fields with this NPL program.
|
void |
setDataReceiver(DataReceiverIfc ireceiver) |
void |
setLogger(LoggerIfc logger) |
void |
setMethodHandler(IDCMethodHandler mh)
Set the method handler object of the NPL program corresponding to
the method handler imported by the NPL program.
|
static final java.lang.String IMPORTED_JAVA_HANDLER_NAME
DCFieldContainer[] processData(DCFieldContainer input, java.lang.Class out_type) throws NPLException
input - input fields to processout_type - type of any output records created by this NPL program
(must implement DCFieldContainer interface)NPLException - if error while processing dataLoggerIfc getLogger()
void setLogger(LoggerIfc logger)
DataReceiverIfc getDataReceiver()
void setDataReceiver(DataReceiverIfc ireceiver)
void setMethodHandler(IDCMethodHandler mh) throws NPLException
mh - object that implements sub-interface of IDCMethodHandlerNPLException - if object passed to this method does not
implement interface imported in NPL fileIDCMethodHandler getMethodHandler()
setMethodHandler(IDCMethodHandler mh).IDCMethodHandler getMethodHandler(java.lang.String name)
IMPORTED_JAVA_HANDLER_NAME to retrieve the
imported method handler. For method handlers declared using
the JavaHook declaration, use the name given to identify the
method handler in the JavaHook declaration.name - name of method handler to getjava.util.ArrayList getInputFields()
ArrayList are actually other
ArrayLists, one for each input record.
The elements of these ArrayLists are
FieldDescriptor objects, one for each
field in the input record.java.util.ArrayList getOutputFields()
ArrayList are actually other
ArrayLists, one for each output record.
The elements of these ArrayLists are
FieldDescriptor objects, one for each
field in the output record.java.util.ArrayList getExposedFields(java.lang.String reason)
reason - Reason the fields are being exposed.ArrayList are
FieldDescriptor objects, one
for each field in the expose clause matching
the reason provided.java.lang.String getConfigValue(java.lang.String key)
key - Configuration attribute to get the value of.