30
 Eclipse UML2 Project  |  Technology Exchange  |  © 2004 IBM Corporation
Element Validation - Example
IStatus status = Uml2Validator.INSTANCE.validate(element, new NullProgressMonitor() {
    public void subTask(String name) {
        System.out.println(name);
    }
});
if (IStatus.OK != status.getSeverity()) {
    for (int i = 0; i < status.getChildren().length; i++) {
        System.err.println(status.getChildren()[i].getMessage());
    }
}