Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

Util

pentaho.type. Util

A singleton class that contains utilities for using types and its instances.

AMD Module

require(["pentaho/type/util"], function(Util) { /* code goes here */ });

Constructor

Name Description
new Util()

This class was not designed to be constructed directly.

Methods

Name Description
combineErrors(errors, errorsAdd) : Array.<pentaho.type.ValidationError>

Combines two validation error lists.

normalizeErrors(errors) : Array.<pentaho.type.ValidationError>

Normalizes a validation errors result.

Constructor Details

new Util()

This class was not designed to be constructed directly.

Source: javascript/web/pentaho/type/util.js, line 22

Methods Details

combineErrors(errors, errorsAdd) : Array.<pentaho.type.ValidationError>

Combines two validation error lists.

Source: javascript/web/pentaho/type/util.js, line 53

Parameters:
Name Default Value Summary
errors : Nully | Array.<pentaho.type.ValidationError>

An errors array, if any.

errorsAdd : Nully | pentaho.type.ValidationError | Array.<pentaho.type.ValidationError>

The error or errors to add, if any.

Returns:
Name Description
Array.<pentaho.type.ValidationError>

A combined errors array, or null.

normalizeErrors(errors) : Array.<pentaho.type.ValidationError>

Normalizes a validation errors result.

Source: javascript/web/pentaho/type/util.js, line 41

Parameters:
Name Default Value Summary
errors : Nully | pentaho.type.ValidationError | Array.<pentaho.type.ValidationError>

An error, an errors array, or a Nully value.

Returns:
Name Description
Array.<pentaho.type.ValidationError>

An array of validation errors or null.