BatchAssignment 批量赋值语句
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface BatchAssignment {
"concept": "BatchAssignment", // 产品概念
"label": string, // 批量赋值语句标题
"left": SelectMembers, // 左边项
"rights": Array<SelectMembers>, // 右边项
"assignmentLines": Array<AssignmentLine>, // 赋值
"autoConnection": boolean, // 自动连线
}
class BatchAssignmentTreeNode {
ConceptEnum concept; // 产品概念
String label; // 批量赋值语句标题
SelectMembersTreeNode left; // 左边项
List<SelectMembersTreeNode> rights; // 右边项
List<AssignmentLineTreeNode> assignmentLines; // 赋值
boolean autoConnection; // 自动连线
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/BatchAssignment",
"definitions": {
"BatchAssignment": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "BatchAssignment"
},
"label": {
"type": "string"
},
"left": {
"$ref": "#/definitions/SelectMembers"
},
"rights": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectMembers"
}
},
"assignmentLines": {
"type": "array",
"items": {
"$ref": "#/definitions/AssignmentLine"
}
},
"autoConnection": {
"type": "boolean"
}
},
"required": [
"concept",
"label",
"left",
"rights",
"assignmentLines",
"autoConnection"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "BatchAssignment",
"label": "批量赋值",
"left": null,
"rights": [],
"assignmentLines": [],
"autoConnection": true
}
concept: BatchAssignment
label: 批量赋值
left: null
rights: []
assignmentLines: []
autoConnection: true