|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bliki.wiki.model.AbstractWikiModel
info.bliki.wiki.model.WikiModel
public class WikiModel
Standard model implementation
| Constructor Summary | |
|---|---|
WikiModel(Configuration configuration,
java.util.Locale locale,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
|
|
WikiModel(Configuration configuration,
java.util.ResourceBundle resourceBundle,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
|
|
WikiModel(Configuration configuration,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
|
|
WikiModel(java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
|
|
| 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. |
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. |
void |
appendInternalLink(java.lang.String link,
java.lang.String hashSection,
java.lang.String linkText)
Append an internal wikilink as described in Help Links |
java.util.Set<java.lang.String> |
getCategories()
Get the set of Wikipedia category names used in this text |
java.util.Set<java.lang.String> |
getLinks()
Get the set of Wikipedia links used in this text |
java.util.List<SemanticAttribute> |
getSemanticAttributes()
Get the list of SemanticAttributes |
java.util.List<SemanticRelation> |
getSemanticRelations()
Get the list of SemanticRelations. |
java.util.Set<java.lang.String> |
getTemplates()
|
void |
parseInternalImageLink(java.lang.String imageNamespace,
java.lang.String name)
Append this internal wiki image link |
boolean |
replaceColon()
Replace a colon ':' with a slash '/' in wiki names (i.e. links, categories, templates) |
void |
setUp()
Prepare or initialize the wiki model before rendering the wikipedia text |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiModel(java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
public WikiModel(Configuration configuration,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
public WikiModel(Configuration configuration,
java.util.Locale locale,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
public WikiModel(Configuration configuration,
java.util.ResourceBundle resourceBundle,
java.lang.String imageBaseURL,
java.lang.String linkBaseURL)
| Method Detail |
|---|
public void addCategory(java.lang.String categoryName,
java.lang.String sortKey)
IWikiModel
addCategory in interface IWikiModeladdCategory in class AbstractWikiModelcategoryName - 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".public void addLink(java.lang.String topicName)
IWikiModel
addLink in interface IWikiModeladdLink in class AbstractWikiModeltopicName - The name of the topic that is linked to.
public boolean addSemanticAttribute(java.lang.String attribute,
java.lang.String attributeValue)
addSemanticAttribute in interface IWikiModeladdSemanticAttribute in class AbstractWikiModel
public boolean addSemanticRelation(java.lang.String relation,
java.lang.String relationValue)
addSemanticRelation in interface IWikiModeladdSemanticRelation in class AbstractWikiModelpublic void addTemplate(java.lang.String template)
IWikiModel
addTemplate in interface IWikiModeladdTemplate in class AbstractWikiModeltemplate - The name of the template that is being included.
public void appendInternalLink(java.lang.String link,
java.lang.String hashSection,
java.lang.String linkText)
IWikiModel
appendInternalLink in interface IWikiModelappendInternalLink in class AbstractWikiModelpublic java.util.Set<java.lang.String> getCategories()
public java.util.Set<java.lang.String> getLinks()
public java.util.List<SemanticAttribute> getSemanticAttributes()
IWikiModel
getSemanticAttributes in interface IWikiModelgetSemanticAttributes in class AbstractWikiModelnull if no
SemanticAttribute existspublic java.util.List<SemanticRelation> getSemanticRelations()
IWikiModel
getSemanticRelations in interface IWikiModelgetSemanticRelations in class AbstractWikiModelnull if no
SemanticRelation existspublic java.util.Set<java.lang.String> getTemplates()
public void parseInternalImageLink(java.lang.String imageNamespace,
java.lang.String name)
IWikiModel
imageNamespace - the image namespacepublic boolean replaceColon()
IWikiModel
replaceColon in interface IWikiModelreplaceColon in class AbstractWikiModelpublic void setUp()
IWikiModel
setUp in interface IWikiModelsetUp in class AbstractWikiModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||