Class ModelValidator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.validate.ModelValidator
-
- All Implemented Interfaces:
IModelValidator
public class ModelValidator extends Object implements IModelValidator
-
-
Constructor Summary
Constructors Constructor Description ModelValidator(Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(EObject eObject, String name)
Validates an EObject using a Diagnostician.
-
-
-
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 interfaceIModelValidator
- Parameters:
eObject
- the object to validatename
- the name of the object- Returns:
- true if the validation was ok, false otherwise.
- See Also:
Diagnostician
-
-