org.eclipse.mylyn.wikitext.mediawiki.core
Class MediaWikiLanguage
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage
org.eclipse.mylyn.wikitext.mediawiki.core.MediaWikiLanguage
- All Implemented Interfaces:
- Cloneable
public class MediaWikiLanguage
- extends AbstractMarkupLanguage
A markup language for MediaWiki Wikitext markup, which is the wiki format used by several other major sites.
- Since:
- 1.0
- Author:
- David Green
| 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 |
clone, configure, createState, emitMarkupLine, emitMarkupLine, emitMarkupText, getExtendsLanguage, getInternalLinkPattern, getName, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isFilterGenerativeContents, processContent, setBlocksOnly, setExtendsLanguage, setFilterGenerativeContents, setInternalLinkPattern, setName, startBlock |
MediaWikiLanguage
public MediaWikiLanguage()
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
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