blob: e166067f2565912c8f8c2ea55e3ccc11fb17940b [file] [log] [blame]
/**
* 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.dsl.xtext.lazyresolver.api;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.common.types.JvmGenericType;
import org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociations;
// TODO: Auto-generated Javadoc
/**
* The Interface IIndexModelAssociator.
*/
public interface IIndexModelAssociator extends IJvmModelAssociations {
/**
* If a semantic element like an LDto will generate different jvmTypes like
* Dto and DtoMapper, this allows to register the sourceElement and the
* jvmElement by a given selector.
*
* @param sourceElement
* the source element
* @param jvmElement
* the jvm element
* @param selector
* the selector
*/
void associateBySelector(EObject sourceElement, JvmGenericType jvmElement,
String selector);
/**
* This method returns the registered jvmType by its source element and the
* given selector. See
* {@link #associateBySelector(EObject, JvmGenericType, String)}.
*
* @param sourceElement
* the source element
* @param selector
* the selector
* @return the by selector
*/
JvmGenericType getBySelector(EObject sourceElement, String selector);
}