public class TWikiLanguage extends AbstractMarkupLanguage
AbstractMarkupLanguage.PatternBasedSyntax
blocks, configuration, internalLinkPattern, paragraphBreakingBlocks, phraseModifierSyntax, tokenSyntax
Constructor and Description |
---|
TWikiLanguage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addStandardBlocks(java.util.List<Block> blocks,
java.util.List<Block> paragraphBreakingBlocks) |
protected void |
addStandardPhraseModifiers(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax) |
protected void |
addStandardTokens(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax) |
protected void |
clearLanguageSyntax() |
boolean |
computeInternalLinkExists(java.lang.String link)
for the purpose of converting wiki words into links, determine if the wiki word exists.
|
protected Block |
createParagraphBlock() |
java.lang.String |
getIconPattern()
the pattern to use when generating icon image urls.
|
protected AbstractMarkupLanguage.PatternBasedSyntax |
getPhraseModifierSyntax() |
protected AbstractMarkupLanguage.PatternBasedSyntax |
getReplacementTokenSyntax() |
boolean |
isAutoLinking() |
boolean |
isLiteralMode()
indicate if we're currently processing a literal block
|
void |
setAutoLinking(boolean isAutoLinking) |
void |
setIconPattern(java.lang.String iconPattern)
the pattern to use when generating icon image urls.
|
void |
setLiteralMode(boolean literalMode)
indicate if we're currently processing a literal block
|
java.lang.String |
toIconUrl(java.lang.String iconType) |
java.lang.String |
toInternalHref(java.lang.String pageName)
Convert a page name to an href to the page.
|
addBlockExtensions, addPhraseModifierExtensions, addTokenExtensions, clone, configure, createState, emitMarkupLine, emitMarkupLine, emitMarkupText, getBlocks, getInternalLinkPattern, getParagraphBreakingBlocks, initializeBlocks, initializePhraseModifiers, initializeTokens, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isEnableMacros, isFilterGenerativeContents, processContent, setBlocksOnly, setEnableMacros, setFilterGenerativeContents, setInternalLinkPattern, startBlock
createDocumentBuilder, createDocumentBuilder, getExtendsLanguage, getFileExtensions, getIdGenerationStrategy, getName, setExtendsLanguage, setFileExtensions, setName
protected AbstractMarkupLanguage.PatternBasedSyntax getPhraseModifierSyntax()
getPhraseModifierSyntax
in class AbstractMarkupLanguage
protected AbstractMarkupLanguage.PatternBasedSyntax getReplacementTokenSyntax()
getReplacementTokenSyntax
in class AbstractMarkupLanguage
protected void clearLanguageSyntax()
clearLanguageSyntax
in class AbstractMarkupLanguage
public boolean computeInternalLinkExists(java.lang.String link)
WikiWordReplacementToken
public java.lang.String toInternalHref(java.lang.String pageName)
pageName
- the name of the page to target, usually a WikiWord with whitespace removed#getInternalPageHrefPrefix()
public java.lang.String toIconUrl(java.lang.String iconType)
public boolean isLiteralMode()
LiteralBlock
public void setLiteralMode(boolean literalMode)
LiteralBlock
public void setIconPattern(java.lang.String iconPattern)
public java.lang.String getIconPattern()
public boolean isAutoLinking()
public void setAutoLinking(boolean isAutoLinking)
protected void addStandardBlocks(java.util.List<Block> blocks, java.util.List<Block> paragraphBreakingBlocks)
addStandardBlocks
in class AbstractMarkupLanguage
protected void addStandardPhraseModifiers(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
addStandardPhraseModifiers
in class AbstractMarkupLanguage
protected void addStandardTokens(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax)
addStandardTokens
in class AbstractMarkupLanguage
protected Block createParagraphBlock()
createParagraphBlock
in class AbstractMarkupLanguage
Copyright © 2007, 2013 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