EntityIndex 实体索引
1. 结构声明
- TS Declaration
- JSON Schema
class EntityIndex extends BaseNode {
name: string = '';
indexName?: string;
propertyNames: Array<string>;
unique: boolean;
description?: string;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"indexName": {
"type": "string"
},
"propertyNames": {
"type": "array",
"items": {
"type": "string"
}
},
"unique": {
"type": "boolean"
},
"description": {
"type": "string"
}
},
"required": [
"name",
"propertyNames",
"unique"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "EntityIndex",
"name": "nameIndex",
"propertyNames": [
"name"
],
"unique": true
}
concept: EntityIndex
name: nameIndex
propertyNames:
- name
unique: true
对应的代码如下:
- 文本化 NASL
- Natural TS
[编译方法未实现]