blob: 4a73e2f5fe951a057d351c3ac132b56a92afeb6b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2011 Mia-Software.
* 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)
*******************************************************************************/
package org.eclipse.gmt.modisco.infra.common.core.internal.protocol;
import org.eclipse.emf.common.util.URI;
/**
* An implementation of the interface must be provided through the
* org.eclipse.gmt.modisco.common.core.protocolext extension point to register a
* MoDisco sub-protocol.
*
* @author Gregoire DUPE (Mia-Software)
*/
public interface IModiscoProtocolExtension {
/**
* This method returns the uri of the model containing the searched element.
*
* @param name
* the searched element name
*/
public URI getURI(String name);
/**
* This method returns the sub-protocol name. For example, if this method
* returns _query_ then when a URI begins with modisco:/query/ the URI
* resolution will be delegated to this class.
*
* @return the sub-protocol name
*/
public String getSchemeSpecificPart();
}