Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0fae0918b481adba07dd7080cdd3c78057874225 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
 * Copyright (c) 2012 CEA LIST.
 * 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:
 *    Gregoire Dupe (Mia-Software) - Bug 375087 - [Table] ITableWidget.addColumn(List<ETypedElement>, List<FacetSet>)
 *    Gregoire Dupe (Mia-Software) - Bug 372626 - Aggregates
 */
package org.eclipse.papyrus.emf.facet.efacet.core.internal.exported;

import java.util.List;

/**
 * The interface has to be implemented to contribute to the extension point
 * 'org.eclipse.papyrus.emf.facet.efacet.core.internal.resolver'.
 */
public interface IResolver {

	/**
	 * Return true is the parameter object can be handle by the implementation
	 * of this interface.
	 *
	 * @param object
	 * @return
	 */
	boolean canHandle(Object object);

	/**
	 * If the parameter 'object' is a proxy, this method returns the
	 * corresponding a resolved object.
	 *
	 * @param object
	 *            a proxy
	 * @param aClass
	 *            the expected resolved object
	 */
	<T> T resolve(Object object, Class<T> aClass);

	/**
	 * This method returns the objects that have to be automatically selected
	 * when the parameter 'selectedObject' is selected.
	 *
	 * @param selectedObject
	 * @param aClass
	 *            the expected list elements type.
	 */
	<T> List<T> selectionPropagation(Object selectedObject, Class<T> aClass);

	/**
	 * This method returns the root of the objects that have to be automatically
	 * selected when the parameter 'selectedObject' is selected.
	 *
	 * @param selectedObject
	 * @param aClass
	 *            the expected list elements type.
	 */
	<T> T selectionRoot(Object selectedObject, Class<T> aClass);
}

Back to the top