Package com.ibm.di.fc.dcs
Class DataCleanserFC
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.dcs.DataCleanserFC
-
- All Implemented Interfaces:
FunctionInterface,VersionInfoInterface
public class DataCleanserFC extends Function
This class initializes Data Cleanser Service and takes a string and gives a standard CDM String corresponding to the inout string.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCDM_ATTR_TYPEThis output map attribute is used to override the CDM Attribute name set in the Components configuration panel.static java.lang.StringCLEANSED_STRINGThis input map attribute is the cleansed string of the given input string.static java.lang.StringINPUT_STRINGThis output map attribute is for input string which need to be cleansed.
-
Constructor Summary
Constructors Constructor Description DataCleanserFC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributeTypes()Retrieves the Attribute Types which can be cleansed.java.lang.StringgetVersion()Version information.voidinitialize(java.lang.Object obj)Called once to initialize the Function Component.java.lang.Objectperform(java.lang.Object obj)The FC takes the string which needs to be cleansed and a CDM Attribute.-
Methods inherited from class com.ibm.di.fc.Function
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, terminate, updateSchema, verifyInitialized
-
-
-
-
Field Detail
-
CDM_ATTR_TYPE
public static final java.lang.String CDM_ATTR_TYPE
This output map attribute is used to override the CDM Attribute name set in the Components configuration panel.- See Also:
- Constant Field Values
-
INPUT_STRING
public static final java.lang.String INPUT_STRING
This output map attribute is for input string which need to be cleansed.- See Also:
- Constant Field Values
-
CLEANSED_STRING
public static final java.lang.String CLEANSED_STRING
This input map attribute is the cleansed string of the given input string.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object obj) throws java.lang.ExceptionCalled once to initialize the Function Component.- Specified by:
initializein interfaceFunctionInterface- Overrides:
initializein classFunction- Parameters:
obj- - ignored- Throws:
java.lang.Exception- if an error occurs.
-
perform
public java.lang.Object perform(java.lang.Object obj) throws java.lang.ExceptionThe FC takes the string which needs to be cleansed and a CDM Attribute. If the string has a corresponding CDM standard name it gives the standard name of the string otherwise gives the same string which was passed.- Parameters:
obj- the work entry passed to the FC.- Returns:
- an empty Entry object.
- Throws:
java.lang.Exception- if a problem occurs.
-
getAttributeTypes
public java.util.Map<java.lang.String,java.lang.Object> getAttributeTypes() throws java.lang.ExceptionRetrieves the Attribute Types which can be cleansed.- Returns:
- the Attribute Type which can be cleansed.
- Throws:
java.lang.Exception- if error occurred.
-
getVersion
public java.lang.String getVersion()
Version information.- Returns:
- version information.
-
-