new Merge( [json])
Class description
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
json |
Object |
<optional> |
Extends
Methods
-
addResourceToCopy(resourceToCopy)
-
Add a resourcesToCopy
Parameters:
Name Type Description resourceToCopyResourceReference Returns:
this- Type
- Merge
-
addResourceToDelete(resourceToDelete)
-
Add a resourcesToDelete
Parameters:
Name Type Description resourceToDeleteResourceReference Returns:
this- Type
- Merge
-
getResourcesToCopy()
-
Get the resourcesToCopy
Returns:
- Type
- Array.<ResourceReference>
-
getResourcesToDelete()
-
Get the resourcesToDelete
Returns:
- Type
- Array.<ResourceReference>
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description jsonObject - Overrides:
Returns:
Merge this -
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description objObject Returns:
- Type
- Boolean
-
setResourcesToCopy(resourcesToCopy)
-
Set the resourcesToCopy
Parameters:
Name Type Description resourcesToCopyArray.<ResourceReference> Returns:
this- Type
- Merge
-
setResourcesToDelete(resourcesToDelete)
-
Set the resourcesToDelete
Parameters:
Name Type Description resourcesToDeleteArray.<ResourceReference> Returns:
this- Type
- Merge
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object