Mylyn WikiText

org.eclipse.mylyn.wikitext.mediawiki.core
Class MediaWikiLanguage

java.lang.Object
  extended by AbstractMediaWikiLanguage
      extended by org.eclipse.mylyn.wikitext.mediawiki.core.MediaWikiLanguage

public class MediaWikiLanguage
extends AbstractMediaWikiLanguage

A markup language for MediaWiki Wikitext markup, which is the wiki format used by several other major sites.

Since:
1.0
Author:
David Green

Constructor Summary
MediaWikiLanguage()
           
 
Method Summary
protected  void addStandardBlocks(List<Block> blocks, List<Block> paragraphBreakingBlocks)
           
protected  void addStandardPhraseModifiers(PatternBasedSyntax phraseModifierSyntax)
           
protected  void addStandardTokens(PatternBasedSyntax tokenSyntax)
           
 MarkupLanguage clone()
           
protected  Block createParagraphBlock()
           
 IdGenerationStrategy getIdGenerationStrategy()
           
 String getTemplateExcludes()
          Indicate template names to exclude.
 List<TemplateResolver> getTemplateProviders()
           
 List<Template> getTemplates()
           
 void setTemplateExcludes(String templateExcludes)
          Indicate template names to exclude.
 void setTemplateProviders(List<TemplateResolver> templateProviders)
           
 void setTemplates(List<Template> templates)
           
 String toInternalHref(String pageName)
          Convert a page name to an href to the page.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaWikiLanguage

public MediaWikiLanguage()
Method Detail

toInternalHref

public String toInternalHref(String pageName)
Convert a page name to an href to the page.

Parameters:
pageName - the name of the page to target
Returns:
the href to access the page
See Also:
MarkupLanguage.getInternalLinkPattern()

getIdGenerationStrategy

public IdGenerationStrategy getIdGenerationStrategy()

addStandardBlocks

protected void addStandardBlocks(List<Block> blocks,
                                 List<Block> paragraphBreakingBlocks)

addStandardPhraseModifiers

protected void addStandardPhraseModifiers(PatternBasedSyntax phraseModifierSyntax)

addStandardTokens

protected void addStandardTokens(PatternBasedSyntax tokenSyntax)

createParagraphBlock

protected Block createParagraphBlock()

getTemplates

public List<Template> getTemplates()
Since:
1.3

setTemplates

public void setTemplates(List<Template> templates)
Since:
1.3

getTemplateProviders

public List<TemplateResolver> getTemplateProviders()
Since:
1.3

setTemplateProviders

public void setTemplateProviders(List<TemplateResolver> templateProviders)
Since:
1.3

clone

public MarkupLanguage clone()

setTemplateExcludes

public void setTemplateExcludes(String templateExcludes)
Indicate template names to exclude.

Parameters:
templateExcludes - a comma-delimited list of names, may include '*' wildcards
Since:
1.3

getTemplateExcludes

public String getTemplateExcludes()
Indicate template names to exclude.

Returns:
a comma-delimited list of names, may include '*' wildcards, or null if none are to be excluded
Since:
1.3

Mylyn WikiText

Copyright © 2007, 2009 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