Replace
pentaho.type.changes.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.changes.ComplexChangeset
.
AMD Module
require(["pentaho/type/changes/Replace"], function(Replace) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new Replace(propType, value, state) | Creates an instance. |
Members
Name | Description |
---|---|
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
property : | Gets the property whose value is replaced. |
state : | Gets the state that will replace the current state of the property. |
type : | Gets the type of change. |
value : | Gets the value that will replace the current value of the property. |
Methods
Name | Description |
---|---|
_apply(target) Protected | Applies any local primitive changes. |
_cancelRefs(transaction, container) Protected | Unregisters reference changes caused by the change. |
_prepareRefs(transaction, container) Protected | Register reference changes caused by the change. |
extend(source, keyArgs) : Object | Extend an object with the properties of another. |
Constructor Details
new Replace(propType, value, state) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance. Source: javascript/web/pentaho/type/changes/Replace.js, line 48
|
Members Details
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. Source: javascript/web/pentaho/lang/Base.js, line 299 Inherited From: pentaho.lang.Base#base |
property: |
---|
Gets the property whose value is replaced. Source: javascript/web/pentaho/type/changes/Replace.js, line 49 |
state: |
---|
Gets the state that will replace the current state of the property. Source: javascript/web/pentaho/type/changes/Replace.js, line 126 |
type: |
---|
Gets the type of change. Source: javascript/web/pentaho/type/changes/Replace.js, line 106 Default Value: "replace" Overrides: pentaho.type.changes.PrimitiveChange#type |
value: |
---|
Gets the value that will replace the current value of the property. Source: javascript/web/pentaho/type/changes/Replace.js, line 116 |
Methods Details
_apply(target) Protected | ||||||
---|---|---|---|---|---|---|
Applies any local primitive changes. Source: javascript/web/pentaho/type/changes/Change.js, line 50 Overrides: pentaho.type.changes.PrimitiveChange#_apply
|
_cancelRefs(transaction, container) Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Unregisters reference changes caused by the change. Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 71 Overrides: pentaho.type.changes.PrimitiveChange#_cancelRefs
See also: pentaho.type.changes.ListChangeset#_clearChanges , pentaho.type.changes.ComplexChangeset#_clearChanges , pentaho.type.changes.ComplexChangeset.__setElement |
_prepareRefs(transaction, container) Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Register reference changes caused by the change. Source: javascript/web/pentaho/type/changes/PrimitiveChange.js, line 56 Overrides: pentaho.type.changes.PrimitiveChange#_prepareRefs
See also: pentaho.type.changes.ListChangeset.__addChange , pentaho.type.changes.ComplexChangeset.__setElement |
extend(source, keyArgs) : Object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1037 Inherited From: pentaho.lang.Base#extend
|