Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

Replace

pentaho.type.action Replace

The Replace class describes the primitive operation that replaces the value of an element property of a complex instance.

This type of change is always part of a pentaho.type.action.ComplexChangeset.

AMD Module

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

Extends

Constructor

Name Description
new Replace(propType, valueNew, stateNew)

Creates an instance.

Members

Name Description
id
Static
property : pentaho.type.PropertyType

Gets the property whose value is replaced.

state : number

Gets the state that will replace the current state of the property.

type : string

Gets the type of change.

value : pentaho.type.Element

Gets the value that will replace the current value of the property.

Methods

Name Description
_apply()
_cancel()
_prepare()

Constructor Details

new Replace(propType, valueNew, stateNew)

Creates an instance.

Source: javascript/web/pentaho/type/action/Replace.js, line 49

Parameters:
Name Default Value Summary
propType : pentaho.type.PropertyType

The property type.

valueNew : pentaho.type.Element

The proposed value of the property.

stateNew : number

The proposed state of the property.

Members Details

id:
Static

Source: javascript/web/pentaho/type/action/Replace.js, line 154

property: pentaho.type.PropertyType

Gets the property whose value is replaced.

Source: javascript/web/pentaho/type/action/Replace.js, line 50

state: number

Gets the state that will replace the current state of the property.

Source: javascript/web/pentaho/type/action/Replace.js, line 142

type: string

Gets the type of change.

Source: javascript/web/pentaho/type/action/Replace.js, line 122

Default Value: "replace"

See also: pentaho.type.action.Change#type

value: pentaho.type.Element

Gets the value that will replace the current value of the property.

Source: javascript/web/pentaho/type/action/Replace.js, line 132

Methods Details

_apply()

Source: javascript/web/pentaho/type/action/Replace.js, line 147

_cancel()

Source: javascript/web/pentaho/type/action/Replace.js, line 96

_prepare()

Source: javascript/web/pentaho/type/action/Replace.js, line 88