Java Code Examples for org.pentaho.di.core.Const#getDigitsOnly()
The following examples show how to use
org.pentaho.di.core.Const#getDigitsOnly() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScriptAddedFunctions.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public static String getDigitsOnly( ScriptEngine actualContext, Bindings actualObject, Object[] ArgList, Object FunctionContext ) { if ( ArgList.length == 1 ) { return Const.getDigitsOnly( (String) ArgList[0] ); // TODO AKRETION ensure } else { throw new RuntimeException( "The function call getDigitsOnly requires 1 argument." ); } }
Example 2
Source File: ScriptValuesAddedFunctions.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public static String getDigitsOnly( Context actualContext, Scriptable actualObject, Object[] ArgList, Function FunctionContext ) { if ( ArgList.length == 1 ) { return Const.getDigitsOnly( Context.toString( ArgList[0] ) ); } else { throw Context.reportRuntimeError( "The function call getDigitsOnly requires 1 argument." ); } }
Example 3
Source File: ValueDataUtil.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public static String getDigits( ValueMetaInterface metaA, Object dataA ) { if ( dataA == null ) { return null; } return Const.getDigitsOnly( dataA.toString() ); }