NewComposite 实体/(匿名)数据结构构造器
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface NewComposite {
"concept": "NewComposite", // 产品概念
"typeAnnotation": TypeAnnotation, // 类型
"properties": Array<Identifier>, // 左边项
"rights": Array<SelectMembers>, // 右边项
"assignmentLines": Array<AssignmentLine>, // 赋值线
"hideProperties": boolean, // hideProperties
"hideDefaults": boolean, // hideDefaults
"autoConnection": boolean, // 自动连线
}
class NewCompositeTreeNode {
ConceptEnum concept; // 产品概念
TypeAnnotationTreeNode typeAnnotation; // 类型
List<IdentifierTreeNode> properties; // 左边项
List<SelectMembersTreeNode> rights; // 右边项
List<AssignmentLineTreeNode> assignmentLines; // 赋值线
boolean hideProperties; // hideProperties
boolean hideDefaults; // hideDefaults
boolean autoConnection; // 自动连线
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/NewComposite",
"definitions": {
"NewComposite": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "NewComposite"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/definitions/Identifier"
}
},
"rights": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectMembers"
}
},
"assignmentLines": {
"type": "array",
"items": {
"$ref": "#/definitions/AssignmentLine"
}
},
"hideProperties": {
"type": "boolean"
},
"hideDefaults": {
"type": "boolean"
},
"autoConnection": {
"type": "boolean"
}
},
"required": [
"concept",
"typeAnnotation",
"properties",
"rights",
"assignmentLines",
"hideProperties",
"hideDefaults",
"autoConnection"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "NewComposite",
"typeAnnotation": null,
"properties": [],
"rights": [],
"assignmentLines": [],
"hideProperties": false,
"hideDefaults": false,
"autoConnection": true
}
concept: NewComposite
typeAnnotation: null
properties: []
rights: []
assignmentLines: []
hideProperties: false
hideDefaults: false
autoConnection: true