blob: e9a89025f8f44a3be462fc3aa790af3a29bb7f2b [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - 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:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*/
package org.eclipse.osbp.ecview.core.common.model.core.util;
import java.util.List;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.osbp.ecview.core.common.model.core.YElement;
/**
* This ItemProvider determines which features of a given YElement may become
* binded.
*/
public interface IBindableFeaturesItemProvider {
/**
* Returns the list of bindable features.
*
* @param element
* @return
*/
List<EStructuralFeature> getBindableFeatures(YElement element);
/**
* Returns the type of the given structural feature. Subclasses can override
* and return a different class. See <code>YTableItemProvider</code> for
* instance.
*
* @param element
* @param feature
* @return
*/
Class<?> getFeatureType(YElement element, EStructuralFeature feature);
}