Package com.nt.udc.npl
Interface NPLProgramIfc
- All Known Implementing Classes:
BaseNPLProgram
public interface NPLProgramIfc
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetConfigValue
(String key) Gets the value of a configuration attribute.getExposedFields
(String reason) Gets a list of the fields defined in the expose clause for the reason provided.Gets a list of the input fields defined in the input records.Returns the method handler imported by the NPL program and set usingsetMethodHandler(IDCMethodHandler mh)
.getMethodHandler
(String name) Returns the method handler with the specified name.Gets a list of the output fields defined in the output records.processData
(DCFieldContainer input, Class out_type) Process the given input fields with this NPL program.void
setDataReceiver
(DataReceiverIfc ireceiver) void
void
Set the method handler object of the NPL program corresponding to the method handler imported by the NPL program.
-
Field Details
-
IMPORTED_JAVA_HANDLER_NAME
- See Also:
-
-
Method Details
-
processData
Process the given input fields with this NPL program. If this NPL program is creating any output records, the specified output type is used.- Parameters:
input
- input fields to processout_type
- type of any output records created by this NPL program (must implement DCFieldContainer interface)- Throws:
NPLException
- if error while processing data
-
getLogger
LoggerIfc getLogger() -
setLogger
-
getDataReceiver
DataReceiverIfc getDataReceiver() -
setDataReceiver
-
setMethodHandler
Set the method handler object of the NPL program corresponding to the method handler imported by the NPL program.- Parameters:
mh
- object that implements sub-interface of IDCMethodHandler- Throws:
NPLException
- if object passed to this method does not implement interface imported in NPL file
-
getMethodHandler
IDCMethodHandler getMethodHandler()Returns the method handler imported by the NPL program and set usingsetMethodHandler(IDCMethodHandler mh)
. -
getMethodHandler
Returns the method handler with the specified name. UseIMPORTED_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.- Parameters:
name
- name of method handler to get- Returns:
- method handler with given name or null if no method handler with given name
-
getInputFields
ArrayList getInputFields()Gets a list of the input fields defined in the input records.- Returns:
- List of input fields. The elements in this
ArrayList
are actually otherArrayList
s, one for each input record. The elements of theseArrayList
s areFieldDescriptor
objects, one for each field in the input record.
-
getOutputFields
ArrayList getOutputFields()Gets a list of the output fields defined in the output records.- Returns:
- List of output fields. The elements in this
ArrayList
are actually otherArrayList
s, one for each output record. The elements of theseArrayList
s areFieldDescriptor
objects, one for each field in the output record.
-
getExposedFields
Gets a list of the fields defined in the expose clause for the reason provided.- Parameters:
reason
- Reason the fields are being exposed.- Returns:
- List of exposed fields. The elements in the
ArrayList
areFieldDescriptor
objects, one for each field in the expose clause matching the reason provided.
-
getConfigValue
Gets the value of a configuration attribute.- Parameters:
key
- Configuration attribute to get the value of.- Returns:
- Value of the attribute. Returns null if the attribute does not exist.
-