public class MarkupLanguageConfiguration
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
MarkupLanguageConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addBlockExtensions(java.util.List<Block> blocks,
java.util.List<Block> paragraphBreakingBlocks) |
void |
addPhraseModifierExtensions(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
Adds
phrase modifiers to the given syntax. |
void |
addTokenExtensions(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax)
Adds
tokens to the given syntax |
MarkupLanguageConfiguration |
clone() |
protected int |
computeInsertPosition(Block block) |
java.util.List<Block> |
getBlocks() |
java.util.Locale |
getLocale()
The locale to use for output, which may affect literals emitted into the output.
|
java.util.List<PatternBasedElement> |
getPhraseModifiers() |
java.util.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()
Indicates 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.
|
java.lang.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(java.util.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(java.lang.Boolean wikiWordLinking)
indicate if WikiWord linking should be enabled if the markup language supports it.
|
public java.util.List<PatternBasedElement> getTokens()
public java.util.List<PatternBasedElement> getPhraseModifiers()
public java.util.List<Block> getBlocks()
public boolean isParagraphBreaking(Block block)
block
- the blockpublic 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(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
phrase modifiers
to the given syntax.phraseModifierSyntax
- public boolean isOptimizeForRepositoryUsage()
public void setOptimizeForRepositoryUsage(boolean optimizeForRepositoryUsage)
public java.lang.Boolean isWikiWordLinking()
public void setWikiWordLinking(java.lang.Boolean wikiWordLinking)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- the locale or null if the default locale should be usedpublic void addBlockExtensions(java.util.List<Block> blocks, java.util.List<Block> paragraphBreakingBlocks)
protected int computeInsertPosition(Block block)
public void addTokenExtensions(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax)
tokens
to the given syntaxtokenSyntax
- the syntax to which tokens should be addedpublic MarkupLanguageConfiguration clone()
clone
in class java.lang.Object
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