org.topbraid.strings
Interface ILabelsPlugin

All Known Implementing Classes:
ClassExpressionsLabelsPlugin, ProseGenerator, SWRLLabelsPlugin

public interface ILabelsPlugin

A plugin for the Labels class, used to create customized labels from arbitrary Graph nodes. For example, this can be used to implement custom-tailored renderings for languages like SWRL.

Author:
Holger Knublauch

Method Summary
 void appendLabel(java.lang.StringBuffer buffer, com.hp.hpl.jena.rdf.model.RDFNode node, boolean multiLine)
           
 void appendNestedLabel(java.lang.StringBuffer buffer, com.hp.hpl.jena.rdf.model.RDFNode node, boolean multiLine)
           
 boolean isKeyword(java.lang.String word)
          Checks if a given string is a keyword (such as 'max') in this plugin.
 boolean isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
          Checks if this plugin is suitable to render a given node into text.
 

Method Detail

appendLabel

void appendLabel(java.lang.StringBuffer buffer,
                 com.hp.hpl.jena.rdf.model.RDFNode node,
                 boolean multiLine)

appendNestedLabel

void appendNestedLabel(java.lang.StringBuffer buffer,
                       com.hp.hpl.jena.rdf.model.RDFNode node,
                       boolean multiLine)

isKeyword

boolean isKeyword(java.lang.String word)
Checks if a given string is a keyword (such as 'max') in this plugin.

Parameters:
word - the word to check
Returns:
true if word is a keyword

isSuitable

boolean isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
Checks if this plugin is suitable to render a given node into text.

Parameters:
node - the node to check
Returns:
true if this can create a string representation of the node