ValidationService¶
-
class
ValidationService¶
Validation Service class for validating C++ model API objects of type Entity
- void
validate(const path::ServiceProvider &provider, Entity &entity, ValidationService::Option option)¶Validates an entity based on the option.
Parameters:
- provider – An instance of
ServiceProvider- entity – An instance of
Entityclass defined under a bundle- option – An instance of type Option<Option>
Returns: An instance of
EntityDiagnosticRaises YCPPError: If validation errors were detected
- enum
Option¶All validation is performed in the context of some operation. These options capture the context of use.
- enumerator
DATASTORE¶Datastore validation.
- enumerator
GET_CONFIG¶Get config validation. Checks to see if only config nodes are references.
- enumerator
GET¶Get validation.
- enumerator
EDIT_CONFIG¶Edit validation. Checks on the values of leafs etc.
- virtual
~ValidationService()¶