blob: a427c639bc2249202950c5e88ab5c6e876f3a448 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2015 David Green 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:
* David Green - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.wikitext.mediawiki.core;
/**
* a means of mapping page names to relative or absolute resources.
*
* @author David Green
*/
public interface PageMapping {
/**
* provide a relative mapping for the given page name.
*
* @param pageName
* the name of the page, for example "Mylyn/User_Guide", ":Category:Mylyn", "#Some_link?" or
* "Main Page#help".
* @return a relative or absolute URL, or null if no mapping is available or if the default mapping should apply.
*/
String mapPageNameToHref(String pageName);
}