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

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
      extended by org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage
          extended by org.eclipse.mylyn.internal.wikitext.mediawiki.core.AbstractMediaWikiLanguage
              extended by org.eclipse.mylyn.wikitext.mediawiki.core.MediaWikiLanguage
All Implemented Interfaces:
Cloneable

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
MarkupLanguage.PatternBasedSyntax
 
Field Summary
 
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage
blocks, paragraphBreakingBlocks, phraseModifierSyntax, tokenSyntax
 
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
configuration, internalLinkPattern
 
Constructor Summary
MediaWikiLanguage()
           
 
Method Summary
protected  void addStandardBlocks(List<Block> blocks, List<Block> paragraphBreakingBlocks)
           
protected  void addStandardPhraseModifiers(MarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
           
protected  void addStandardTokens(MarkupLanguage.PatternBasedSyntax tokenSyntax)
           
 MarkupLanguage clone()
           
protected  Block createParagraphBlock()
           
 IdGenerationStrategy getIdGenerationStrategy()
          get the id strategy employed by this markup language.
 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 org.eclipse.mylyn.internal.wikitext.mediawiki.core.AbstractMediaWikiLanguage
getPageMapping, mapPageNameToHref, processContent, setPageMapping
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage
addBlockExtensions, addPhraseModifierExtensions, addTokenExtensions, clearLanguageSyntax, getBlocks, getParagraphBreakingBlocks, getPhraseModifierSyntax, getReplacementTokenSyntax, initializeBlocks, initializePhraseModifiers, initializeSyntax, initializeTokens
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
configure, createState, emitMarkupLine, emitMarkupLine, emitMarkupText, getExtendsLanguage, getInternalLinkPattern, getName, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isEnableMacros, isFilterGenerativeContents, setBlocksOnly, setEnableMacros, setExtendsLanguage, setFilterGenerativeContents, setInternalLinkPattern, setName, startBlock
 
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()
Description copied from class: MarkupLanguage
get the id strategy employed by this markup language.

Overrides:
getIdGenerationStrategy in class MarkupLanguage

addStandardBlocks

protected void addStandardBlocks(List<Block> blocks,
                                 List<Block> paragraphBreakingBlocks)
Specified by:
addStandardBlocks in class AbstractMarkupLanguage

addStandardPhraseModifiers

protected void addStandardPhraseModifiers(MarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
Specified by:
addStandardPhraseModifiers in class AbstractMarkupLanguage

addStandardTokens

protected void addStandardTokens(MarkupLanguage.PatternBasedSyntax tokenSyntax)
Specified by:
addStandardTokens in class AbstractMarkupLanguage

createParagraphBlock

protected Block createParagraphBlock()
Specified by:
createParagraphBlock in class AbstractMarkupLanguage

getTemplates

public List<Template> getTemplates()
Specified by:
getTemplates in class AbstractMediaWikiLanguage
Since:
1.3

setTemplates

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

getTemplateProviders

public List<TemplateResolver> getTemplateProviders()
Specified by:
getTemplateProviders in class AbstractMediaWikiLanguage
Since:
1.3

setTemplateProviders

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

clone

public MarkupLanguage clone()
Overrides:
clone in class MarkupLanguage

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.

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


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.