info.bliki.wiki.model
Class AbstractWikiModel

java.lang.Object
  extended by info.bliki.wiki.model.AbstractWikiModel
All Implemented Interfaces:
IConfiguration, IWikiModel
Direct Known Subclasses:
WikiModel

public abstract class AbstractWikiModel
extends java.lang.Object
implements IWikiModel

Standard model implementation


Constructor Summary
AbstractWikiModel()
           
AbstractWikiModel(Configuration configuration)
           
AbstractWikiModel(Configuration configuration, java.util.Locale locale)
           
AbstractWikiModel(Configuration configuration, java.util.ResourceBundle resourceBundle)
           
 
Method Summary
 void addCategory(java.lang.String categoryName, java.lang.String sortKey)
          When an article contains a token indicating that the article belongs to a specific category this method should be called to add that category to the output metadata.
 SourceCodeFormatter addCodeFormatter(java.lang.String key, SourceCodeFormatter value)
          Add a new source code formatter to the configuration
 java.lang.String addInterwikiLink(java.lang.String key, java.lang.String value)
          Add a new interwiki link to the configuration
 void addLink(java.lang.String topicName)
          When a document contains a token indicating that the document links to another Wiki topic this method should be called to add that topic link to the output metadata.
 boolean addSemanticAttribute(java.lang.String attribute, java.lang.String attributeValue)
           
 boolean addSemanticRelation(java.lang.String relation, java.lang.String relationValue)
           
 void addTemplate(java.lang.String template)
          When a document contains a token indicating that the document includes a Wiki template this method should be called to add that template to the output metadata.
 ITemplateFunction addTemplateFunction(java.lang.String key, ITemplateFunction value)
          Add a new interwiki link to the configuration
 TagToken addTokenTag(java.lang.String key, TagToken value)
          Add a new HTML styled tag to the configuration
 java.lang.String[] addToReferences(java.lang.String reference, java.lang.String nameAttribute)
          Add a reference (i.e. footnote) to the internal list
 void append(BaseToken contentNode)
          Append the content as a child on the top node of the internal stack
 void appendExternalImageLink(java.lang.String imageSrc, java.lang.String imageAltText)
          Append an external wiki image link (starting with http, https,... and ending with gif, png, jpg, bmp)
 void appendExternalLink(java.lang.String link, java.lang.String linkName, boolean withoutSquareBrackets)
          Append an external link (starting with http, https, ftp,...) as described in Help Links
 void appendInternalImageLink(java.lang.String hrefImageLink, java.lang.String srcImageLink, ImageFormat imageFormat)
          Append this internal wiki image link
 void appendInternalLink(java.lang.String link, java.lang.String hashSection, java.lang.String linkText)
          Append an internal wikilink as described in Help Links
 void appendInterWikiLink(java.lang.String namespace, java.lang.String title, java.lang.String linkText)
          Append an InterWiki link
 void appendISBNLink(java.lang.String isbnPureText)
          Append an external ISBN link (starting with ISBN ) as described in Wikipedia:ISBN

Note: The default implementation in the AbstractWikiModel class creates a link to Amazon.com.
 void appendMailtoLink(java.lang.String link, java.lang.String linkName, boolean withoutSquareBrackets)
          Append an external link (starting with mailto:...) as described in Help:Wikitext#Links
 boolean appendRedirectLink(java.lang.String redirectLink)
          Append the redirect link to the model
 void appendStack(TagStack stack)
           
 void buildEditLinkUrl(int section)
          Build the link to edit a section of the wikipedia article
 int decrementRecursionLevel()
          Increment the current recursion level of the parser
 java.lang.String get2ndCategoryNamespace()
          Get the secondary namespace (i.e. the namespace for a non-englich locale) for categories in this wiki
 java.lang.String get2ndImageNamespace()
          Get the secondary namespace (i.e. the namespace for a non-englich locale) for images in this wiki
 java.lang.String get2ndTemplateNamespace()
          Get the secondary namespace (i.e. the namespace for a non-englich locale) for templates in this wiki
 java.lang.String getCategoryNamespace()
          Get the primary namespace for categories in this wiki
 java.util.Map<java.lang.String,SourceCodeFormatter> getCodeFormatterMap()
          Get the source code formatter map of built-in source code formatters
 java.lang.String getImageNamespace()
          Get the primary namespace for images in this wiki
 java.util.Map<java.lang.String,java.lang.String> getInterwikiMap()
          Get the interwiki links map for converting interwiki links into external URLs.
 TagToken getNode(int offset)
          Get the node at the given offset on the internal stack
 java.lang.String getRawWikiContent(java.lang.String namespace, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.String> templateParameters)
          Get the raw wiki text for the given namespace and article name.
 int getRecursionLevel()
          Get the current recursion level of the parser
 java.lang.String getRedirectLink()
          Get the redirect link.
 java.util.List<Reference> getReferences()
          Get the internal list of references (i.e. footnotes)
 java.util.ResourceBundle getResourceBundle()
          Get the resource bundle associated with this model for I18N support
 java.util.List<SemanticAttribute> getSemanticAttributes()
          Get the list of SemanticAttributes
 java.util.List<SemanticRelation> getSemanticRelations()
          Get the list of SemanticRelations.
 TableOfContentTag getTableOfContentTag(boolean isTOCIdentifier)
          Get the "table of content" placeholder
 ITemplateFunction getTemplateFunction(java.lang.String name)
          Get a template parser function (i.e.
 java.util.Map<java.lang.String,ITemplateFunction> getTemplateMap()
          Get the template parser functions map of built-in template functions
 java.lang.String getTemplateNamespace()
          Get the primary namespace for templates in this wiki
 java.util.Map<java.lang.String,TagToken> getTokenMap()
          Get the HTML styled tag map for built-in tags
 IEventListener getWikiListener()
          Get the current defined wiki listener
 int incrementRecursionLevel()
          Increment the current recursion level of the parser
 boolean isCategoryNamespace(java.lang.String namespace)
          Check if the given namespace is a category namespace
 boolean isImageNamespace(java.lang.String namespace)
          Check if the given namespace is a image namespace
 boolean isInterWiki(java.lang.String namespace)
          Check if the given namespace for an interwiki link
 boolean isNamespace(java.lang.String namespace)
          Check if the given namespace is a namespace in this model
 boolean isSemanticWebActive()
          Allow the parsing of semantic mediawiki (SMW) links See Semantic MediaWiki for more information.
 boolean isTemplateNamespace(java.lang.String namespace)
          Check if the given namespace is a template namespace
 boolean isTemplateTopic()
          Determine if the currently parsed wiki text is a template.
 boolean parseBBCodes()
          Parse phpBB like syntax codes in this wiki
 void parseEvents(IEventListener listener, java.lang.String rawWikiText)
          Parse the raw Wikipedia text and notify the listener
 java.lang.String parseTemplates(java.lang.String rawWikiText)
          Parse the templates in a raw wikipedia text into a resulting wikipedia text.
 TagToken peekNode()
          Get the current TagNode on top of the internal stack
 TagToken popNode()
          Pop the current TagNode from top of the internal stack
 boolean pushNode(TagToken node)
          Push the given TagNode on top of the internal stack
 java.lang.String render(ITextConverter converter, java.lang.String rawWikiText)
          Render the raw Wikipedia text into an HTML string
 java.lang.String render(java.lang.String rawWikiText)
          Render the raw Wikipedia text into an HTML string and use the default HTMLConverter
 java.lang.String renderLaTeX(java.lang.String rawWikiText)
           
 java.lang.String renderPDF(java.lang.String rawWikiText)
          Render the raw Wikipedia text into an HTML string and use the default PDFConverter.
 boolean replaceColon()
          Replace a colon ':' with a slash '/' in wiki names (i.e. links, categories, templates)
 void setSemanticWebActive(boolean semanticWeb)
          Activate the parsing of semantic Mediawiki (SMW) links See Semantic MediaWiki for more information.
 void setUp()
          Prepare or initialize the wiki model before rendering the wikipedia text
 boolean showSyntax(java.lang.String tagName)
          Show the syntax highlighting of the source code
 int stackSize()
          The size of the internal stack
 TagStack swapStack(TagStack stack)
           
 void tearDown()
          Clean up (i.e. free internal resources) in the wiki model after rendering the wikipedia text, if necessary
 java.util.List<BaseToken> toNodeList(java.lang.String rawWikiText)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.bliki.wiki.model.IWikiModel
getLinks, parseInternalImageLink
 

Constructor Detail

AbstractWikiModel

public AbstractWikiModel()

AbstractWikiModel

public AbstractWikiModel(Configuration configuration)

AbstractWikiModel

public AbstractWikiModel(Configuration configuration,
                         java.util.Locale locale)

AbstractWikiModel

public AbstractWikiModel(Configuration configuration,
                         java.util.ResourceBundle resourceBundle)
Method Detail

addCategory

public void addCategory(java.lang.String categoryName,
                        java.lang.String sortKey)
Description copied from interface: IWikiModel
When an article contains a token indicating that the article belongs to a specific category this method should be called to add that category to the output metadata.

Specified by:
addCategory in interface IWikiModel
Parameters:
categoryName - The name of the category that the document belongs to.
sortKey - The sort key for the category, or null if no sort key has been specified. The sort key determines what order categories are sorted on category index pages, so a category for "John Doe" might be given a sort key of "Doe, John".

addCodeFormatter

public SourceCodeFormatter addCodeFormatter(java.lang.String key,
                                            SourceCodeFormatter value)
Description copied from interface: IConfiguration
Add a new source code formatter to the configuration

Specified by:
addCodeFormatter in interface IConfiguration
Returns:

addInterwikiLink

public java.lang.String addInterwikiLink(java.lang.String key,
                                         java.lang.String value)
Description copied from interface: IConfiguration
Add a new interwiki link to the configuration

Specified by:
addInterwikiLink in interface IConfiguration
Parameters:
key - the prefix used in the interwiki link (i.e. [[prefix:...]] )
value - the external link which should be generated from the interwiki link
Returns:

addLink

public void addLink(java.lang.String topicName)
Description copied from interface: IWikiModel
When a document contains a token indicating that the document links to another Wiki topic this method should be called to add that topic link to the output metadata.

Specified by:
addLink in interface IWikiModel
Parameters:
topicName - The name of the topic that is linked to.

addSemanticAttribute

public boolean addSemanticAttribute(java.lang.String attribute,
                                    java.lang.String attributeValue)
Specified by:
addSemanticAttribute in interface IWikiModel

addSemanticRelation

public boolean addSemanticRelation(java.lang.String relation,
                                   java.lang.String relationValue)
Specified by:
addSemanticRelation in interface IWikiModel

addTemplate

public void addTemplate(java.lang.String template)
Description copied from interface: IWikiModel
When a document contains a token indicating that the document includes a Wiki template this method should be called to add that template to the output metadata.

Specified by:
addTemplate in interface IWikiModel
Parameters:
template - The name of the template that is being included.

addTemplateFunction

public ITemplateFunction addTemplateFunction(java.lang.String key,
                                             ITemplateFunction value)
Description copied from interface: IConfiguration
Add a new interwiki link to the configuration

Specified by:
addTemplateFunction in interface IConfiguration
Returns:

addTokenTag

public TagToken addTokenTag(java.lang.String key,
                            TagToken value)
Description copied from interface: IConfiguration
Add a new HTML styled tag to the configuration

Specified by:
addTokenTag in interface IConfiguration
Returns:

addToReferences

public java.lang.String[] addToReferences(java.lang.String reference,
                                          java.lang.String nameAttribute)
Description copied from interface: IWikiModel
Add a reference (i.e. footnote) to the internal list

Specified by:
addToReferences in interface IWikiModel
Parameters:
reference - the rendered HTML code of the ref-Tag body
nameAttribute - the value of the name attribute or null
Returns:
the current offset (i.e. size()-1) of the element in the list

append

public void append(BaseToken contentNode)
Description copied from interface: IWikiModel
Append the content as a child on the top node of the internal stack

Specified by:
append in interface IWikiModel

appendExternalImageLink

public void appendExternalImageLink(java.lang.String imageSrc,
                                    java.lang.String imageAltText)
Description copied from interface: IWikiModel
Append an external wiki image link (starting with http, https,... and ending with gif, png, jpg, bmp)

Specified by:
appendExternalImageLink in interface IWikiModel

appendExternalLink

public void appendExternalLink(java.lang.String link,
                               java.lang.String linkName,
                               boolean withoutSquareBrackets)
Description copied from interface: IWikiModel
Append an external link (starting with http, https, ftp,...) as described in Help Links

Specified by:
appendExternalLink in interface IWikiModel
Parameters:
link - the external link with http://, https:// or ftp:// prefix
linkName - the link name which is separated from the URL by a space
withoutSquareBrackets - if true a link with no square brackets around the link was parsed

appendInternalImageLink

public void appendInternalImageLink(java.lang.String hrefImageLink,
                                    java.lang.String srcImageLink,
                                    ImageFormat imageFormat)
Description copied from interface: IWikiModel
Append this internal wiki image link

Specified by:
appendInternalImageLink in interface IWikiModel

appendInternalLink

public void appendInternalLink(java.lang.String link,
                               java.lang.String hashSection,
                               java.lang.String linkText)
Description copied from interface: IWikiModel
Append an internal wikilink as described in Help Links

Specified by:
appendInternalLink in interface IWikiModel

appendInterWikiLink

public void appendInterWikiLink(java.lang.String namespace,
                                java.lang.String title,
                                java.lang.String linkText)
Description copied from interface: IWikiModel
Append an InterWiki link

Specified by:
appendInterWikiLink in interface IWikiModel

appendISBNLink

public void appendISBNLink(java.lang.String isbnPureText)
Description copied from interface: IWikiModel
Append an external ISBN link (starting with ISBN ) as described in Wikipedia:ISBN

Note: The default implementation in the AbstractWikiModel class creates a link to Amazon.com.

Specified by:
appendISBNLink in interface IWikiModel
Parameters:
isbnPureText - the pure ISBN string which contains the ISBN prefix and optional dashes in the ISBN number

appendMailtoLink

public void appendMailtoLink(java.lang.String link,
                             java.lang.String linkName,
                             boolean withoutSquareBrackets)
Description copied from interface: IWikiModel
Append an external link (starting with mailto:...) as described in Help:Wikitext#Links

Specified by:
appendMailtoLink in interface IWikiModel
Parameters:
link - the external link with mailto: prefix
linkName - the link name which is separated from the URL by a space
withoutSquareBrackets - if true a mailto link with no square brackets around the link was parsed

appendRedirectLink

public boolean appendRedirectLink(java.lang.String redirectLink)
Description copied from interface: IWikiModel
Append the redirect link to the model

Specified by:
appendRedirectLink in interface IWikiModel
Parameters:
redirectLink - the raw string between the wikilink tags [[ ]]
Returns:
true if the the wikitext shouldn't be parsed

appendStack

public void appendStack(TagStack stack)
Specified by:
appendStack in interface IWikiModel

buildEditLinkUrl

public void buildEditLinkUrl(int section)
Description copied from interface: IWikiModel
Build the link to edit a section of the wikipedia article

Specified by:
buildEditLinkUrl in interface IWikiModel

decrementRecursionLevel

public int decrementRecursionLevel()
Description copied from interface: IWikiModel
Increment the current recursion level of the parser

Specified by:
decrementRecursionLevel in interface IWikiModel
Returns:

get2ndCategoryNamespace

public java.lang.String get2ndCategoryNamespace()
Description copied from interface: IWikiModel
Get the secondary namespace (i.e. the namespace for a non-englich locale) for categories in this wiki

Specified by:
get2ndCategoryNamespace in interface IWikiModel
Returns:

get2ndImageNamespace

public java.lang.String get2ndImageNamespace()
Description copied from interface: IWikiModel
Get the secondary namespace (i.e. the namespace for a non-englich locale) for images in this wiki

Specified by:
get2ndImageNamespace in interface IWikiModel
Returns:

get2ndTemplateNamespace

public java.lang.String get2ndTemplateNamespace()
Description copied from interface: IWikiModel
Get the secondary namespace (i.e. the namespace for a non-englich locale) for templates in this wiki

Specified by:
get2ndTemplateNamespace in interface IWikiModel
Returns:

getCategoryNamespace

public java.lang.String getCategoryNamespace()
Description copied from interface: IWikiModel
Get the primary namespace for categories in this wiki

Specified by:
getCategoryNamespace in interface IWikiModel
Returns:

getCodeFormatterMap

public java.util.Map<java.lang.String,SourceCodeFormatter> getCodeFormatterMap()
Description copied from interface: IConfiguration
Get the source code formatter map of built-in source code formatters

Specified by:
getCodeFormatterMap in interface IConfiguration
Returns:

getImageNamespace

public java.lang.String getImageNamespace()
Description copied from interface: IWikiModel
Get the primary namespace for images in this wiki

Specified by:
getImageNamespace in interface IWikiModel
Returns:

getInterwikiMap

public java.util.Map<java.lang.String,java.lang.String> getInterwikiMap()
Description copied from interface: IConfiguration
Get the interwiki links map for converting interwiki links into external URLs. Example: maps the interwiki shortcut "de" to "http://de.wikipedia.org/wiki/${title}"

Specified by:
getInterwikiMap in interface IConfiguration
Returns:

getNode

public TagToken getNode(int offset)
Description copied from interface: IWikiModel
Get the node at the given offset on the internal stack

Specified by:
getNode in interface IWikiModel
Returns:

getRawWikiContent

public java.lang.String getRawWikiContent(java.lang.String namespace,
                                          java.lang.String templateName,
                                          java.util.Map<java.lang.String,java.lang.String> templateParameters)
Get the raw wiki text for the given namespace and article name. Handles some MagicWord templates by default.

Specified by:
getRawWikiContent in interface IWikiModel
Parameters:
namespace - the namespace of this article
templateName -
templateParameters - if the namespace is the Template namespace the current template parameters are stored as Strings in this map
Returns:
null if no content was found

getRecursionLevel

public int getRecursionLevel()
Description copied from interface: IWikiModel
Get the current recursion level of the parser

Specified by:
getRecursionLevel in interface IWikiModel
Returns:

getRedirectLink

public java.lang.String getRedirectLink()
Description copied from interface: IWikiModel
Get the redirect link.

Specified by:
getRedirectLink in interface IWikiModel
Returns:
the raw string between the wikilink tags [[ ]] or null if no redirect exists

getReferences

public java.util.List<Reference> getReferences()
Description copied from interface: IWikiModel
Get the internal list of references (i.e. footnotes)

Specified by:
getReferences in interface IWikiModel
Returns:
the list of references or null if no reference exists
See Also:
Reference

getSemanticAttributes

public java.util.List<SemanticAttribute> getSemanticAttributes()
Description copied from interface: IWikiModel
Get the list of SemanticAttributes

Specified by:
getSemanticAttributes in interface IWikiModel
Returns:
the list of SemanticAttributes or null if no SemanticAttribute exists

getSemanticRelations

public java.util.List<SemanticRelation> getSemanticRelations()
Description copied from interface: IWikiModel
Get the list of SemanticRelations. See Semantic MediaWiki for more information.

Specified by:
getSemanticRelations in interface IWikiModel
Returns:
the list of SemanticRelations or null if no SemanticRelation exists

getTableOfContentTag

public TableOfContentTag getTableOfContentTag(boolean isTOCIdentifier)
Description copied from interface: IWikiModel
Get the "table of content" placeholder

Specified by:
getTableOfContentTag in interface IWikiModel
Returns:

getTemplateFunction

public ITemplateFunction getTemplateFunction(java.lang.String name)
Description copied from interface: IWikiModel
Get a template parser function (i.e. {{ #if: ... }} ) implementation.

Specified by:
getTemplateFunction in interface IWikiModel
Parameters:
name - the name of the function without the "#" and ":" delimiters
Returns:
the parser function or null if no function is available for the given name

getTemplateMap

public java.util.Map<java.lang.String,ITemplateFunction> getTemplateMap()
Description copied from interface: IConfiguration
Get the template parser functions map of built-in template functions

Specified by:
getTemplateMap in interface IConfiguration
Returns:

getTemplateNamespace

public java.lang.String getTemplateNamespace()
Description copied from interface: IWikiModel
Get the primary namespace for templates in this wiki

Specified by:
getTemplateNamespace in interface IWikiModel
Returns:

getTokenMap

public java.util.Map<java.lang.String,TagToken> getTokenMap()
Description copied from interface: IConfiguration
Get the HTML styled tag map for built-in tags

Specified by:
getTokenMap in interface IConfiguration
Returns:

getWikiListener

public IEventListener getWikiListener()
Description copied from interface: IWikiModel
Get the current defined wiki listener

Specified by:
getWikiListener in interface IWikiModel
Returns:
the wiki listener or null if no listener is defined

incrementRecursionLevel

public int incrementRecursionLevel()
Description copied from interface: IWikiModel
Increment the current recursion level of the parser

Specified by:
incrementRecursionLevel in interface IWikiModel
Returns:

isCategoryNamespace

public boolean isCategoryNamespace(java.lang.String namespace)
Description copied from interface: IWikiModel
Check if the given namespace is a category namespace

Specified by:
isCategoryNamespace in interface IWikiModel
Returns:

isImageNamespace

public boolean isImageNamespace(java.lang.String namespace)
Description copied from interface: IWikiModel
Check if the given namespace is a image namespace

Specified by:
isImageNamespace in interface IWikiModel
Returns:

isInterWiki

public boolean isInterWiki(java.lang.String namespace)
Description copied from interface: IWikiModel
Check if the given namespace for an interwiki link

Specified by:
isInterWiki in interface IWikiModel
Returns:

isNamespace

public boolean isNamespace(java.lang.String namespace)
Description copied from interface: IWikiModel
Check if the given namespace is a namespace in this model

Specified by:
isNamespace in interface IWikiModel
Returns:

isSemanticWebActive

public boolean isSemanticWebActive()
Description copied from interface: IWikiModel
Allow the parsing of semantic mediawiki (SMW) links See Semantic MediaWiki for more information.

Specified by:
isSemanticWebActive in interface IWikiModel
Returns:

isTemplateNamespace

public boolean isTemplateNamespace(java.lang.String namespace)
Description copied from interface: IWikiModel
Check if the given namespace is a template namespace

Specified by:
isTemplateNamespace in interface IWikiModel
Returns:

isTemplateTopic

public boolean isTemplateTopic()
Description copied from interface: IWikiModel
Determine if the currently parsed wiki text is a template.

Specified by:
isTemplateTopic in interface IWikiModel
Returns:
true if the currently parsed wiki text is a template

parseBBCodes

public boolean parseBBCodes()
Description copied from interface: IWikiModel
Parse phpBB like syntax codes in this wiki

Specified by:
parseBBCodes in interface IWikiModel
Returns:

parseEvents

public void parseEvents(IEventListener listener,
                        java.lang.String rawWikiText)
Description copied from interface: IWikiModel
Parse the raw Wikipedia text and notify the listener

Specified by:
parseEvents in interface IWikiModel

parseTemplates

public java.lang.String parseTemplates(java.lang.String rawWikiText)
Description copied from interface: IWikiModel
Parse the templates in a raw wikipedia text into a resulting wikipedia text.

Specified by:
parseTemplates in interface IWikiModel
Returns:

peekNode

public TagToken peekNode()
Description copied from interface: IWikiModel
Get the current TagNode on top of the internal stack

Specified by:
peekNode in interface IWikiModel
Returns:
the current node

popNode

public TagToken popNode()
Description copied from interface: IWikiModel
Pop the current TagNode from top of the internal stack

Specified by:
popNode in interface IWikiModel

pushNode

public boolean pushNode(TagToken node)
Description copied from interface: IWikiModel
Push the given TagNode on top of the internal stack

Specified by:
pushNode in interface IWikiModel
Returns:
true if the push on the internal stack was successful

render

public java.lang.String render(ITextConverter converter,
                               java.lang.String rawWikiText)
Description copied from interface: IWikiModel
Render the raw Wikipedia text into an HTML string

Specified by:
render in interface IWikiModel
Returns:
null if an IOException occurs

render

public java.lang.String render(java.lang.String rawWikiText)
Description copied from interface: IWikiModel
Render the raw Wikipedia text into an HTML string and use the default HTMLConverter

Specified by:
render in interface IWikiModel
Returns:
null if an IOException occurs

renderLaTeX

public java.lang.String renderLaTeX(java.lang.String rawWikiText)

renderPDF

public java.lang.String renderPDF(java.lang.String rawWikiText)
Description copied from interface: IWikiModel
Render the raw Wikipedia text into an HTML string and use the default PDFConverter. The resulting XHTML could be used as input for the Flying Saucer PDF renderer

Specified by:
renderPDF in interface IWikiModel
Returns:
null if an IOException occurs

replaceColon

public boolean replaceColon()
Description copied from interface: IWikiModel
Replace a colon ':' with a slash '/' in wiki names (i.e. links, categories, templates)

Specified by:
replaceColon in interface IWikiModel
Returns:

setSemanticWebActive

public void setSemanticWebActive(boolean semanticWeb)
Description copied from interface: IWikiModel
Activate the parsing of semantic Mediawiki (SMW) links See Semantic MediaWiki for more information.

Specified by:
setSemanticWebActive in interface IWikiModel

setUp

public void setUp()
Description copied from interface: IWikiModel
Prepare or initialize the wiki model before rendering the wikipedia text

Specified by:
setUp in interface IWikiModel

showSyntax

public boolean showSyntax(java.lang.String tagName)
Description copied from interface: IWikiModel
Show the syntax highlighting of the source code

Specified by:
showSyntax in interface IWikiModel
Returns:

stackSize

public int stackSize()
Description copied from interface: IWikiModel
The size of the internal stack

Specified by:
stackSize in interface IWikiModel
Returns:

swapStack

public TagStack swapStack(TagStack stack)
Specified by:
swapStack in interface IWikiModel

tearDown

public void tearDown()
Description copied from interface: IWikiModel
Clean up (i.e. free internal resources) in the wiki model after rendering the wikipedia text, if necessary

Specified by:
tearDown in interface IWikiModel

toNodeList

public java.util.List<BaseToken> toNodeList(java.lang.String rawWikiText)

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Description copied from interface: IWikiModel
Get the resource bundle associated with this model for I18N support

Specified by:
getResourceBundle in interface IWikiModel
Returns:
the currently used resource bundle for this wiki model