Skip to main content
Pentaho Documentation

IValueProto

pentaho.type.spec.IValueProto

The spec.IValueProto interface represents the specification of the prototype of a value type's instance class.

Source: doc-js/pentaho/type/spec/IValueProto.jsdoc, line 17

Extends

Members

Name Description
type : pentaho.type.spec.IValueTypeProto

The extensible/configurable members of the prototype of value type classes.

Methods

Name Description
validate() : Array.<!pentaho.type.ValidationError>

Determines if a value is valid.

Members Details

type: pentaho.type.spec.IValueTypeProto

The extensible/configurable members of the prototype of value type classes.

Source: doc-js/pentaho/type/spec/IValueProto.jsdoc, line 25

Overrides: pentaho.type.spec.IInstanceProto#type

See also:  pentaho.type.spec.IValueTypeProto#instance

Methods Details

validate() : Array.<!pentaho.type.ValidationError>

Determines if a value is valid.

If you override this method, be sure to call the base implementation, and return any errors it reports.

You can use the error utilities in pentaho.type.Util to help in the implementation.

Source: doc-js/pentaho/type/spec/IValueProto.jsdoc, line 35

Returns:
Name Description
Array.<!pentaho.type.ValidationError> | null

A non-empty array of errors or null.

See also:  pentaho.type.spec.IValueTypeProto#validateInstance , pentaho.type.Value#validate