Class ExampleExpanderWikiModel

  • All Implemented Interfaces:
    info.bliki.wiki.model.IConfiguration, info.bliki.wiki.model.IContext, info.bliki.wiki.model.IWikiModel

    public class ExampleExpanderWikiModel
    extends ExpandAllWikiModel
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface info.bliki.wiki.model.IConfiguration

        info.bliki.wiki.model.IConfiguration.Casing
    • Field Summary

      • Fields inherited from class info.bliki.wiki.model.WikiModel

        categories, includes, links, semanticAttributes, semanticRelations
      • Fields inherited from class info.bliki.wiki.model.AbstractWikiModel

        attributes, fExternalLinksCounter, fLocale, fNamespace, fNamespaceName, fNoToc, fPageTitle, fParameterParsingMode, fRecursionLevel, fRedirectLink, fReferenceNames, fReferences, fSectionCounter, fTagStack, fTemplateRecursionCount, fTemplates, fTemplateTopic, fToCSet, logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String expandExample​(String definition, Set<String> templates, Set<org.apache.commons.lang3.tuple.Pair<org.apache.jena.rdf.model.Property,​org.apache.jena.rdf.model.RDFNode>> context)
      Convert an example wiki code to plain text, while keeping track of all template calls and of context definition (source, etc.).
      String expandExample​(String definition, Set<String> templates, Set<org.apache.commons.lang3.tuple.Pair<org.apache.jena.rdf.model.Property,​org.apache.jena.rdf.model.RDFNode>> context, String shortEditionLanguage, String shortSectionLanguage)  
      void setPageName​(String pageTitle)  
      void substituteTemplateCall​(String templateName, Map<String,​String> parameterMap, Appendable writer)  
      • Methods inherited from class info.bliki.wiki.model.WikiModel

        addCategory, addInclude, addLink, addSemanticAttribute, addSemanticRelation, addTemplate, appendInternalLink, appendInternalLink, createImageName, getCategories, getImageBaseURL, getIncludes, getLinks, getNamespace, getSemanticAttributes, getSemanticRelations, getTemplates, getWikiBaseURL, parseInternalImageLink, replaceColon, setUp, toHtml, toHtml, toHtml, toText
      • Methods inherited from class info.bliki.wiki.model.AbstractWikiModel

        addCodeFormatter, addInterwikiLink, addTemplateFunction, addTokenTag, addToReferences, addToTableOfContent, append, appendExternalImageLink, appendExternalLink, appendHead, appendInternalImageLink, appendInterWikiLink, appendISBNLink, appendMailtoLink, appendRawNamespaceLinks, appendRawWikipediaLink, appendRedirectLink, appendSignature, appendStack, buildEditLinkUrl, casing, createNewInstance, createScribuntoEngine, createTableOfContent, decrementRecursionLevel, decrementTemplateRecursionLevel, encodeTitleDotUrl, encodeTitleToUrl, getAttribute, getAttributeRenderer, getCodeFormatterMap, getCurrentTimeStamp, getFrame, getInterwikiMap, getLocale, getMagicWord, getNamespaceName, getNextNumber, getNode, getPageName, getRecursionLevel, getRedirectLink, getReferences, getResourceBundle, getSimpleDateFormat, getTableOfContent, getTemplateCallsCache, getTemplateFunction, getTemplateMap, getTokenMap, getUriSchemeSet, getWikiBaseEditURL, getWikiListener, incrementRecursionLevel, incrementTemplateRecursionLevel, initialize, isCamelCaseEnabled, isEditorMode, isInterWiki, isMathtranRenderer, isNamespace, isNoToc, isParameterParsingMode, isPreviewMode, isSemanticWebActive, isTemplateTopic, isValidUriScheme, isValidUriSchemeSpecificPart, parseBehaviorSwitch, parseEvents, parseTemplates, parseTemplates, peekNode, popNode, pushNode, rawSetAttribute, reduceTokenStack, registerRenderer, render, render, render, render, renderPDF, setAttribute, setAttributeRenderers, setDefaultThumbWidth, setFrame, setNamespaceName, setNoToc, setParameterParsingMode, setSemanticWebActive, setTemplateCallsCache, showSyntax, splitNsTitle, stackSize, swapStack, tearDown
    • Method Detail

      • setPageName

        public void setPageName​(String pageTitle)
        Specified by:
        setPageName in interface info.bliki.wiki.model.IWikiModel
        Overrides:
        setPageName in class info.bliki.wiki.model.AbstractWikiModel
      • expandExample

        public String expandExample​(String definition,
                                    Set<String> templates,
                                    Set<org.apache.commons.lang3.tuple.Pair<org.apache.jena.rdf.model.Property,​org.apache.jena.rdf.model.RDFNode>> context)
        Convert an example wiki code to plain text, while keeping track of all template calls and of context definition (source, etc.).
        Parameters:
        definition - the wiki code
        templates - if not null, the method will add all called templates to the set.
        context - if not null, the method will add all contextual relation to the map.
        Returns:
        the converted wiki code
      • expandExample

        public String expandExample​(String definition,
                                    Set<String> templates,
                                    Set<org.apache.commons.lang3.tuple.Pair<org.apache.jena.rdf.model.Property,​org.apache.jena.rdf.model.RDFNode>> context,
                                    String shortEditionLanguage,
                                    String shortSectionLanguage)