public static final class AppElementsUpdateElementRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
AppElementsUpdateElementResponse |
call(OnshapeDocument document) |
Calls updateElement method, Update an app element
|
AppElementsUpdateElementResponse |
call(String did,
String wid,
String eid) |
Calls updateElement method, Update an app element
|
AppElementsUpdateElementRequestChanges[] |
changes() |
Get List of changes to make to the application element
|
AppElementsUpdateElementRequest.Builder |
changes(AppElementsUpdateElementRequestChanges[] value) |
Set List of changes to make to the application element
|
String |
description() |
Get Description of the change being made, for history tracking
|
AppElementsUpdateElementRequest.Builder |
description(String value) |
Set Description of the change being made, for history tracking
|
Map |
jsonTreeEdit() |
Get A change to the JSON tree encoded as a BTJEdit
|
AppElementsUpdateElementRequest.Builder |
jsonTreeEdit(Map value) |
Set A change to the JSON tree encoded as a BTJEdit
|
String |
parentChangeId() |
Get Id of the last change made by this application to this element
|
AppElementsUpdateElementRequest.Builder |
parentChangeId(String value) |
Set Id of the last change made by this application to this element
|
String |
transactionId() |
Get Id of transaction in which the update should be performed
|
AppElementsUpdateElementRequest.Builder |
transactionId(String value) |
Set Id of transaction in which the update should be performed
|
public final String transactionId()
public final AppElementsUpdateElementRequest.Builder transactionId(String value)
value - Id of transaction in which the update should be performedpublic final String parentChangeId()
public final AppElementsUpdateElementRequest.Builder parentChangeId(String value)
value - Id of the last change made by this application to this elementpublic final String description()
public final AppElementsUpdateElementRequest.Builder description(String value)
value - Description of the change being made, for history trackingpublic final AppElementsUpdateElementRequestChanges[] changes()
public final AppElementsUpdateElementRequest.Builder changes(AppElementsUpdateElementRequestChanges[] value)
value - List of changes to make to the application elementpublic final Map jsonTreeEdit()
public final AppElementsUpdateElementRequest.Builder jsonTreeEdit(Map value)
value - A change to the JSON tree encoded as a BTJEditpublic final AppElementsUpdateElementResponse call(String did, String wid, String eid) throws OnshapeException
The BTJEdit encoding is as follows:
An edit is one of
* Deletion: { 'btType' : 'BTJEditDelete-1992', 'path' : path }
* Insertion: { 'btType' : 'BTJEditInsert-2523', 'path' : path, 'value' : newValue }
* Change: { 'btType' : 'BTJEditChange-2636', 'path' : path, 'value' : newValue }
* Move: { 'btType' : 'BTJEditMove-3245', 'sourcePath' : path, 'destinationPath' : path }
* List: { 'btType' : 'BTJEditList-2707', 'edits' : [ edit1, edit2, ...] }
Where edit1, edit2, etc. are zero or more edits, newValue is any JSON, and path is:
{ 'btType' : 'BTJPath-3073', 'startNode' : startNode, 'path' : [ pathElement1, pathElement2, ...] }
where startNode is a string that is either empty or a nodeId of a node in the tree and pathElement is one of:
* Key: { 'btType' : 'BTJPathKey-3221', 'key' : string }
* Index: { 'btType' : 'BTJPathIndex-1871', 'index' : integer }
did - Document IDwid - Workspace IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final AppElementsUpdateElementResponse call(OnshapeDocument document) throws OnshapeException
The BTJEdit encoding is as follows:
An edit is one of
* Deletion: { 'btType' : 'BTJEditDelete-1992', 'path' : path }
* Insertion: { 'btType' : 'BTJEditInsert-2523', 'path' : path, 'value' : newValue }
* Change: { 'btType' : 'BTJEditChange-2636', 'path' : path, 'value' : newValue }
* Move: { 'btType' : 'BTJEditMove-3245', 'sourcePath' : path, 'destinationPath' : path }
* List: { 'btType' : 'BTJEditList-2707', 'edits' : [ edit1, edit2, ...] }
Where edit1, edit2, etc. are zero or more edits, newValue is any JSON, and path is:
{ 'btType' : 'BTJPath-3073', 'startNode' : startNode, 'path' : [ pathElement1, pathElement2, ...] }
where startNode is a string that is either empty or a nodeId of a node in the tree and pathElement is one of:
* Key: { 'btType' : 'BTJPathKey-3221', 'key' : string }
* Index: { 'btType' : 'BTJPathIndex-1871', 'index' : integer }
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.