Skip to main content

KSML Annotations

0. Overview

Attribute NameLink to Detailed Table
_featuresfeatures on Type level
_ui-hiddenis this element hide on UI
_ui-typeui component adviced
_constantindict if this Type is for defining constant Type
_identifierextra _identifier fields
_namename of the Type
_actionDescriptorindict if this Type is an action describor
_ui-no-candidateno candicate for the ui field
_ui-with-custom-candidatecustom the the candite list
_view_objectindict if this Type is a view object

1. _features

Attribute NameExample
_features_features="laboratory_function"
_features_features="no_sample_data"

2. _ui-hidden

Attribute NameExample
_ui-hidden_ui-hidden="true"

3. _ui-type

Attribute NameExample
_ui-type_ui-type="text"
_ui-type_ui-type="single-select"
_ui-type_ui-type="checkbox"
_ui-type_ui-type="action-links"
_ui-type_ui-type="table"
_ui-type_ui-type="adjustable-weight"
_ui-type_ui-type="radio"
_ui-type_ui-type="import-message"
_ui-type_ui-type="weight"

4. _constant

Attribute NameExample
_constant_constant="true"

5. _identifier

Attribute NameExample
_identifier_identifier="code"

6. _name

Attribute NameExample
_name_name="Liquid Factory"
_name_name="Employee"
_name_name="Task Type"
_name_name="Analysis Standard"
_name_name="Analysis Report"
_name_name="Liquid Container"
_name_name="Truck Manager"
_name_name="Workstation Binding"
_name_name="Certificate Type"

7. _actionDescriptor

Attribute NameExample
_actionDescriptor_actionDescriptor="true"

8. _ui_no-candidate

Attribute NameExample
_ui_no-candidate_ui_no-candidate="true"

9. _ui_with-custom-candidate

Attribute NameExample
_ui_with-custom-candidate_ui_with-custom-candidate="true"

10. _view_object

Attribute NameExample
_view_object_view_object="true"

11. Hard Encryption _hard_encrypt

Attribute NameExample
_hard_encrypt_hard_encrypt="field"
<employee salary="140000" _soft_encrypt="salary" />

hard_encrypt means can NOT be changed during runtime and always be serialized as encrypt object.

12. Soft Encryption _soft_encrypt

Attribute NameExample
_soft_encrypt_soft_encrypt="age"
<employee age="140" _soft_encrypt="age" />

_soft_encrypt means CAN be changed during runtime and be serialized as encrypt object by default but can be controlled by code.