Interface MdibValidator
-
- All Implemented Interfaces:
public interface MdibValidatorInterface for MDIB validators.
Register MDIB validators by using installValidator.
-
-
Method Summary
Modifier and Type Method Description Unitinit()Called before any validation step is executed. Unitvalidate(Mdib mdib, ComponentTree.Root componentTree)Validator that is executed after the entire tree has been constructed. UnitvisitPreInit(VersionedMdibComponent component)An MDIB component visitor that is called back during tree construction for each node before initialization. UnitvisitPostInit(VersionedMdibComponent component)An MDIB component visitor that is called back during tree construction for each node after initialization. abstract StringgetName()Human-readable name for the validator instance. -
-
Method Detail
-
validate
Unit validate(Mdib mdib, ComponentTree.Root componentTree)
Validator that is executed after the entire tree has been constructed.
Use
error(message: String)to stop MDIB creation and throw an error. In order to increase usability, provide a path to the object where the error occurred by using org.somda.dsl.biceps.base.tree.VersionedMdibComponent.cursor.If not implemented, performs nothing.
-
visitPreInit
Unit visitPreInit(VersionedMdibComponent component)
An MDIB component visitor that is called back during tree construction for each node before initialization.
Use
error(message: String)to stop MDIB creation and throw an error.The path to the current node is printed to the error output automatically.
If not implemented, performs nothing.
-
visitPostInit
Unit visitPostInit(VersionedMdibComponent component)
An MDIB component visitor that is called back during tree construction for each node after initialization.
Use
error(message: String)to stop MDIB creation and throw an error.The path to the current node is printed to the error output automatically.
If not implemented, performs nothing.
-
-
-
-