|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguageConfiguration
public class MarkupLanguageConfiguration
A configuration for a markup language, which enables client code to modify the syntax of the markup language by adding blocks, phrase modifiers, and tokens. Also provides a mechanism for disabling some common markup language features.
Constructor Summary | |
---|---|
MarkupLanguageConfiguration()
|
Method Summary | |
---|---|
void |
addBlockExtensions(List<Block> blocks,
List<Block> paragraphBreakingBlocks)
|
void |
addPhraseModifierExtensions(MarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
Indicate if newlines in the markup must cause a line break. |
void |
addTokenExtensions(MarkupLanguage.PatternBasedSyntax tokenSyntax)
|
MarkupLanguageConfiguration |
clone()
|
protected int |
computeInsertPosition(Block block)
|
List<Block> |
getBlocks()
|
Locale |
getLocale()
The locale to use for output, which may affect literals emitted into the output. |
List<PatternBasedElement> |
getPhraseModifiers()
|
List<PatternBasedElement> |
getTokens()
|
boolean |
isEnableUnwrappedParagraphs()
indicate if unwrapped paragraphs should be supported. |
boolean |
isEscapingHtmlAndXml()
Indicate if this language should escape HTML and XML tags. |
boolean |
isNewlinesMustCauseLineBreak()
Indicate if newlines in the markup must cause a line break. |
boolean |
isOptimizeForRepositoryUsage()
indicate if the markup syntax should be optimized for use with a task repository. |
boolean |
isParagraphBreaking(Block block)
Indicate if the given block should break paragraph content even if there is no blank line preceding it. |
Boolean |
isWikiWordLinking()
indicate if WikiWord linking should be enabled if the markup language supports it. |
void |
setEnableUnwrappedParagraphs(boolean enableUnwrappedParagraphs)
indicate if unwrapped paragraphs should be supported. |
void |
setEscapingHtmlAndXml(boolean escapingHtmlAndXml)
Indicate if this language should escape HTML and XML tags. |
void |
setLocale(Locale locale)
The locale to use for output, which may affect literals emitted into the output. |
void |
setNewlinesMustCauseLineBreak(boolean newlinesMustCauseLineBreak)
Indicate if newlines in the markup must cause a line break. |
void |
setOptimizeForRepositoryUsage(boolean optimizeForRepositoryUsage)
indicate if the markup syntax should be optimized for use with a task repository. |
void |
setWikiWordLinking(Boolean wikiWordLinking)
indicate if WikiWord linking should be enabled if the markup language supports it. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkupLanguageConfiguration()
Method Detail |
---|
public List<PatternBasedElement> getTokens()
public List<PatternBasedElement> getPhraseModifiers()
public List<Block> getBlocks()
public boolean isParagraphBreaking(Block block)
block
- the block
public boolean isEscapingHtmlAndXml()
public void setEscapingHtmlAndXml(boolean escapingHtmlAndXml)
public boolean isEnableUnwrappedParagraphs()
public void setEnableUnwrappedParagraphs(boolean enableUnwrappedParagraphs)
public boolean isNewlinesMustCauseLineBreak()
public void setNewlinesMustCauseLineBreak(boolean newlinesMustCauseLineBreak)
public void addPhraseModifierExtensions(MarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
public boolean isOptimizeForRepositoryUsage()
public void setOptimizeForRepositoryUsage(boolean optimizeForRepositoryUsage)
public Boolean isWikiWordLinking()
public void setWikiWordLinking(Boolean wikiWordLinking)
public Locale getLocale()
public void setLocale(Locale locale)
locale
- the locale or null if the default locale should be usedpublic void addBlockExtensions(List<Block> blocks, List<Block> paragraphBreakingBlocks)
protected int computeInsertPosition(Block block)
public void addTokenExtensions(MarkupLanguage.PatternBasedSyntax tokenSyntax)
public MarkupLanguageConfiguration clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |