71 lines
1.5 KiB
Plaintext
71 lines
1.5 KiB
Plaintext
|
|
Notwendige Operationen
|
|
----------------------
|
|
|
|
- Deskriptoren lesen
|
|
- Objekte listen
|
|
- Objekt erstellen
|
|
- Objekt ändern
|
|
- Objekt entfernen
|
|
- Objekt aktivieren
|
|
- Objekt deaktivieren
|
|
|
|
|
|
|
|
Typen:
|
|
|
|
referenz "ref"
|
|
|
|
integer "integer"
|
|
double "double"
|
|
string "string"
|
|
|
|
MAC "mac"
|
|
IPv4 "ip4"
|
|
IPv6 "ip6"
|
|
|
|
enum ["VALUE1","VALUE2","VALUE3"] // 1-of-N (Value)
|
|
{ FLAG1: 1, FLAG2: 2, FLAG3: 16} // M-of-N (Bitmask)
|
|
|
|
|
|
PropertyDescriptor
|
|
------------------
|
|
|
|
{
|
|
name: "aReferencingProperty",
|
|
type: "ref",
|
|
readonly: false,
|
|
lookup: "/a/path/to/valid/objects",
|
|
hint: "You may choose an object from the list of currently active ones",
|
|
}
|
|
{
|
|
name: "aEnumerationProperty",
|
|
type: ["NONE","PRIMARY","SECONDARY"],
|
|
readonly: true,
|
|
lookup: "/a/path/to/valid/objects",
|
|
}
|
|
|
|
ObjectDescriptor
|
|
----------------
|
|
|
|
{
|
|
name: "someName", // Name of this type
|
|
readonly: false, // Objects can be created at this object level
|
|
cosmetic: false, // This type is not real but to be used for grouping, menu layout, etc.
|
|
hint: "Some text to descripe this object type",
|
|
properties: { // Describe all the properties, that are associated with this type
|
|
aPropertyName: { ... },
|
|
...
|
|
},
|
|
children: { // ObjectDescriptors for ObjectTypes below this object level
|
|
nameOfSomeType: <ObjectDescriptor>,
|
|
...
|
|
},
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|