Java Code Examples for org.pentaho.di.core.Const#unEscapeXml()

The following examples show how to use org.pentaho.di.core.Const#unEscapeXml() . 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: ScriptValuesAddedFunctions.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public static String unEscapeXml( Context actualContext, Scriptable actualObject, Object[] ArgList,
  Function FunctionContext ) {
  if ( ArgList.length == 1 ) {
    return Const.unEscapeXml( Context.toString( ArgList[0] ) );
  } else {
    throw Context.reportRuntimeError( "The function call unEscapeXml requires 1 argument." );

  }
}
 
Example 2
Source File: ValueDataUtil.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
public static String unEscapeXML( ValueMetaInterface metaA, Object dataA ) {
  if ( dataA == null ) {
    return null;
  }
  return Const.unEscapeXml( dataA.toString() );
}