info.bliki.wiki.model
Class PDFWikiModel

java.lang.Object
  extended by info.bliki.wiki.model.AbstractWikiModel
      extended by info.bliki.wiki.model.WikiModel
          extended by info.bliki.wiki.model.PDFWikiModel
All Implemented Interfaces:
IConfiguration, IContext, IWikiModel

Deprecated. use an extended APIWikiModel instead; see PDFCreatorTest in the test sources

public class PDFWikiModel
extends WikiModel

PDF Wiki model implementation


Field Summary
 
Fields inherited from class info.bliki.wiki.model.WikiModel
categories, fExternalImageBaseURL, fExternalWikiBaseURL, links, semanticAttributes, semanticRelations, templates
 
Fields inherited from class info.bliki.wiki.model.AbstractWikiModel
attributeRenderers, attributes, fNamespace, fPageTitle, fParserRecursionCount, fRecursionLevel, fRedirectLink, fReferenceNames, fReferences, fSectionCounter, fTableOfContent, fTableOfContentTag, fTagStack, fTemplateRecursionCount, fToCSet
 
Constructor Summary
PDFWikiModel(java.util.Locale locale, java.lang.String imageBaseURL, java.lang.String linkBaseURL)
          Deprecated.  
PDFWikiModel(java.lang.String imageBaseURL, java.lang.String linkBaseURL)
          Deprecated.  
 
Method Summary
 void appendInternalLink(java.lang.String topic, java.lang.String hashSection, java.lang.String topicDescription, java.lang.String cssClass, boolean parseRecursive)
          Deprecated. Append an internal wikilink as described in Help Links
 java.lang.String getRawWikiContent(java.lang.String namespace, java.lang.String articleName, java.util.Map<java.lang.String,java.lang.String> map)
          Deprecated. Add templates: "Test", "Templ1", "Templ2", "Include Page"
 void parseInternalImageLink(java.lang.String imageNamespace, java.lang.String rawImageLink)
          Deprecated. Append the internal wiki image link to this model.
 
Methods inherited from class info.bliki.wiki.model.WikiModel
addCategory, addLink, addSemanticAttribute, addSemanticRelation, addTemplate, getCategories, getLinks, getNamespace, getSemanticAttributes, getSemanticRelations, getTemplates, replaceColon, setUp
 
Methods inherited from class info.bliki.wiki.model.AbstractWikiModel
addCodeFormatter, addInterwikiLink, addTemplateFunction, addTokenTag, addToReferences, addToTableOfContent, append, appendExternalImageLink, appendExternalLink, appendExternalLink, appendHead, appendHead, appendInternalImageLink, appendInterWikiLink, appendISBNLink, appendMailtoLink, appendRawNamespaceLinks, appendRawWikipediaLink, appendRedirectLink, appendSignature, appendStack, appendToCAnchor, buildEditLinkUrl, createNewInstance, createTableOfContent, decrementRecursionLevel, encodeTitleDotUrl, encodeTitleToUrl, get2ndCategoryNamespace, get2ndImageNamespace, get2ndTemplateNamespace, getAttribute, getAttributeRenderer, getCategoryNamespace, getCodeFormatterMap, getCurrentTimeStamp, getImageNamespace, getInterwikiMap, getLocale, getNextNumber, getNode, getPageName, getRecursionLevel, getRedirectLink, getReferences, getResourceBundle, getTableOfContent, getTemplateCallsCache, getTemplateFunction, getTemplateMap, getTemplateNamespace, getTokenMap, getUriSchemeSet, getWikiListener, incrementParserRecursionCount, incrementRecursionLevel, incrementTemplateRecursionCount, initialize, isCamelCaseEnabled, isCategoryNamespace, isEditorMode, isImageNamespace, isInterWiki, isMathtranRenderer, isNamespace, isPreviewMode, isSemanticWebActive, isTemplateNamespace, isTemplateTopic, isValidUriScheme, isValidUriSchemeSpecificPart, parseBBCodes, parseEvents, parseTemplates, parseTemplates, peekNode, popNode, pushNode, rawSetAttribute, registerRenderer, render, render, renderPDF, setAttribute, setAttributeRenderers, setDefaultThumbWidth, setPageName, setSemanticWebActive, setTemplateCallsCache, showSyntax, stackSize, substituteTemplateCall, swapStack, tearDown, toNodeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFWikiModel

public PDFWikiModel(java.lang.String imageBaseURL,
                    java.lang.String linkBaseURL)
Deprecated. 

PDFWikiModel

public PDFWikiModel(java.util.Locale locale,
                    java.lang.String imageBaseURL,
                    java.lang.String linkBaseURL)
Deprecated. 
Parameters:
imageBaseURL -
linkBaseURL -
Method Detail

getRawWikiContent

public java.lang.String getRawWikiContent(java.lang.String namespace,
                                          java.lang.String articleName,
                                          java.util.Map<java.lang.String,java.lang.String> map)
Deprecated. 
Add templates: "Test", "Templ1", "Templ2", "Include Page"

Specified by:
getRawWikiContent in interface IWikiModel
Overrides:
getRawWikiContent in class AbstractWikiModel
Parameters:
namespace - the namespace of this article
articleName - the name of the template
map - 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

appendInternalLink

public void appendInternalLink(java.lang.String topic,
                               java.lang.String hashSection,
                               java.lang.String topicDescription,
                               java.lang.String cssClass,
                               boolean parseRecursive)
Deprecated. 
Description copied from class: WikiModel
Append an internal wikilink as described in Help Links

Specified by:
appendInternalLink in interface IWikiModel
Overrides:
appendInternalLink in class WikiModel
cssClass - the links CSS class style
parseRecursive - TODO

parseInternalImageLink

public void parseInternalImageLink(java.lang.String imageNamespace,
                                   java.lang.String rawImageLink)
Deprecated. 
Description copied from class: WikiModel
Append the internal wiki image link to this model.

Note: the pipe symbol (i.e. "|") splits the rawImageLink into different segments. The first segment is used as the <image-name> and typically ends with extensions like .png, .gif, .jpg or .jpeg.

Note: if the image link contains a "width" attribute, the filename is constructed as <size>px-<image-name>, otherwise it's only the <image-name>.

See Image markup and see Help:Images

Specified by:
parseInternalImageLink in interface IWikiModel
Overrides:
parseInternalImageLink in class WikiModel
Parameters:
imageNamespace - the image namespace
rawImageLink - the raw image link text without the surrounding [[...]]


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.