Class ModelValidator

    • Constructor Detail

      • ModelValidator

        public ModelValidator​(Logger logger)
    • Method Detail

      • validate

        public boolean validate​(EObject eObject,
                                String name)
        Validates an EObject using a Diagnostician. If the validation is not ok, the result is printed to the console. A name can be specified to enhance the console output.
        Specified by:
        validate in interface IModelValidator
        Parameters:
        eObject - the object to validate
        name - the name of the object
        Returns:
        true if the validation was ok, false otherwise.
        See Also:
        Diagnostician