| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| */ |
| package org.eclipse.osbp.runtime.common.validation; |
| |
| import java.util.Map; |
| import java.util.Set; |
| |
| // TODO: Auto-generated Javadoc |
| /** |
| * A validation participant is used by the dto service, to validate complex |
| * rules. |
| */ |
| public interface IValidationParticipant { |
| |
| /** |
| * Validates the given object and returns status objects in case of warning |
| * or error. |
| * |
| * @param object |
| * The object to be validated |
| * @param kind |
| * The kind of validation to be performed |
| * @param properties |
| * Any kind of key-value pairs |
| * @return the sets the |
| */ |
| public Set<IStatus> validate(Object object, ValidationKind kind, |
| Map<String, Object> properties); |
| |
| } |