Project: talenddataquality
Issue TDQ-9919: Update some tdq system routines file
Update some tdq system routines file : now we parser the routines function parameter from the annotation on studio side. for example : code\routines\system\Numeric_0.1.item {code} /** * return numbers using an implied decimal format. * * {Category} Numeric * * {talendTypes} float | Float * * {param} String("9V99") format: float pointing format. * * {param} String("123") toConvert: read this value. * * {example} convertImpliedDecimalFormat("9V99", "123") result: 1.23 ... * */ public static Float convertImpliedDecimalFormat(String format, String toConvert) { {code} => we parser " format: "and "toConvert:" as param , but now some dq routines file not keep the same rule ,it is a wrong format. like this files : \code\routines\system\DQTechnical_0.1.item , \code\routines\system\DataQuality_0.1.item , {code} /** * isNameStringValid: Returns true or false if the string is a valid formed name: [Initial] Firstname [Initial] * Lastname * * {talendTypes} Boolean * * {Category} Data Quality * * {param} string("Mrs. Marty Smith") the string to be processed * * {example} isNameStringValid("Mrs. Marty Smith ") # returns true */ public static boolean isNameStringValid(String inStr) { {code} ==> The old string : {param} string("Mrs. Marty Smith") the string to be processed The new string need add the parameters : {param} string("Mrs. Marty Smith") inStr: the string to be processed
Story points: 3