new Merge( [json])
Class description
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
json |
Object |
<optional> |
Extends
Methods
-
addResourceToCopy(resourceToCopy)
-
Add a resourcesToCopy
Parameters:
Name Type Description resourceToCopy
ResourceReference Returns:
this- Type
- Merge
-
addResourceToDelete(resourceToDelete)
-
Add a resourcesToDelete
Parameters:
Name Type Description resourceToDelete
ResourceReference 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 json
Object - Overrides:
Returns:
Merge this -
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description obj
Object Returns:
- Type
- Boolean
-
setResourcesToCopy(resourcesToCopy)
-
Set the resourcesToCopy
Parameters:
Name Type Description resourcesToCopy
Array.<ResourceReference> Returns:
this- Type
- Merge
-
setResourcesToDelete(resourcesToDelete)
-
Set the resourcesToDelete
Parameters:
Name Type Description resourcesToDelete
Array.<ResourceReference> Returns:
this- Type
- Merge
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object