Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
package routines;
public class resolveName {
public static String helloExample(String name) {
String str = "fish";
return str;
}
}
switch(row1.name) {
case 1: output X; break;
case 2: output Y: break;
default: output Z;
}
/*
* user specification: the function's comment should contain keys as follows: 1. write about the function's comment.but
* it must be before the "{talendTypes}" key.
*
* 2. {talendTypes} 's value must be talend Type, it is required . its value should be one of: String, char | Character,
* long | Long, int | Integer, boolean | Boolean, byte | Byte, Date, double | Double, float | Float, Object, short |
* Short
*
* 3. {Category} define a category for the Function. it is required. its value is user-defined .
*
* 4. {param} 's format is: {param} <type> <name>
*
* <type> 's value should be one of: string, int, list, double, object, boolean, long, char, date. <name>'s value is the
* Function's parameter name. the {param} is optional. so if you the Function without the parameters. the {param} don't
* added. you can have many parameters for the Function.
*
* 5. {example} gives a example for the Function. it is optional.
*/
yourRoutine.yourStaticFunction(param)
/**
* String() Converts a string to junk
*
* {talendTypes} string | String
*
* {Category} importResolver
*
* {param} string() name: string value
*
* {example} String('Cat'):string
*
*/