Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ef3f2c1eca2411c5f579e3049c4d7f64b5978bb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*****************************************************************************
 * Copyright (c) 2016 CEA LIST and others.
 * 
 * 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:
 *   CEA LIST - Initial API and implementation
 *   
 *****************************************************************************/

package org.eclipse.papyrus.infra.services.validation;

import org.eclipse.emf.ecore.EObject;

/**
 * This interface is used to identify whether a diagnostician or validation hook is applicable
 * for a given element
 */
public interface IValidationFilter {
	/**
	 * Check whether a hook or diagnostician is applicable
	 * @param element an element of a model
	 * @return true, if applicable
	 */
	public boolean isApplicable(EObject element);
}

Back to the top